summaryrefslogtreecommitdiff
path: root/archaeological_finds/forms.py
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2018-12-26 11:22:03 +0100
committerÉtienne Loks <etienne.loks@iggdrasil.net>2019-01-11 17:30:46 +0100
commit307b94638bf02f2af88a13fed9521234c4c6ad72 (patch)
treec69f7d4fa07000487f4bd82b0c4a396437d49ee0 /archaeological_finds/forms.py
parent82d8f12cf5c408e30416061712ff7a6b01e5c80d (diff)
downloadIshtar-307b94638bf02f2af88a13fed9521234c4c6ad72.tar.bz2
Ishtar-307b94638bf02f2af88a13fed9521234c4c6ad72.zip
Table gallery: optionnaly display the gallery on tables
Diffstat (limited to 'archaeological_finds/forms.py')
-rw-r--r--archaeological_finds/forms.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/archaeological_finds/forms.py b/archaeological_finds/forms.py
index ae592d013..3073c5c23 100644
--- a/archaeological_finds/forms.py
+++ b/archaeological_finds/forms.py
@@ -992,6 +992,7 @@ class FindFormSelection(CustomFormSearch):
widget=widgets.DataTable(
reverse_lazy('get-find'),
FindSelect, models.Find,
+ gallery=True,
source_full=reverse_lazy('get-find-full')),
validators=[valid_id(models.Find)])
@@ -1002,6 +1003,7 @@ class FindFormSelectionWarehouseModule(FindFormSelection):
widget=widgets.DataTable(
reverse_lazy('get-find'),
FindSelectWarehouseModule, models.Find,
+ gallery=True,
source_full=reverse_lazy('get-find-full')),
validators=[valid_id(models.Find)])
@@ -1015,6 +1017,7 @@ class MultipleFindFormSelection(forms.Form):
widget=widgets.DataTable(
reverse_lazy('get-find'),
FindSelect, models.Find,
+ gallery=True,
multiple_select=True,
source_full=reverse_lazy('get-find-full')),
validators=[valid_id(models.Find)])
@@ -1026,6 +1029,7 @@ class MultipleFindFormSelectionWarehouseModule(MultipleFindFormSelection):
widget=widgets.DataTable(
reverse_lazy('get-find'),
FindSelectWarehouseModule, models.Find,
+ gallery=True,
multiple_select=True,
source_full=reverse_lazy('get-find-full')),
validators=[valid_id(models.Find)])
@@ -1041,6 +1045,7 @@ class FindMultipleFormSelection(forms.Form):
label="", required=False,
widget=widgets.DataTable(
reverse_lazy('get-find'), FindSelectWarehouseModule, models.Find,
+ gallery=True,
multiple=True, multiple_cols=[2, 3, 4]),
validators=[valid_ids(models.Find)])
@@ -1186,6 +1191,7 @@ class UpstreamFindFormSelection(PkWizardSearch, FindFormSelection):
widget=widgets.DataTable(
reverse_lazy('get-find'),
FindSelect, current_model,
+ gallery=True,
multiple_select=True,
source_full=reverse_lazy('get-find-full')),
validators=[valid_ids(current_model)])
@@ -1203,6 +1209,7 @@ class SingleUpstreamFindFormSelection(UpstreamFindFormSelection):
widget=widgets.DataTable(
reverse_lazy('get-find'),
FindSelect, current_model,
+ gallery=True,
source_full=reverse_lazy('get-find-full')),
validators=[valid_ids(current_model)])