|
|
@@ -72,53 +72,77 @@
|
|
|
Showing <?=number_format(count($tests))?> test(s).
|
|
|
</div>
|
|
|
|
|
|
- <div class="list-group">
|
|
|
- <?php
|
|
|
-
|
|
|
- $testers = User::load(array_column($tests, "tester_id"));
|
|
|
-
|
|
|
- foreach($tests as $test) {
|
|
|
- $location = $test->getLocation();
|
|
|
- $tester = $test->getTester();
|
|
|
-
|
|
|
- $unix_start = strtotime($test->dts_start . " UTC");
|
|
|
- $unix_end = strtotime($test->dts_end . " UTC");
|
|
|
-
|
|
|
- ?>
|
|
|
- <div class="list-group-item">
|
|
|
- <div class="row">
|
|
|
- <div class="col">
|
|
|
- <div class="row">
|
|
|
- <div class="col">
|
|
|
- <?=htmlspecialchars($location->name)?><br />
|
|
|
- <small><?=htmlspecialchars($location->getDisplayAddress())?></small>
|
|
|
-
|
|
|
- <?php
|
|
|
- if($tester) {
|
|
|
- ?>
|
|
|
- <br />
|
|
|
- <small>
|
|
|
- Tester: <a href="/account/users/<?=$tester->id?>"><?=htmlspecialchars($tester->getDisplayName())?></a> —
|
|
|
- <?=Util::getDisplayDateTime($unix_start)?>
|
|
|
- </small>
|
|
|
- <?php
|
|
|
- }
|
|
|
- ?>
|
|
|
- </div>
|
|
|
- <div class="col-auto align-self-center">
|
|
|
- <span class="badge badge-<?=$test->getStatusClass()?>"><?=$test->getStatusText()?></span>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
-
|
|
|
- <div class="col-auto align-self-center">
|
|
|
- <a class="btn btn-outline-primary" href="/account/tests/<?=$test->id?>" title="Edit Results" data-toggle="tooltip"><i class="fal fa-search"></i></a>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- <?php
|
|
|
- }
|
|
|
- ?>
|
|
|
+ <div class="table-responsive">
|
|
|
+
|
|
|
+ <table class="table table-hover">
|
|
|
+ <thead>
|
|
|
+ <th>ID</th>
|
|
|
+ <th>Location</th>
|
|
|
+ <th>Project</th>
|
|
|
+ <th>Tester</th>
|
|
|
+ <th>Due Date</th>
|
|
|
+ <th>Status</th>
|
|
|
+ <th></th>
|
|
|
+ </thead>
|
|
|
+ <tbody>
|
|
|
+ <?php
|
|
|
+
|
|
|
+ foreach($tests as $test) {
|
|
|
+ $location = $test->getLocation();
|
|
|
+ $project = $test->getProject();
|
|
|
+ $tester = $test->getTester();
|
|
|
+
|
|
|
+ $unix_start = strtotime($test->dts_start . " UTC");
|
|
|
+ $unix_end = strtotime($test->dts_end . " UTC");
|
|
|
+
|
|
|
+ ?>
|
|
|
+
|
|
|
+ <tr>
|
|
|
+ <td class="text-right align-middle">
|
|
|
+ <?=$test->id?>
|
|
|
+ </td>
|
|
|
+ <td class="align-middle">
|
|
|
+ <a href="/account/locations/<?=$location->id?>"><?=htmlspecialchars($location->name)?></a><br />
|
|
|
+ <small><?=htmlspecialchars($location->getDisplayAddress(["address_1", "address_2", "city"]))?></small>
|
|
|
+ </td>
|
|
|
+ <td class="align-middle">
|
|
|
+ <a href="/account/projects/<?=$project->id?>"><?=htmlspecialchars($project->name)?></a>
|
|
|
+ </td>
|
|
|
+ <td class="align-middle">
|
|
|
+ <?php
|
|
|
+ if($tester) {
|
|
|
+ ?>
|
|
|
+ <a href="/account/users/<?=$tester->id?>"><?=htmlspecialchars($tester->getDisplayName())?></a>
|
|
|
+ <?php
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ ?>
|
|
|
+ <small class="text-muted">N/A</small>
|
|
|
+ <?php
|
|
|
+ }
|
|
|
+ ?>
|
|
|
+ </td>
|
|
|
+ <td class="text-center align-middle">
|
|
|
+ <?php
|
|
|
+ if(is_null($test->dts_due)) {
|
|
|
+ ?>
|
|
|
+ <small class="text-muted">N/A</small>
|
|
|
+ <?php
|
|
|
+ }
|
|
|
+ ?>
|
|
|
+ </td>
|
|
|
+ <td class="text-center align-middle">
|
|
|
+ <span class="badge badge-lg badge-<?=$test->getStatusClass()?>"><?=$test->getStatusText()?></span>
|
|
|
+ </td>
|
|
|
+ <td class="text-right align-middle">
|
|
|
+ <a class="btn btn-outline-primary" href="/account/tests/<?=$test->id?>">View</a>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ <?php
|
|
|
+ }
|
|
|
+ ?>
|
|
|
+ </tbody>
|
|
|
+ </table>
|
|
|
</div>
|
|
|
<?php
|
|
|
}
|