From 3f8961478a8dcad7742183d77427a8146d70f798 Mon Sep 17 00:00:00 2001 From: Thu Trang Pham Date: Sat, 31 Oct 2020 19:44:46 -0700 Subject: [PATCH] Fix styling of change confirmation --- .../templates/admin/change_confirmation.html | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/admin_confirm/templates/admin/change_confirmation.html b/admin_confirm/templates/admin/change_confirmation.html index 83a139d..1c501a8 100644 --- a/admin_confirm/templates/admin/change_confirmation.html +++ b/admin_confirm/templates/admin/change_confirmation.html @@ -7,6 +7,8 @@ {% endblock %} +{% block extrastyle %}{{ block.super }}{% endblock %} + {% block bodyclass %}{{ block.super }} app-{{ opts.app_label }} model-{{ opts.model_name }} change-confirmation{% endblock %} {% block breadcrumbs %} @@ -14,22 +16,24 @@ {% trans 'Home' %}{{ opts.app_config.verbose_name }}{{ opts.verbose_name_plural|capfirst }} -› {{ object|truncatewords:"18" }} +› {{ new_object|truncatewords:"18" }} › {% trans 'Change Confirmation' %} {% endblock %} {% block content %} -

{% blocktrans with escaped_object=object %}Are you sure you want to change the {{ object_name }} "{{ escaped_object }}"?{% endblocktrans %}

+

{% blocktrans with escaped_object=object %}Are you sure you want to change the {{ model_name }} "{{ object_name }}"?{% endblocktrans %}

{% csrf_token %}
{% for key, value in form_data.items %} {% endfor %} - {% if is_popup %}{% endif %} - {% if to_field %}{% endif %} - - {% trans "No, continue to edit" %} + {% if is_popup %}{% endif %} + {% if to_field %}{% endif %} +
{% endblock %}