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
commit6b6ca196840dbd2eeeee865bd2e6c68cf9372c4c (patch)
tree42f9649632e7cb18b4faf337cd9e459e9edee9c7 /archaeological_warehouse/forms.py
parent613f7ade4ac8bd06c300a07afc074e76f1e7288a (diff)
downloadIshtar-6b6ca196840dbd2eeeee865bd2e6c68cf9372c4c.tar.bz2
Ishtar-6b6ca196840dbd2eeeee865bd2e6c68cf9372c4c.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?")