gramps/data/templates/paginator.html

37 lines
1.5 KiB
HTML
Raw Normal View History

2009-12-31 20:31:06 +05:30
<div class="pagination">
<span class="step-links">
2012-05-16 01:40:02 +05:30
<form method="post">{% csrf_token %}
<div id="alphanav" style="padding: 0pt 0 0pt 0;">
2009-12-31 20:31:06 +05:30
<ul>
{% ifequal page.number 1 %}
2012-05-16 01:40:02 +05:30
<li><input type="button" value="<<" disabled="disabled"></li>
2009-12-31 20:31:06 +05:30
{% else %}
2012-05-16 01:40:02 +05:30
<li><input type="button" value="<<" onclick="document.location.href='?page=1{{search_query}}'"></li>
2009-12-31 20:31:06 +05:30
{% endifequal %}
{% if page.has_previous %}
2012-05-16 01:40:02 +05:30
<li><input type="button" value="<" onclick="document.location.href='?page={{page.previous_page_number}}{{search_query}}'"></li>
2009-12-31 20:31:06 +05:30
{% else %}
2012-05-16 01:40:02 +05:30
<li><input type="button" value="<" disabled="disabled"></li>
2009-12-31 20:31:06 +05:30
{% endif %}
<span class="current">
<li>Page {{ page.number }} of {{ page.paginator.num_pages }}</li>
</span>
{% if page.has_next %}
2012-05-16 01:40:02 +05:30
<li><input type="button" value=">" onclick="document.location.href='?page={{page.next_page_number}}{{search_query}}'"></li>
2009-12-31 20:31:06 +05:30
{% else %}
2012-05-16 01:40:02 +05:30
<li><input type="button" value=">" disabled="disabled"></li>
2009-12-31 20:31:06 +05:30
{% endif %}
{% ifequal page.number page.paginator.num_pages %}
2012-05-16 01:40:02 +05:30
<li><input type="button" value=">>" disabled="disabled"></li>
2009-12-31 20:31:06 +05:30
{% else %}
2012-05-16 01:40:02 +05:30
<li><input type="button" value=">>" onclick="document.location.href='?page={{page.paginator.num_pages}}{{search_query}}'"></li>
2009-12-31 20:31:06 +05:30
{% endifequal %}
<b>Matches</b>: {{page.paginator.count}}/{{total}} <b>Showing</b>: {{results_this_page}}
</ul>
</div>
</span>
</div>