Просмотр исходного кода

Hide stage on location tests table on void tests

Alan Lam 1 год назад
Родитель
Сommit
91bf43c8a8
1 измененных файлов с 6 добавлено и 1 удалено
  1. 6 1
      views/location_tests_tab.php

+ 6 - 1
views/location_tests_tab.php

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