summaryrefslogtreecommitdiff
path: root/archaeological_finds/forms.py
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2016-05-22 17:02:11 +0200
committerÉtienne Loks <etienne.loks@iggdrasil.net>2016-05-22 17:02:11 +0200
commitf937d282b0ac0864da5651176a3c95418d1e0575 (patch)
tree2fc4bd28fb7b1a7edca5a138cf929adcacb6a09d /archaeological_finds/forms.py
parent5a1a52a3e1996793eb22955a82915966d7abb279 (diff)
downloadIshtar-f937d282b0ac0864da5651176a3c95418d1e0575.tar.bz2
Ishtar-f937d282b0ac0864da5651176a3c95418d1e0575.zip
Basket management: select multiple - select all
Diffstat (limited to 'archaeological_finds/forms.py')
-rw-r--r--archaeological_finds/forms.py14
1 files changed, 14 insertions, 0 deletions
diff --git a/archaeological_finds/forms.py b/archaeological_finds/forms.py
index 95af01719..ca2946a21 100644
--- a/archaeological_finds/forms.py
+++ b/archaeological_finds/forms.py
@@ -251,6 +251,20 @@ class FindFormSelection(forms.Form):
validators=[valid_id(models.Find)])
+class MultipleFindFormSelection(forms.Form):
+ form_label = _("Find search")
+ associated_models = {'pk': models.Find}
+ currents = {'pk': models.Find}
+ pk = forms.IntegerField(
+ label="", required=False,
+ widget=widgets.JQueryJqGrid(
+ reverse_lazy('get-find'),
+ FindSelect, models.Find,
+ multiple_select=True,
+ source_full=reverse_lazy('get-find-full')),
+ validators=[valid_id(models.Find)])
+
+
class BaseTreatmentForm(forms.Form):
form_label = _(u"Base treatment")
associated_models = {'treatment_type': models.TreatmentType,