confirm on remove_to_archive
[audio.git] / apps / archive / templates / archive / file_managed.html
index d43c97e..db8e4f6 100755 (executable)
@@ -98,7 +98,8 @@ Last modified: {{ audiobook.modified }}
 
 
 
-<form method="post" action="{% url remove_to_archive audiobook.id %}">
+<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>