poli_planning/polyclinic_scheduling/apps/RUG_template/templates/pager.html

29 lines
1.5 KiB
HTML

{% load i18n %}
{% if page_obj.paginator.num_pages > 1 %}
<ul class="rug-list--inline" >
{% if page_obj.has_previous %}
{% comment %}
<li class="rug-list--inline__item">
<a href="?page=1" name="page" class="rug-button rug-button--small rug-button--neutral" value="1"><span>«« {% trans "first" %}</span></a>
</li>
{% endcomment %}
<li class="rug-list--inline__item">
<a href="?page={{ page_obj.previous_page_number }}" name="prev" class="rug-button rug-button--small rug-button--neutral" value="« {% trans "previous" %}"><span>« {% trans "previous" %}</span></a>
</li>
{% endif %}
<li class="rug-list--inline__item">
<a name="page" class="rug-button rug-button--small rug-button--secondary" value="{{ page_obj.number }}"><span>{{ page_obj.number }}</span></a>
</li>
{% if page_obj.has_next %}
<li class="rug-list--inline__item">
<a href="?page={{ page_obj.next_page_number }}" name="next" class="rug-button rug-button--small rug-button--neutral" value="{% trans "next" %} »"><span>{% trans "next" %} »</span></a>
</li>
{% comment %}
<li class="rug-list--inline__item">
<a href="?page={{ page_obj.paginator.num_pages }}" name="page" class="rug-button rug-button--small rug-button--neutral" value="{% trans "last" %} »»"><span>{% trans "last" %} »»</span></a>
</li>
{% endcomment %}
{% endif %}
</ul>
{% endif %}