Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
chris
repanier
Commits
c0a2aaa3
Commit
c0a2aaa3
authored
May 12, 2017
by
Patrick
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use sticky for admin pagination and actions
parent
fee7c6a6
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
0 deletions
+16
-0
repanier/templates/admin/base.html
repanier/templates/admin/base.html
+2
-0
repanier/templates/admin/pagination.html
repanier/templates/admin/pagination.html
+14
-0
No files found.
repanier/templates/admin/base.html
View file @
c0a2aaa3
...
...
@@ -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
#
}
</style>
...
...
repanier/templates/admin/pagination.html
0 → 100644
View file @
c0a2aaa3
{% 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 %}
<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 %}
</p>
</div>
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment