confirm on remove_to_archive
authorRadek Czajka <radoslaw.czajka@nowoczesnapolska.org.pl>
Wed, 26 Oct 2011 10:57:38 +0000 (12:57 +0200)
committerRadek Czajka <radoslaw.czajka@nowoczesnapolska.org.pl>
Wed, 26 Oct 2011 10:57:38 +0000 (12:57 +0200)
apps/archive/locale/pl/LC_MESSAGES/django.mo
apps/archive/locale/pl/LC_MESSAGES/django.po
apps/archive/templates/archive/file_managed.html

index aacb099..b2b15bd 100644 (file)
Binary files a/apps/archive/locale/pl/LC_MESSAGES/django.mo and b/apps/archive/locale/pl/LC_MESSAGES/django.mo differ
index e47b150..1d56bfe 100644 (file)
@@ -7,8 +7,8 @@ msgid ""
 msgstr ""
 "Project-Id-Version: PACKAGE VERSION\n"
 "Report-Msgid-Bugs-To: \n"
 msgstr ""
 "Project-Id-Version: PACKAGE VERSION\n"
 "Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2011-10-26 12:47+0200\n"
-"PO-Revision-Date: 2011-10-26 12:47+0100\n"
+"POT-Creation-Date: 2011-10-26 12:56+0200\n"
+"PO-Revision-Date: 2011-10-26 12:57+0100\n"
 "Last-Translator: Radek Czajka <radoslaw.czajka@nowoczesnapolska.org.pl>\n"
 "Language-Team: LANGUAGE <LL@li.org>\n"
 "Language: \n"
 "Last-Translator: Radek Czajka <radoslaw.czajka@nowoczesnapolska.org.pl>\n"
 "Language-Team: LANGUAGE <LL@li.org>\n"
 "Language: \n"
@@ -140,7 +140,11 @@ msgstr "Uaktualnij tagi"
 msgid "Commit"
 msgstr "Zatwierdź"
 
 msgid "Commit"
 msgstr "Zatwierdź"
 
-#: templates/archive/file_managed.html:103
+#: templates/archive/file_managed.html:102
+msgid "Are you sure you want to move this audiobook to archive?"
+msgstr "Czy na pewno chcesz przenieść ten plik to archiwum?"
+
+#: templates/archive/file_managed.html:104
 msgid "Remove to archive"
 msgstr "Usuń do archiwum"
 
 msgid "Remove to archive"
 msgstr "Usuń do archiwum"
 
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>
     {% csrf_token %}
     <input type="submit" value="{% trans "Remove to archive" %}" />
 </form>