|
|
@@ -373,13 +373,7 @@ foreach($projects as $project) {
|
|
|
?>
|
|
|
<th>Result</th>
|
|
|
<th>Retest</th>
|
|
|
- <?php
|
|
|
- if($is_staff) {
|
|
|
- ?>
|
|
|
- <th>Actions</th>
|
|
|
- <?php
|
|
|
- }
|
|
|
- ?>
|
|
|
+ <th>Actions</th>
|
|
|
</tr>
|
|
|
</thead>
|
|
|
<tbody>
|
|
|
@@ -547,10 +541,10 @@ foreach($projects as $project) {
|
|
|
}
|
|
|
?>
|
|
|
</td>
|
|
|
- <?php
|
|
|
- if($is_staff) {
|
|
|
- ?>
|
|
|
- <td class="text-right align-middle">
|
|
|
+ <td class="text-right align-middle">
|
|
|
+ <?php
|
|
|
+ if($is_staff) {
|
|
|
+ ?>
|
|
|
<div class="dropdown">
|
|
|
<button class="btn btn-sm btn-secondary dropdown-toggle" type="button" id="test-dropdown-<?=$test->id?>" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
|
|
|
Actions
|
|
|
@@ -571,10 +565,17 @@ foreach($projects as $project) {
|
|
|
?>
|
|
|
</div>
|
|
|
</div>
|
|
|
- </td>
|
|
|
- <?php
|
|
|
- }
|
|
|
- ?>
|
|
|
+ <?php
|
|
|
+ }
|
|
|
+ else if($test->hasPDF()) {
|
|
|
+ ?>
|
|
|
+ <a class="btn btn-primary" href="<?=htmlspecialchars($test->getPDFUrl())?>" target="_blank">
|
|
|
+ View PDF
|
|
|
+ </a>
|
|
|
+ <?php
|
|
|
+ }
|
|
|
+ ?>
|
|
|
+ </td>
|
|
|
</tr>
|
|
|
<?php
|
|
|
}
|