confirm on remove_to_archive
[audio.git] / apps / archive / templates / archive / file_managed.html
index c67edea..db8e4f6 100755 (executable)
@@ -4,6 +4,10 @@
 
 {% block content %}
 
+<p>Plik źródłowy: <a href='{{ audiobook.source_file.url }}'>{{ path }}</a>
+(sha1: <tt>{{ audiobook.source_sha1 }}</tt>).
+</p>
+
 <h2>{% trans "Publishing" %}</h2>
 
 {% if audiobook.mp3_status or audiobook.ogg_status %}
@@ -90,5 +94,16 @@ Last modified: {{ audiobook.modified }}
 
 
 
+<hr />
+
+
+
+<form method="post" action="{% url remove_to_archive audiobook.id %}"
+    onsubmit='return confirm("{% trans "Are you sure you want to move this audiobook to archive?" %}")'>
+    {% csrf_token %}
+    <input type="submit" value="{% trans "Remove to archive" %}" />
+</form>
+
+
 
 {% endblock %}