some moving works
[audio.git] / apps / archive / templates / archive / file_managed.html
1 {% extends "archive/base.html" %}
2 {% load i18n %}
3
4 {% block content %}
5
6 <h2>{% trans "Publishing" %}</h2>
7
8 {% if audiobook.publish_wait %}
9     <p>{% trans "Audiobook marked for publishing with tags:" %}</p>
10
11     <table>
12         {% for t, v in audiobook.publishing_tags.items %}
13             <tr><th>{{ t }}</th><td>{{ v }}</td></tr>
14         {% endfor %}
15     </table>
16
17     {% if audiobook.publishing %}
18         <p>{% trans "Publishing already in progress." %}</p>
19     {% else %}
20         <form method="post" action="{% url cancel_publishing audiobook.id %}">
21             {% csrf_token %}
22             <input type="submit" value="{% trans "Cancel publishing" %}" />
23         </form>
24     {% endif %}
25 {% else %}
26     {% if audiobook.published %}
27         Here be currently published version, for comparison.
28     {% endif %}
29
30     <form method="post" action="{% url publish audiobook.id %}">
31     <table>
32         {% for k, v in audiobook.new_publish_tags.items %}
33             <tr><th>{{ k }}</th><td>{{ v }}</td></tr>
34         {% endfor %}
35
36         {% csrf_token %}
37         <tr><th></th><td><input type="submit" value="{% trans "Publish" %}" /></td></tr>
38     </table>
39     </form>
40 {% endif %}
41
42
43
44
45 <hr />
46
47
48
49
50 <h2>{% trans "Update tags" %}</h2>
51
52
53 <table class="file_tags">
54     {% for t, v in tags.items %}
55         <tr><th>{{t}}</th><td>
56         {% for x in v %}
57             {{x}}<br />
58         {% endfor %}
59         </td></tr>
60     {% endfor %}
61 </table>
62
63
64
65 <form method='post' action='.'>
66     {% csrf_token %}
67     <table>
68         {{ form.as_table }}
69         <td></td><td><input type="submit" value='{% trans "Commit" %}' /></td></td>
70     </table>
71 </form>
72
73
74
75
76 {% endblock %}