templates/filter/hard-pagination.twig
{#
Hard pagination occurs when the server only generates a single
table-page at a time, on the browser's request. See comment
in soft-pagination.twig
#}
<div class="pagination-container" data-handle-for="{{ id }}">
<span class="pagination-arrow-container">
<a class="pagination-arrow back first" data-page-for="{{ options|first }}">«</a>
<a class="pagination-arrow back previous" data-page-for="{{ options|first }}">‹</a>
</span>
<select class="pagination-filter {{ id }}">
{% for option in options %}
<option value="{{ option }}">{{ option }}</option>
{% endfor %}
</select>
<span class="pagination-arrow-container">
<a class="pagination-arrow forward next" data-page-for="{{ options|last }}">›</a>
<a class="pagination-arrow forward last" data-page-for="{{ options|last }}">»</a>
</span>
</div>
<script>
$(function() {
athens.filter.setupFilter(athens.pagination.setupPaginationFilter, "{{ id }}");
});
</script>