32 lines
947 B
HTML

<h1 class="title">Projects</h1>
<include href="/ui/session/error.html"></include>
<p><a class="button" href="/project/create">create project</a></p>
<hr>
<table class="table is-fullwidth is-hoverable is-bordered">
<thead>
<tr class="has-background-primary">
<th>ID</th>
<th>Title</th>
<th>Requester</th>
<th>Created By</th>
<th>Created At</th>
<th>Start Date</th>
<th>End Date</th>
</tr>
</thead>
<tbody>
<repeat group="{{ @projects }}" value="{{ @p }}">
<tr>
<td>{{ @p.id }}</td>
<td><a href="/project/{{@p.id}}">{{ @p.title }}</a></td>
<td>{{ @p.requester }}</td>
<td>{{ @p.created_by }}</td>
<td>{{ @p.created_at }}</td>
<td>{{ @p.start_date }}</td>
<td>{{ @p.end_date }}</td>
</tr>
</repeat>
</tbody>
</table>