mirror of
https://gitlab2.federez.net/re2o/re2o
synced 2024-11-24 20:33:11 +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 %}
|
{% endif %}
|
||||||
|
|
||||||
{% block result_list %}
|
{% 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 %}
|
{% 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 %}
|
{% endblock %}
|
||||||
{% block pagination %}{% pagination cl %}{% endblock %}
|
{% block pagination %}{% pagination cl %}{% endblock %}
|
||||||
</form>
|
</form>
|
||||||
|
|
|
@ -88,6 +88,7 @@ class LdapServiceUserGroupAdmin(admin.ModelAdmin):
|
||||||
class SchoolAdmin(VersionAdmin):
|
class SchoolAdmin(VersionAdmin):
|
||||||
"""Administration, gestion des écoles"""
|
"""Administration, gestion des écoles"""
|
||||||
list_display = ('name',)
|
list_display = ('name',)
|
||||||
|
actions_on_bottom = True
|
||||||
|
|
||||||
|
|
||||||
class ListRightAdmin(VersionAdmin):
|
class ListRightAdmin(VersionAdmin):
|
||||||
|
@ -99,6 +100,7 @@ class ListRightAdmin(VersionAdmin):
|
||||||
class ListShellAdmin(VersionAdmin):
|
class ListShellAdmin(VersionAdmin):
|
||||||
"""Gestion de la liste des shells coté admin"""
|
"""Gestion de la liste des shells coté admin"""
|
||||||
list_display = ('shell',)
|
list_display = ('shell',)
|
||||||
|
actions_on_bottom = True
|
||||||
|
|
||||||
|
|
||||||
class RequestAdmin(admin.ModelAdmin):
|
class RequestAdmin(admin.ModelAdmin):
|
||||||
|
|
Loading…
Reference in a new issue