1
0

tests.php 782 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. <div class="container mt-3 py-4">
  2. <h2>Tests</h2>
  3. <?php
  4. if(empty($tests)) {
  5. ?>
  6. <div class="alert alert-info">
  7. You have no assigned tests at this time.
  8. </div>
  9. <?php
  10. }
  11. else {
  12. ?>
  13. <div class="list-group">
  14. <?php
  15. foreach($tests as $test) {
  16. $location = $test->getLocation();
  17. ?>
  18. <div class="list-group-item">
  19. <div class="row">
  20. <div class="col-md">
  21. <?=htmlspecialchars($location->name)?><br />
  22. <?=htmlspecialchars($location->getDisplayAddress())?>
  23. </div>
  24. <div class="col-auto align-self-center">
  25. <a class="btn btn-outline-primary" href="/account/tests/<?=$test->id?>" title="Begin" data-toggle="tooltip"><i class="fal fa-play"></i></a>
  26. </div>
  27. </div>
  28. </div>
  29. <?php
  30. }
  31. ?>
  32. </div>
  33. <?php
  34. }
  35. ?>
  36. </div>