location.php 780 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. <div class="container pt-3 my-4">
  2. <div class="row">
  3. <div class="col">
  4. <h2>
  5. <?=htmlspecialchars($location->name)?>
  6. </h2>
  7. </div>
  8. <div class="col-auto">
  9. <a class="btn btn-outline-primary" href="/account/locations/<?=$location->id?>/edit">Edit</a>
  10. </div>
  11. </div>
  12. <div class="mb-3" id="map" data-maps data-lat="<?=$location->latitude?>" data-lng="<?=$location->longitude?>" data-zoom="17" data-marker="true" style="height: 320px;">
  13. </div>
  14. <h3>Address</h3>
  15. <p><?=htmlspecialchars($location->getDisplayAddress())?></p>
  16. <h3>Tests</h3>
  17. <?php
  18. if(empty($tests)) {
  19. ?>
  20. <div class="alert alert-info">
  21. This location has no tests.
  22. </div>
  23. <?php
  24. }
  25. else {
  26. ?>
  27. <div class="alert alert-warning">
  28. Test list goes here.
  29. </div>
  30. <?php
  31. }
  32. ?>
  33. </div>