From 72b15c92ba76b1657dc49f9fad3abe9b1485e9c9 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Wed, 4 Apr 2018 16:42:09 +0200 Subject: Admin: previous / next button for types --- ishtar_common/templates/admin/change_form.html | 39 ++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 ishtar_common/templates/admin/change_form.html (limited to 'ishtar_common/templates/admin') 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 }} + +{% endblock %} + + {% block object-tools-items %} +
  • + {% url opts|admin_urlname:'history' original.pk|admin_urlquote as history_url %} + {% trans "History" %} +
  • + {% if has_absolute_url %}
  • {% trans "View on site" %}
  • {% endif %} +
  • {% if previous_item %} + + {% trans "Previous" %} + {% else %} + + {% trans "Previous" %} + + {% endif %}
  • +
  • {% if next_item %} + + {% trans "Next" %} + {% else %} + + {% trans "Next" %} + + {% endif %} +
  • + {% endblock %} -- cgit v1.2.3