|
@@ -15,14 +15,8 @@
|
|
|
}
|
|
}
|
|
|
else {
|
|
else {
|
|
|
?>
|
|
?>
|
|
|
- <table class="table table-sm table-hover">
|
|
|
|
|
- <thead>
|
|
|
|
|
- <th>ID</th>
|
|
|
|
|
- <th>Location</th>
|
|
|
|
|
- <th>Date Due</th>
|
|
|
|
|
- <th>Status</th>
|
|
|
|
|
- <th></th>
|
|
|
|
|
- </thead>
|
|
|
|
|
|
|
+ <div class="list-group">
|
|
|
|
|
+
|
|
|
<?php
|
|
<?php
|
|
|
foreach($tests as $test) {
|
|
foreach($tests as $test) {
|
|
|
$location = $test->getLocation();
|
|
$location = $test->getLocation();
|
|
@@ -40,47 +34,50 @@
|
|
|
if($is_unverified) $status_text = "Unverified";
|
|
if($is_unverified) $status_text = "Unverified";
|
|
|
|
|
|
|
|
?>
|
|
?>
|
|
|
- <tr>
|
|
|
|
|
- <td>
|
|
|
|
|
- <?=$test->id?>
|
|
|
|
|
- </td>
|
|
|
|
|
- <td>
|
|
|
|
|
- <?=htmlspecialchars($location->name)?><br />
|
|
|
|
|
- <small><?=htmlspecialchars($location->getDisplayAddress())?></small>
|
|
|
|
|
- </td>
|
|
|
|
|
- <td class="align-middle">
|
|
|
|
|
- <?=$date_due?>
|
|
|
|
|
- </td>
|
|
|
|
|
- <td class="text-center align-middle">
|
|
|
|
|
- <span class="badge badge-lg badge-<?=$test->getStatusClass()?>">
|
|
|
|
|
- <?=$status_text?>
|
|
|
|
|
- </span>
|
|
|
|
|
- </td>
|
|
|
|
|
- <td class="text-right align-middle">
|
|
|
|
|
- <?php
|
|
|
|
|
- if($is_assigned) {
|
|
|
|
|
- ?>
|
|
|
|
|
- <a class="btn btn-outline-success" href="/account/tests/<?=$test->id?>/accept">Accept</a>
|
|
|
|
|
- <a class="btn btn-outline-danger" href="/account/tests/<?=$test->id?>/decline">Decline</a>
|
|
|
|
|
- <?php
|
|
|
|
|
- }
|
|
|
|
|
- else if($is_confirmed) {
|
|
|
|
|
- ?>
|
|
|
|
|
- <a class="btn btn-outline-primary" href="/account/tests/<?=$test->id?>">Begin</a>
|
|
|
|
|
- <?php
|
|
|
|
|
- }
|
|
|
|
|
- else if($is_unverified) {
|
|
|
|
|
- ?>
|
|
|
|
|
- <a class="btn btn-outline-primary" href="/account/tests/<?=$test->id?>">Amend</a>
|
|
|
|
|
- <?php
|
|
|
|
|
- }
|
|
|
|
|
- ?>
|
|
|
|
|
- </td>
|
|
|
|
|
- </tr>
|
|
|
|
|
|
|
+ <div class="list-group-item">
|
|
|
|
|
+ <div class="row">
|
|
|
|
|
+ <div class="col-lg-4">
|
|
|
|
|
+ <?=htmlspecialchars($location->name)?><br />
|
|
|
|
|
+ <small><?=htmlspecialchars($location->getDisplayAddress())?></small>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ <div class="col-lg-8">
|
|
|
|
|
+ <div class="row">
|
|
|
|
|
+ <div class="col-sm align-self-center">
|
|
|
|
|
+ <strong>Due: <?=$date_due?></strong>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ <div class="col-sm text-sm-center align-self-center">
|
|
|
|
|
+ <span class="badge badge-lg badge-<?=$test->getStatusClass()?>">
|
|
|
|
|
+ <?=$status_text?>
|
|
|
|
|
+ </span>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ <div class="col-sm text-sm-right align-self-center mt-1 mt-sm-0">
|
|
|
|
|
+ <?php
|
|
|
|
|
+ if($is_assigned) {
|
|
|
|
|
+ ?>
|
|
|
|
|
+ <a class="btn btn-outline-success" href="/account/tests/<?=$test->id?>/accept">Accept</a>
|
|
|
|
|
+ <a class="btn btn-outline-danger" href="/account/tests/<?=$test->id?>/decline">Decline</a>
|
|
|
|
|
+ <?php
|
|
|
|
|
+ }
|
|
|
|
|
+ else if($is_confirmed) {
|
|
|
|
|
+ ?>
|
|
|
|
|
+ <a class="btn btn-outline-primary" href="/account/tests/<?=$test->id?>">Begin</a>
|
|
|
|
|
+ <?php
|
|
|
|
|
+ }
|
|
|
|
|
+ else if($is_unverified) {
|
|
|
|
|
+ ?>
|
|
|
|
|
+ <a class="btn btn-outline-primary" href="/account/tests/<?=$test->id?>">Amend</a>
|
|
|
|
|
+ <?php
|
|
|
|
|
+ }
|
|
|
|
|
+ ?>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </div>
|
|
|
<?php
|
|
<?php
|
|
|
}
|
|
}
|
|
|
?>
|
|
?>
|
|
|
- </table>
|
|
|
|
|
|
|
+ </div>
|
|
|
<?php
|
|
<?php
|
|
|
}
|
|
}
|
|
|
|
|
|