From 9400b01a5542cea646e2ad9162bb48994271e161 Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Mon, 17 Feb 2020 20:29:41 +0100 Subject: [PATCH] admin: parameterise generic from's base template --- passbook/admin/templates/generic/create.html | 2 +- passbook/admin/templates/generic/form.html | 4 ++-- passbook/admin/templates/generic/update.html | 2 +- passbook/admin/views/property_mapping.py | 9 +++++++++ 4 files changed, 13 insertions(+), 4 deletions(-) diff --git a/passbook/admin/templates/generic/create.html b/passbook/admin/templates/generic/create.html index 43bce2814..c62000bf1 100644 --- a/passbook/admin/templates/generic/create.html +++ b/passbook/admin/templates/generic/create.html @@ -1,4 +1,4 @@ -{% extends "generic/form.html" %} +{% extends base_template|default:"generic/form.html" %} {% load utils %} {% load i18n %} diff --git a/passbook/admin/templates/generic/form.html b/passbook/admin/templates/generic/form.html index b3c357e0a..a7a073f03 100644 --- a/passbook/admin/templates/generic/form.html +++ b/passbook/admin/templates/generic/form.html @@ -30,12 +30,12 @@
{% include 'partials/form.html' with form=form %} + {% block beneath_form %} + {% endblock %} {% trans "Cancel" %}
- {% block beneath_form %} - {% endblock %}