summaryrefslogtreecommitdiff
path: root/archaeological_finds/forms.py
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2016-03-07 17:20:18 +0100
committerÉtienne Loks <etienne.loks@iggdrasil.net>2016-03-07 17:20:18 +0100
commitcc05d8f59db768cd3deefb5424b71e3ee7511552 (patch)
tree9ced1fb99aa3f63bfb3440320117e88613f3c1b7 /archaeological_finds/forms.py
parente91a151d549bfc06cb27772e717b80412a39ff61 (diff)
downloadIshtar-cc05d8f59db768cd3deefb5424b71e3ee7511552.tar.bz2
Ishtar-cc05d8f59db768cd3deefb5424b71e3ee7511552.zip
Finds: deletion (refs #2812)
Diffstat (limited to 'archaeological_finds/forms.py')
-rw-r--r--archaeological_finds/forms.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/archaeological_finds/forms.py b/archaeological_finds/forms.py
index 83a9e2da3..3cfe13ea9 100644
--- a/archaeological_finds/forms.py
+++ b/archaeological_finds/forms.py
@@ -36,7 +36,7 @@ import models
from ishtar_common import widgets
from ishtar_common.forms import FormSet, FloatField, \
- get_form_selection, reverse_lazy, TableSelect, get_now
+ get_form_selection, reverse_lazy, TableSelect, get_now, FinalForm
from ishtar_common.forms_common import get_town_field, SourceSelect
@@ -314,6 +314,11 @@ ResultFindFormSet = formset_factory(ResultFindForm, can_delete=True,
ResultFindFormSet.form_label = _(u"Resulting finds")
+class FindDeletionForm(FinalForm):
+ confirm_msg = " "
+ confirm_end_msg = _(u"Would you like to delete this find?")
+
+
class UpstreamFindFormSelection(FindFormSelection):
form_label = _(u"Upstream find")