From f92464d5dbcef3a4d372d982ab5c515aefccc274 Mon Sep 17 00:00:00 2001 From: Radek Czajka Date: Fri, 28 Jan 2011 17:13:18 +0100 Subject: [PATCH 1/1] book change form admin template - added forgotten file --- .../admin/catalogue/book/change_form.html | 46 +++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 wolnelektury/templates/admin/catalogue/book/change_form.html diff --git a/wolnelektury/templates/admin/catalogue/book/change_form.html b/wolnelektury/templates/admin/catalogue/book/change_form.html new file mode 100644 index 000000000..819ab62fc --- /dev/null +++ b/wolnelektury/templates/admin/catalogue/book/change_form.html @@ -0,0 +1,46 @@ +{% extends "admin/change_form.html" %} +{% load i18n %} + +{% block content_title %} + {% if change and 'advanced' in request.GET %} +

{{ title }} — {% trans "advanced" %}

+ {% else %} + {{ block.super }} + {% endif %} +{% endblock %} + + +{# add an "Advanced" button to tools #} + +{% block extrastyle %} + {% if change and not is_popup %} + {{ block.super }} + + {% else %} + {{ block.super }} + {% endif %} +{% endblock %} + +{% block object-tools %} + {% if change and not is_popup %} +
+ {{ block.super }} + +
+ {% else %} + {{ block.super }} + {% endif %} +{% endblock %} + + + + -- 2.20.1