modal_test_claim.php 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. <?php
  2. $unix_default = strtotime("+7 DAYS");
  3. $selected_year = date("Y", $unix_default);
  4. $selected_month = date("n", $unix_default);
  5. $selected_day = date("j", $unix_default);
  6. ?>
  7. <div class="modal fade" id="modal-test-claim" tabindex="-1" role="dialog" data-backdrop="static">
  8. <div class="modal-dialog modal-lg" role="document">
  9. <div class="modal-content">
  10. <form>
  11. <div class="modal-header">
  12. <h5 class="modal-title"><strong><?=htmlspecialchars(__("Confirm Selected Tests"))?></strong></h5>
  13. <button type="button" class="close" data-dismiss="modal" aria-label="Close" id="modal-close-button">
  14. <span aria-hidden="true">&times;</span>
  15. </button>
  16. </div>
  17. <div class="modal-body">
  18. <p><?=htmlspecialchars(__("You have selected the following tests:"))?></p>
  19. <div class="list-group limit-height-2 mb-3">
  20. </div>
  21. <p><?=htmlspecialchars(__("The due date is:"))?> <strong class="text-danger"><?=date("l jS F", $unix_default)?></strong></p>
  22. <p><?=htmlspecialchars(__("By confirming, you agree that:"))?></p>
  23. <ul>
  24. <li><?=htmlspecialchars(__("You will execute these tests by the due date displayed above."))?></li>
  25. <li><?=htmlspecialchars(__("Failure to complete tests by the due date without good reason may result in the tests being unassigned from yourself and limit your ability to claim tests in the future."))?></li>
  26. </ul>
  27. </div>
  28. <div class="modal-footer">
  29. <button type="button" class="btn btn-secondary" id="claim-cancel-button" data-dismiss="modal"><?=htmlspecialchars(__("Cancel"))?></button>
  30. <button type="button" class="btn btn-primary" id="claim-confirm-button"><?=htmlspecialchars(__("Confirm"))?></button>
  31. <a class="btn btn-primary" id="claim-finish-button" style="display: none;" href="/account/tests/available"><?=htmlspecialchars(__("Finish"))?></a>
  32. </div>
  33. </form>
  34. </div>
  35. </div>
  36. </div>