Librarian in regular requirements.
[redakcja.git] / apps / catalogue / templates / catalogue / image_detail.html
1 {% extends "catalogue/base.html" %}
2 {% load book_list i18n %}
3
4
5 {% block titleextra %}{{ object.title }}{% endblock %}
6
7
8 {% block content %}
9
10
11 <h1>{{ object.title }}</h1>
12
13
14 {% if editable %}<form method='POST'>{% csrf_token %}{% endif %}
15 <table class='editable'><tbody>
16     {{ form.as_table }}
17     {% if editable %}
18         <tr><td></td><td><button type="submit">{% trans "Save" %}</button></td></tr>
19     {% endif %}
20 </tbody></table>
21 {% if editable %}</form>{% endif %}
22
23
24
25 <div class='section'>
26     <h2>{% trans "Editor" %}</h2>
27
28     <p><a href="{% url 'wiki_img_editor' object.slug %}">{% trans "Proceed to the editor." %}</a></p>
29 </div>
30
31
32
33 <div class='section'>
34
35
36 <h2>{% trans "Publication" %}</h2>
37
38 <p>{% trans "Last published" %}: 
39     {% if object.last_published %}
40         {{ object.last_published }}
41     {% else %}
42         &mdash;
43     {% endif %}
44 </p>
45
46 {% if publishable %}
47     {% if user.is_authenticated %}
48         <!--
49         Angel photos:
50         Angels in Ely Cathedral (http://www.flickr.com/photos/21804434@N02/4483220595/) /
51         mira66 (http://www.flickr.com/photos/21804434@N02/) /
52         CC BY 2.0 (http://creativecommons.org/licenses/by/2.0/)
53         -->
54         <form method="POST" action="{% url 'catalogue_publish_image' object.slug %}">{% csrf_token %}
55             <!--img src="{{ STATIC_URL }}img/angel-left.png" style="vertical-align: middle" /-->
56             <button id="publish-button" type="submit">
57                 <span>{% trans "Publish" %}</span></button>
58             <!--img src="{{ STATIC_URL }}img/angel-right.png" style="vertical-align: middle" /-->
59             </form>
60     {% else %}
61         <a href="{% url 'login' %}">{% trans "Log in to publish." %}</a>
62     {% endif %}
63 {% else %}
64     <p>{% trans "This book can't be published yet, because:" %}</p>
65     <ul><li>{{ publishable_error }}</li></ul>
66 {% endif %}
67
68 </div>
69
70
71 {% endblock content %}