|
|
@@ -1,4 +1,4 @@
|
|
|
-<?php
|
|
|
+<?php /** @noinspection PhpUnhandledExceptionInspection */
|
|
|
$addresses = $user->getAddresses();
|
|
|
$referrer = $user->getReferrer();
|
|
|
|
|
|
@@ -36,7 +36,7 @@ $date_range = "01/01/{$year} - 31/12/{$year}";
|
|
|
|
|
|
?>
|
|
|
<script>
|
|
|
-var userId = <?=$user->id?>;
|
|
|
+const userId = <?=$user->id?>;
|
|
|
</script>
|
|
|
|
|
|
<div class="container mt-3 py-4">
|
|
|
@@ -172,11 +172,13 @@ var userId = <?=$user->id?>;
|
|
|
<col style="width: 10%;" />
|
|
|
<col style="width: 10%;" />
|
|
|
<thead>
|
|
|
- <th>ID</th>
|
|
|
- <th>Location</th>
|
|
|
- <th>Project</th>
|
|
|
- <th>Date Due</th>
|
|
|
- <th></th>
|
|
|
+ <tr>
|
|
|
+ <th>ID</th>
|
|
|
+ <th>Location</th>
|
|
|
+ <th>Project</th>
|
|
|
+ <th>Date Due</th>
|
|
|
+ <th></th>
|
|
|
+ </tr>
|
|
|
</thead>
|
|
|
<?php
|
|
|
foreach($pending_tests as $test) {
|
|
|
@@ -235,11 +237,13 @@ var userId = <?=$user->id?>;
|
|
|
<col style="width: 10%;" />
|
|
|
<col style="width: 10%;" />
|
|
|
<thead>
|
|
|
- <th>ID</th>
|
|
|
- <th>Location</th>
|
|
|
- <th>Project</th>
|
|
|
- <th>Date</th>
|
|
|
- <th></th>
|
|
|
+ <tr>
|
|
|
+ <th>ID</th>
|
|
|
+ <th>Location</th>
|
|
|
+ <th>Project</th>
|
|
|
+ <th>Date</th>
|
|
|
+ <th></th>
|
|
|
+ </tr>
|
|
|
</thead>
|
|
|
<?php
|
|
|
foreach($completed_tests as $test) {
|
|
|
@@ -289,6 +293,7 @@ var userId = <?=$user->id?>;
|
|
|
?>
|
|
|
<div class="row">
|
|
|
<div class="col-lg-6 mb-4">
|
|
|
+ <label for="address-id" class="sr-only"><?=htmlspecialchars(__("Address"))?></label>
|
|
|
<select class="form-control mb-3" id="address-id">
|
|
|
<?php
|
|
|
foreach($addresses as $address) {
|
|
|
@@ -340,6 +345,8 @@ var userId = <?=$user->id?>;
|
|
|
<div class="col-lg-6 mb-4">
|
|
|
<h3>Tests</h3>
|
|
|
|
|
|
+ <label for="date-range" class="sr-only"><?=htmlspecialchars(__("Date Range"))?></label>
|
|
|
+
|
|
|
<div class="input-group mb-3">
|
|
|
<div class="input-group-prepend">
|
|
|
<span class="input-group-text">Date Range</span>
|