Skip to content

Instantly share code, notes, and snippets.

@spolischook
Last active November 25, 2015 03:21
Show Gist options
  • Save spolischook/85e0a5722bcc13539b80 to your computer and use it in GitHub Desktop.
Save spolischook/85e0a5722bcc13539b80 to your computer and use it in GitHub Desktop.
Select with per page pagination count
{% set limit = app.request.query.get('limit')|default(10) %}
<select class="form-control" onchange="pager()" id="perPageSelector">
<option {% if limit == 10 %}selected{% endif %} value="10">10</option>
<option {% if limit == 25 %}selected{% endif %} value="25">25</option>
<option {% if limit == 50 %}selected{% endif %} value="50">50</option>
<option {% if limit == 100 %}selected{% endif %} value="100">100</option>
</select>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment