summaryrefslogtreecommitdiff
path: root/archaeological_warehouse/forms.py
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2016-12-25 11:29:47 +0100
committerÉtienne Loks <etienne.loks@iggdrasil.net>2016-12-25 11:29:47 +0100
commitcd9e0a4be602877bde4f9811cadb422f72abad5b (patch)
tree42f9649632e7cb18b4faf337cd9e459e9edee9c7 /archaeological_warehouse/forms.py
parentf28e33bcf8c290d3ff2fab20c4d5728c847ff73b (diff)
downloadIshtar-cd9e0a4be602877bde4f9811cadb422f72abad5b.tar.bz2
Ishtar-cd9e0a4be602877bde4f9811cadb422f72abad5b.zip
Manage container deletion (refs #3392)
Diffstat (limited to 'archaeological_warehouse/forms.py')
-rw-r--r--archaeological_warehouse/forms.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/archaeological_warehouse/forms.py b/archaeological_warehouse/forms.py
index 5932fc7aa..d571364a4 100644
--- a/archaeological_warehouse/forms.py
+++ b/archaeological_warehouse/forms.py
@@ -27,7 +27,7 @@ from archaeological_finds.models import TreatmentType, FindBasket
import models
from ishtar_common import widgets
from ishtar_common.forms import name_validator, reverse_lazy, \
- get_form_selection, TableSelect, ManageOldType
+ get_form_selection, TableSelect, ManageOldType, FinalForm
from archaeological_finds.forms import FindMultipleFormSelection, \
SelectFindBasketForm
@@ -269,3 +269,8 @@ class LocalisationForm(forms.Form):
initial = q.all()[0].reference
self.fields['division_{}'.format(divlink.pk)] = forms.CharField(
label=str(divlink.division), max_length=200, initial=initial)
+
+
+class ContainerDeletionForm(FinalForm):
+ confirm_msg = _(u"Would you like to delete this container?")
+ confirm_end_msg = _(u"Would you like to delete this container?")