| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980 |
- <div class="container pt-3 my-4">
- <div class="row">
- <div class="col">
- <h2>
- <?=htmlspecialchars($location->name)?>
- </h2>
- </div>
- <div class="col-auto">
- <a class="btn btn-outline-primary" href="/account/locations/<?=$location->id?>/edit">Edit</a>
- </div>
- </div>
- <p><?=htmlspecialchars($location->getDisplayAddress())?></p>
- <h3>Tests</h3>
- <?php
- if(empty($tests)) {
- ?>
- <div class="alert alert-info">
- This location has no tests.
- </div>
- <?php
- }
- else {
- ?>
- <table class="table table-hover">
- <thead>
- <tr>
- <th>ID</th>
- <th>Project</th>
- <th>Status</th>
- <th></th>
- </tr>
- </thead>
- <tbody>
- <?php
- foreach($tests as $test) {
- $project = $test->getProject();
- ?>
- <tr>
- <td class="text-right align-middle">
- <?=$test->id?>
- </td>
- <td class="align-middle">
- <a href=""><?=htmlspecialchars($project->name)?></a>
- </td>
- <td class="align-middle">
- <span class="badge badge-lg badge-<?=$test->getStatusClass()?>"><?=htmlspecialchars($test->getStatusText())?></span>
- </td>
- <td class="text-right">
- <?php
- if($test->status >= Test::STATUS_PENDING_VERIFICATION) {
- ?>
- <a class="btn btn-outline-primary" href="/account/tests/<?=$test->id?>">View Results</a>
- <?php
- }
- else {
- ?>
- <a class="btn btn-outline-primary" href="/account/projects/<?=$test->project_id?>">View Project</a>
- <?php
- }
- ?>
- </td>
- </tr>
- <?php
- }
- ?>
- </tbody>
- </table>
- <?php
- }
- ?>
- <h3>Map</h3>
- <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;">
- </div>
- </div>
|