mirror of
https://gitlab2.federez.net/re2o/re2o
synced 2024-11-28 15:42:25 +00:00
Use Django actions_on_bottom mechanic
This commit is contained in:
parent
8929bd1971
commit
36ca075433
2 changed files with 4 additions and 2 deletions
|
@ -80,9 +80,9 @@
|
|||
{% endif %}
|
||||
|
||||
{% block result_list %}
|
||||
{% if action_form and cl.show_admin_actions %}{% admin_actions %}{% endif %}
|
||||
{% if action_form and actions_on_top and cl.show_admin_actions %}{% admin_actions %}{% endif %}
|
||||
{% result_list cl %}
|
||||
{% if action_form and cl.show_admin_actions %}{% admin_actions %}{% endif %}
|
||||
{% if action_form and actions_on_bottom and cl.show_admin_actions %}{% admin_actions %}{% endif %}
|
||||
{% endblock %}
|
||||
{% block pagination %}{% pagination cl %}{% endblock %}
|
||||
</form>
|
||||
|
|
|
@ -88,6 +88,7 @@ class LdapServiceUserGroupAdmin(admin.ModelAdmin):
|
|||
class SchoolAdmin(VersionAdmin):
|
||||
"""Administration, gestion des écoles"""
|
||||
list_display = ('name',)
|
||||
actions_on_bottom = True
|
||||
|
||||
|
||||
class ListRightAdmin(VersionAdmin):
|
||||
|
@ -99,6 +100,7 @@ class ListRightAdmin(VersionAdmin):
|
|||
class ListShellAdmin(VersionAdmin):
|
||||
"""Gestion de la liste des shells coté admin"""
|
||||
list_display = ('shell',)
|
||||
actions_on_bottom = True
|
||||
|
||||
|
||||
class RequestAdmin(admin.ModelAdmin):
|
||||
|
|
Loading…
Reference in a new issue