Files
thetempusproject/app/plugins/suggestions/views/admin/list.html
2024-08-04 21:15:59 -04:00

56 lines
2.5 KiB
HTML

<legend>Suggestions</legend>
{PAGINATION}
<form action="{ROOT_URL}admin/suggestions/delete" method="post">
<table class="table table-striped">
<thead>
<tr>
<th style="width: 5%">ID</th>
<th style="width: 30%">Suggestion</th>
<th style="width: 10%">Suggested On</th>
<th style="width: 10%">Suggested By</th>
<th style="width: 10%">Approved</th>
<th style="width: 10%">Approved On</th>
<th style="width: 10%">Approved By</th>
<th style="width: 5%"></th>
<th style="width: 5%"></th>
<th style="width: 5%">
<INPUT type="checkbox" onchange="checkAll(this)" name="check.br" value="S_[]"/>
</th>
</tr>
</thead>
<tbody>
{LOOP}
<tr>
<td align="center">{ID}</td>
<td>{suggestion}</td>
<td align="center">{DTC}{suggestedOn}{/DTC}</td>
<td align="center">{submittedBy}</td>
<td>{approved}</td>
<td align="center">{DTC}{approvedOn}{/DTC}</td>
<td align="center">{approvedByName}</td>
<td>
<a href="{ROOT_URL}admin/suggestions/approve/{ID}" class="btn btn-sm btn-success" role="button"><i class="glyphicon glyphicon-ok"></i></a>
<a href="{ROOT_URL}admin/suggestions/reject/{ID}" class="btn btn-sm btn-danger" role="button"><i class="glyphicon glyphicon-remove"></i></a>
</td>
<td>
<a href="{ROOT_URL}admin/suggestions/view/{ID}" class="btn btn-sm btn-primary" role="button"><i class="glyphicon glyphicon-open"></i></a>
<a href="{ROOT_URL}admin/suggestions/delete/{ID}" class="btn btn-sm btn-danger" role="button"><i class="glyphicon glyphicon-trash"></i></a>
</td>
<td>
<input type="checkbox" value="{ID}" name="BR_[]">
</td>
</tr>
{/LOOP}
{ALT}
<tr>
<td align="center" colspan="6">
No results to show.
</td>
</tr>
{/ALT}
</tbody>
</table>
<button name="submit" value="submit" type="submit" class="btn btn-sm btn-danger">Delete</button>
</form>
<br />
<a href="{ROOT_URL}admin/suggestions/clear">clear all</a>