Django 1.8 and other updates.
[wolnelektury.git] / apps / wolnelektury_core / templates / admin / catalogue / book / change_form.html
1 {% extends "admin/change_form.html" %}
2 {% load i18n %}
3
4 {% block content_title %}
5     {% if change and 'advanced' in request.GET %}
6         <h1>{{ title }} &mdash; {% trans "advanced" %} </h1>
7     {% else %}
8         {{ block.super }}
9     {% endif %}
10 {% endblock %}
11
12
13 {# add an "Advanced" button to tools #}
14
15 {% block extrastyle %}
16     {% if change and not is_popup %}
17         {{ block.super }}
18         <style>
19             .object-tools {margin-bottom:0; margin-top:0;}
20             .advancedlink {text-transform: capitalize;}
21         </style>
22     {% else %}
23         {{ block.super }}
24     {% endif %}
25 {% endblock %}
26
27 {% block object-tools %}
28     {% if change and not is_popup %}
29         <div style='margin-bottom: -2em; margin-top: -2.4em; float:right; '>
30         {{ block.super }}
31         <ul class="object-tools"><li>
32         {% if 'advanced' in request.GET %}
33             <a href="." class="advancedlink">{% trans "simplified" %}</a>
34         {% else %}
35             <a href="?advanced" class="advancedlink">{% trans "advanced" %}</a>
36         {% endif %}
37         </li></ul>
38         </div>
39     {% else %}
40         {{ block.super }}
41     {% endif %}
42 {% endblock %}
43
44
45
46