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