|
|
@@ -1,13 +1,42 @@
|
|
|
-<?php
|
|
|
+<?php /** @noinspection PhpUnhandledExceptionInspection */
|
|
|
/**
|
|
|
* @var Project[] $projects
|
|
|
*/
|
|
|
?>
|
|
|
<div class="container mt-3 py-4">
|
|
|
|
|
|
- <h2><?=htmlspecialchars(__("Test Results"))?></h2>
|
|
|
+ <div class="row">
|
|
|
+ <div class="col">
|
|
|
+ <h2><?=htmlspecialchars(__("Test Results"))?></h2>
|
|
|
+ </div>
|
|
|
+ <div class="col-auto">
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <div class="row">
|
|
|
+ <div class="col">
|
|
|
+ <h3><?=htmlspecialchars(__("Projects"))?></h3>
|
|
|
+ </div>
|
|
|
+ <div class="col-auto">
|
|
|
+ <?php
|
|
|
+ if($projects) {
|
|
|
+ ?>
|
|
|
+ <div class="dropdown">
|
|
|
+ <button type="button" class="btn btn-primary dropdown-toggle" data-toggle="dropdown">
|
|
|
+ <?=htmlspecialchars(__("Actions"))?>
|
|
|
+ </button>
|
|
|
+ <div class="dropdown-menu">
|
|
|
+ <a href="#" class="dropdown-item" id="export-csv-button">
|
|
|
+ <?=htmlspecialchars(__("Export CSV"))?>
|
|
|
+ </a>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <?php
|
|
|
+ }
|
|
|
+ ?>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
|
|
|
- <h3><?=htmlspecialchars(__("Select Project"))?></h3>
|
|
|
|
|
|
<?php
|
|
|
|
|
|
@@ -23,18 +52,24 @@
|
|
|
else {
|
|
|
?>
|
|
|
|
|
|
- <table class="table table-bordered">
|
|
|
- <col style="width: 40%;">
|
|
|
- <col style="width: 15%;">
|
|
|
- <col style="width: 15%;">
|
|
|
- <col style="width: 15%;">
|
|
|
- <col style="width: 15%;">
|
|
|
+ <table class="table table-bordered table-hover">
|
|
|
+ <colgroup>
|
|
|
+ <col style="width: 1%;">
|
|
|
+ <col style="width: 40%;">
|
|
|
+ <col style="width: 15%;">
|
|
|
+ <col style="width: 15%;">
|
|
|
+ <col style="width: 15%;">
|
|
|
+ <col style="width: 15%;">
|
|
|
+ </colgroup>
|
|
|
<thead>
|
|
|
- <th><?=htmlspecialchars(__("Name"))?></th>
|
|
|
- <th><?=htmlspecialchars(__("Report Month"))?></th>
|
|
|
- <th><?=htmlspecialchars(__("Test Count"))?></th>
|
|
|
- <th><?=htmlspecialchars(__("Pass / Fail"))?></th>
|
|
|
- <th><?=htmlspecialchars(__("Pass Rate"))?></th>
|
|
|
+ <tr>
|
|
|
+ <th></th>
|
|
|
+ <th><?=htmlspecialchars(__("Name"))?></th>
|
|
|
+ <th><?=htmlspecialchars(__("Report Month"))?></th>
|
|
|
+ <th><?=htmlspecialchars(__("Test Count"))?></th>
|
|
|
+ <th><?=htmlspecialchars(__("Pass / Fail"))?></th>
|
|
|
+ <th><?=htmlspecialchars(__("Pass Rate"))?></th>
|
|
|
+ </tr>
|
|
|
</thead>
|
|
|
<tbody>
|
|
|
<?php
|
|
|
@@ -42,6 +77,9 @@
|
|
|
$url = $project->getTestResultsUrl();
|
|
|
?>
|
|
|
<tr>
|
|
|
+ <td>
|
|
|
+ <input class="project-checkbox" type="checkbox" value="<?=$project->id?>" />
|
|
|
+ </td>
|
|
|
<td><a href="<?=htmlspecialchars($url)?>"><?=$project->getNameHtml()?></a></td>
|
|
|
<td><?=$project->getDisplayReportMonth()?></td>
|
|
|
<td><?=$project->getTestCount()?></td>
|