Skip to content

Commit 103265e

Browse files
author
Daniel Jowett
committed
Update recover form breadcrumbs and tidy object-tools/submit buttons to match Reversion 2.0 template
1 parent bf4eeb3 commit 103265e

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed
Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,22 @@
11
{% extends "admin/feincms/item_editor.html" %}
22

3-
{% load i18n %}
3+
{% load i18n admin_urls %}
44

55
{% block breadcrumbs %}
66
<div class="breadcrumbs">
7-
<a href="{% url "admin:index" %}">{% trans "Home" %}</a> &rsaquo;
8-
<a href="{% url "admin:app_list" app_label %}">{{app_label|capfirst|escape}}</a> &rsaquo;
9-
<a href="{{changelist_url}}">{{opts.verbose_name_plural|capfirst}}</a> &rsaquo;
10-
<a href="{{recoverlist_url}}">{% blocktrans with opts.verbose_name as verbose_name %}Recover deleted {{verbose_name}}{% endblocktrans %}</a> &rsaquo;
7+
<a href="{% url 'admin:index' %}">{% trans "Home" %}</a> &rsaquo;
8+
<a href="{% url 'admin:app_list' opts.app_label %}">{{opts.app_config.verbose_name}}</a> &rsaquo;
9+
<a href="{% url opts|admin_urlname:'changelist' %}">{{opts.verbose_name_plural|capfirst}}</a> &rsaquo;
10+
<a href="{% url opts|admin_urlname:'recoverlist' %}">{% blocktrans with opts.verbose_name as verbose_name %}Recover deleted {{verbose_name}}{% endblocktrans %}</a> &rsaquo;
1111
{{title}}
1212
</div>
1313
{% endblock %}
1414

15+
{% block object-tools %}{% endblock %}
16+
1517
{% block form_top %}
1618
<p>{% blocktrans %}Press the save button below to recover this version of the object.{% endblocktrans %}</p>
1719
{% endblock %}
20+
21+
{% block submit_buttons_top %}{% with is_popup=1 %}{{block.super}}{% endwith %}{% endblock %}
22+
{% block submit_buttons_bottom %}{% with is_popup=1 %}{{block.super}}{% endwith %}{% endblock %}

0 commit comments

Comments
 (0)