Sfoglia il codice sorgente

Hide stage on location tests table on void tests

Alan Lam 1 anno fa
parent
commit
91bf43c8a8
1 ha cambiato i file con 6 aggiunte e 1 eliminazioni
  1. 6 1
      views/location_tests_tab.php

+ 6 - 1
views/location_tests_tab.php

@@ -95,7 +95,12 @@ $tests = $location->getCompletedTests();
                     <td>
                     <td>
                     <?php
                     <?php
                     if($has_pass_fail) {
                     if($has_pass_fail) {
-                        if($test->isPending()) {
+						if($test->isVoid()) {
+							?>
+							<strong><?=htmlspecialchars(__("Void"))?></strong>
+							<?php
+						}
+                        elseif($test->isPending()) {
                             ?>
                             ?>
                             <?=htmlspecialchars(__("Pending"))?>
                             <?=htmlspecialchars(__("Pending"))?>
                             <?php
                             <?php