From 605feafa4838dcd769f37574d393372fe3146fcb Mon Sep 17 00:00:00 2001 From: Patrick Date: Fri, 28 Aug 2020 01:30:12 +0000 Subject: [PATCH] add cancel button in the admin view --- fet2020/templates/admin/submit_line.html | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 fet2020/templates/admin/submit_line.html diff --git a/fet2020/templates/admin/submit_line.html b/fet2020/templates/admin/submit_line.html new file mode 100644 index 00000000..e4b91bb9 --- /dev/null +++ b/fet2020/templates/admin/submit_line.html @@ -0,0 +1,15 @@ +{% load i18n admin_urls %} +
+{% block submit-row %} +{% if show_save %}{% endif %} +{% if show_delete_link %} + {% url opts|admin_urlname:'delete' original.pk|admin_urlquote as delete_url %} + +{% endif %} +{% trans 'Close' %} +{% if show_save_as_new %}{% endif %} +{% if show_save_and_add_another %}{% endif %} +{% if show_save_and_continue %}{% endif %} +{% if show_publish %}{% endif %} +{% endblock %} +
\ No newline at end of file