37 lines
1.3 KiB
HTML
37 lines
1.3 KiB
HTML
{% load admin_list %}
|
|
{% load i18n %}
|
|
<p class="paginator">
|
|
{% if cl.model_admin.hide_result_count %}
|
|
{% if cl.previous_page_url %}
|
|
<a href="{{ cl.previous_page_url }}">Предыдущая страница</a>
|
|
{% else %}
|
|
<span class="disabled" aria-disabled="true">Предыдущая страница</span>
|
|
{% endif %}
|
|
{% if cl.next_page_url %}
|
|
<a href="{{ cl.next_page_url }}">Следующая страница</a>
|
|
{% else %}
|
|
<span class="disabled" aria-disabled="true">Следующая страница</span>
|
|
{% endif %}
|
|
{% elif pagination_required %}
|
|
{% for i in page_range %}
|
|
{% paginator_number cl i %}
|
|
{% endfor %}
|
|
{% endif %}
|
|
{% if not cl.model_admin.hide_result_count %}
|
|
{{ cl.result_count }} {% if cl.result_count == 1 %}{{ cl.opts.verbose_name }}{% else %}{{ cl.opts.verbose_name_plural }}{% endif %}
|
|
{% endif %}
|
|
{% if show_all_url %}<a href="{{ show_all_url }}" class="showall">{% translate 'Show all' %}</a>{% endif %}
|
|
{% if cl.formset and cl.result_count %}<input type="submit" name="_save" class="default" value="{% translate 'Save' %}">{% endif %}
|
|
</p>
|
|
<style>
|
|
#changelist .paginator .disabled {
|
|
display: inline-block;
|
|
margin: 0 2px;
|
|
padding: 2px 6px;
|
|
color: var(--body-quiet-color);
|
|
opacity: 0.45;
|
|
cursor: default;
|
|
pointer-events: none;
|
|
}
|
|
</style>
|