diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2018-04-04 16:42:09 +0200 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2018-04-04 16:42:09 +0200 |
commit | 72b15c92ba76b1657dc49f9fad3abe9b1485e9c9 (patch) | |
tree | d05c722bc0835ef44ccdbd4cb34d33613b764d46 /ishtar_common/templates/admin | |
parent | c804c16f8018a2ec043703e4ebed304beadad4aa (diff) | |
download | Ishtar-72b15c92ba76b1657dc49f9fad3abe9b1485e9c9.tar.bz2 Ishtar-72b15c92ba76b1657dc49f9fad3abe9b1485e9c9.zip |
Admin: previous / next button for types
Diffstat (limited to 'ishtar_common/templates/admin')
-rw-r--r-- | ishtar_common/templates/admin/change_form.html | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/ishtar_common/templates/admin/change_form.html b/ishtar_common/templates/admin/change_form.html new file mode 100644 index 000000000..f5c83faa6 --- /dev/null +++ b/ishtar_common/templates/admin/change_form.html @@ -0,0 +1,39 @@ +{% extends "admin/change_form.html" %} +{% load i18n admin_urls static admin_list %} + +{% block extrahead %} +{{ block.super }} +<style> +.object-tools a.disabled:link, .object-tools a.disabled:visited, +.object-tools a.disabled:focus, .object-tools a.disabled:hover { + background: #ccc; + color: #eee; + pointer-events: none; +} +</style> +{% endblock %} + + {% block object-tools-items %} + <li> + {% url opts|admin_urlname:'history' original.pk|admin_urlquote as history_url %} + <a href="{% add_preserved_filters history_url %}" class="historylink">{% trans "History" %}</a> + </li> + {% if has_absolute_url %}<li><a href="{{ absolute_url }}" class="viewsitelink">{% trans "View on site" %}</a></li>{% endif %} + <li>{% if previous_item %} + <a href="{% url opts|admin_urlname:'change' previous_item %}{{get_attr}}"> + {% trans "Previous" %} + </a>{% else %} + <a href="#" class="disabled"> + {% trans "Previous" %} + </a> + {% endif %}</li> + <li>{% if next_item %} + <a href="{% url opts|admin_urlname:'change' next_item %}{{get_attr}}"> + {% trans "Next" %} + </a>{% else %} + <a href="#" class="disabled"> + {% trans "Next" %} + </a> + {% endif %} + </li> + {% endblock %} |