scrapple/templates/staff.html

41 lines
1.1 KiB
HTML
Raw Normal View History

2021-05-22 19:23:17 +00:00
{% extends "base.html" %}
{% block base %}
<div class="card fluid">
2021-05-23 02:52:39 +00:00
<h1 class="section">Yoyodyne Propulsion Systems <small>Staff Roster</small></h1>
2021-05-22 19:23:17 +00:00
<div class="section">
2021-06-04 21:49:42 +00:00
<table id="employees" style="max-height: 100%;">
2021-05-22 19:23:17 +00:00
<thead>
<tr>
<th>First Name</th>
<th>Last Name</th>
<th>Position Name</th>
2021-05-23 02:42:39 +00:00
<th>&nbsp;</th>
2021-05-22 19:23:17 +00:00
</tr>
</thead>
<tbody>
{% for e in employees %}
<tr>
<td>{{ e.first }}</td>
<td>{{ e.last }}</td>
<td>{{ e.position }}</td>
2021-05-23 02:42:39 +00:00
<td><a href="/staff/{{ e.id }}">Details</a></td>
2021-05-22 19:23:17 +00:00
</tr>
{% endfor %}
</tbody>
</table>
2021-06-04 21:49:42 +00:00
<div style="display: grid; grid-template-columns: auto auto;">
{% if prev_page %}
<a class="button" href="?page={{ prev_page }}" style="justify-self: start;">&laquo; Previous</a>
{% else %}
<!-- for grid spacing -->
<span>&nbsp;</span>
{% endif %}
{% if next_page %}
<a class="button" style="justify-self: end;" href="?page={{ next_page }}">Next &raquo;</a>
{% endif %}
</div>
2021-05-22 19:23:17 +00:00
</div>
</div>
{% endblock %}