Commit c0a2aaa3 authored by Patrick's avatar Patrick
Browse files

Use sticky for admin pagination and actions

parent fee7c6a6
......@@ -54,6 +54,8 @@ form label.aligned.btn, form label.btn{color: black !important;}
abbr, address, article, aside, audio, b, blockquote, body, canvas, caption, cite, code, dd, del, details, dfn, div, dl, dt, em, fieldset, figcaption, figure, footer, form, h1, h2, h3, h4, h5, h6, header, hgroup, html, i, iframe, img, ins, kbd, label, legend, li, mark, menu, nav, object, ol, p, pre, q, samp, section, small, span, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, time, tr, ul, var, video {
line-height: inherit !important;
.submit-row {position:sticky;bottom:20px;}
.paginator {position:sticky;bottom:20px;}
{#.object-tools { position: inherit !important;}#}
{# ^^^^^^^^^^^ django cms admin style 1.2.6 #}
{% load admin_list %}
{% load i18n %}
<div style="position:sticky;bottom:0;">
<p class="paginator">Patrick
{% if pagination_required %}
{% for i in page_range %}
{% paginator_number cl i %}
{% endfor %}
{% endif %}
{{ cl.result_count }} {% if cl.result_count == 1 %}{{ cl.opts.verbose_name }}{% else %}{{ cl.opts.verbose_name_plural }}{% endif %}
{% if show_all_url %}&nbsp;&nbsp;<a href="{{ show_all_url }}" class="showall">{% trans 'Show all' %}</a>{% endif %}
{% if cl.formset and cl.result_count %}<input type="submit" name="_save" class="default" value="{% trans 'Save' %}"/>{% endif %}
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment