scrapple/templates/parks.html

39 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">
2022-12-07 06:11:21 +00:00
<h1 class="section">Chicago Parks<small>List of Parks</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>
2022-12-07 06:11:21 +00:00
<th>Name</th>
<th>Location</th>
2021-05-23 02:42:39 +00:00
<th>&nbsp;</th>
2021-05-22 19:23:17 +00:00
</tr>
</thead>
<tbody>
2022-12-07 06:11:21 +00:00
{% for e in parks %}
2021-05-22 19:23:17 +00:00
<tr>
2022-12-07 06:11:21 +00:00
<td>{{ e.title }}</td>
<td>{{ e.address }}</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 %}