32 lines
1.2 KiB
HTML
Raw Normal View History

2025-03-27 11:31:37 +00:00
<h1 class="title">Admin: Ticket Priorities</h1>
<p><a class="button" href="/admin/priority/create">create priority</a></p>
<hr>
<table class="table is-fullwidth is-bordered">
<thead>
<tr class="has-background-grey">
<th class="has-text-light">id</th>
<th class="has-text-light">name</th>
<th class="has-text-light">sort_order</th>
<th class="has-text-light"></th>
</tr>
</thead>
<tbody>
<repeat group="{{@priorities}}" value="{{@priority}}">
<tr>
<td>{{@priority.id}}</td>
<td><a href="/admin/priority/{{@priority.id}}">{{@priority.name}}</a></td>
<td>{{@priority.sort_order}}</td>
<td>
<a class="button is-link is-small" href="/admin/priority/{{@priority.id}}/edit">
<i class="fa fa-edit"></i></a>
<a class="button is-danger is-small"
href="/admin/priority/{{@priority.id}}/delete"
onclick="return confirm('Are you sure you want to delete this ticket?');">
<i class="fa fa-trash-can"></i></a>
</td>
</tr>
</repeat>
</tbody>
</table>