From: Radek Czajka Date: Fri, 28 Jan 2011 16:13:18 +0000 (+0100) Subject: book change form admin template - added forgotten file X-Git-Url: https://git.mdrn.pl/wolnelektury.git/commitdiff_plain/f92464d5dbcef3a4d372d982ab5c515aefccc274?ds=inline book change form admin template - added forgotten file --- 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 %} + + + +