2025-03-24 01:19:10 +00:00
|
|
|
<h1 class="title">Tickets</h1>
|
|
|
|
|
<include href="/ui/session/error.html">
|
|
|
|
|
<p><a class="button" href="/ticket/create">create ticket</a></p>
|
2025-02-09 20:04:45 +00:00
|
|
|
<hr>
|
|
|
|
|
|
|
|
|
|
<table class="table is-fullwidth is-bordered">
|
|
|
|
|
<thead>
|
2025-03-23 10:30:36 +00:00
|
|
|
<tr class="has-background-warning">
|
2025-02-11 09:26:33 +00:00
|
|
|
<th>id</th><th>title</th>
|
2025-02-09 20:04:45 +00:00
|
|
|
<th>status</th><th>priority</th><th>created_at</th>
|
|
|
|
|
<th></th>
|
|
|
|
|
</tr>
|
|
|
|
|
</thead>
|
|
|
|
|
|
|
|
|
|
<tbody>
|
|
|
|
|
<repeat group="{{@tickets}}" value="{{@ticket}}">
|
|
|
|
|
<tr>
|
2025-03-23 10:30:36 +00:00
|
|
|
<td>{{@ticket.id}}</td>
|
|
|
|
|
<td><a href="/ticket/{{@ticket.id}}">{{@ticket.title}}</a></td>
|
2025-03-25 09:15:44 +00:00
|
|
|
<td><icons type="status">{{@ticket.status_name}}</icons></td>
|
|
|
|
|
<td><icons type="priority">{{@ticket.priority_name}}</icons></td>
|
2025-02-09 20:04:45 +00:00
|
|
|
<td>{{@ticket.created_at}}</td>
|
2025-02-09 21:22:25 +00:00
|
|
|
<td>
|
2025-03-24 01:40:45 +00:00
|
|
|
<a class="button is-link is-small" href="/ticket/{{@ticket.id}}/edit">
|
|
|
|
|
<i class="fa fa-edit"></i></a>
|
|
|
|
|
<a class="button is-danger is-small"
|
|
|
|
|
href="/ticket/{{@ticket.id}}/delete"
|
|
|
|
|
onclick="return confirm('Are you sure you want to delete this ticket?');">
|
|
|
|
|
<i class="fa fa-trash-can"></i></a>
|
2025-02-09 21:22:25 +00:00
|
|
|
</td>
|
2025-02-09 20:04:45 +00:00
|
|
|
</tr>
|
|
|
|
|
</repeat>
|
|
|
|
|
</tbody>
|
|
|
|
|
</table>
|