瀏覽代碼

Hide stage on location tests table on void tests

Alan Lam 1 年之前
父節點
當前提交
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