diff options
| author | Étienne Loks <etienne.loks@iggdrasil.net> | 2026-05-03 22:32:39 +0200 |
|---|---|---|
| committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2026-05-03 22:32:39 +0200 |
| commit | 4a72e4f6460bfc2438a436ec4937e860ed77c436 (patch) | |
| tree | f2e10a96337b830767ed311f25c8dac31862e860 | |
| parent | df58559ac283d5ec9b2f6023c47a8ca599da5e83 (diff) | |
| download | Ishtar-4a72e4f6460bfc2438a436ec4937e860ed77c436.tar.bz2 Ishtar-4a72e4f6460bfc2438a436ec4937e860ed77c436.zip | |
✨ search criteria: autocomplete for periods
| -rw-r--r-- | archaeological_context_records/forms.py | 4 | ||||
| -rw-r--r-- | archaeological_finds/forms.py | 4 | ||||
| -rw-r--r-- | archaeological_operations/forms.py | 4 |
3 files changed, 7 insertions, 5 deletions
diff --git a/archaeological_context_records/forms.py b/archaeological_context_records/forms.py index 0e5b752eb..f1999d206 100644 --- a/archaeological_context_records/forms.py +++ b/archaeological_context_records/forms.py @@ -139,8 +139,8 @@ class RecordSelect(GeoItemSelect, DatingSelect): filling = forms.CharField(label=_("Filling")) interpretation = forms.CharField(label=_("Interpretation")) parcel = forms.CharField(label=_("Parcel")) - periods = forms.ChoiceField( - label=_("Periods"), choices=[], required=False + periods = widgets.Select2SimpleField( + label=_("Periods"), required=False, modal="modal-advanced-search" ) has_finds = forms.NullBooleanField(label=_("Has finds")) cr_relation_types = forms.ChoiceField( diff --git a/archaeological_finds/forms.py b/archaeological_finds/forms.py index a255cf25d..1c557c2d5 100644 --- a/archaeological_finds/forms.py +++ b/archaeological_finds/forms.py @@ -2037,8 +2037,8 @@ class FindSelect(MuseumForm, GeoItemSelect, DatingSelect): cultural_attributions = forms.ChoiceField( label=_("Cultural attribution"), choices=[], required=False ) - periods = forms.ChoiceField( - label=_("Periods"), choices=[], required=False + periods = widgets.Select2SimpleField( + label=_("Periods"), required=False, modal="modal-advanced-search" ) dating_comment = forms.CharField(label=_("Comment on datings")) actors = forms.IntegerField( diff --git a/archaeological_operations/forms.py b/archaeological_operations/forms.py index 3e94e3963..744294052 100644 --- a/archaeological_operations/forms.py +++ b/archaeological_operations/forms.py @@ -547,7 +547,9 @@ class OperationSelect(GeoItemSelect): operator_reference = forms.CharField(label=_("Operator reference"), max_length=200) remains = forms.ChoiceField(label=_("Remains"), choices=[]) - periods = forms.ChoiceField(label=_("Periods"), choices=[]) + periods = widgets.Select2SimpleField( + label=_("Periods"), modal="modal-advanced-search" + ) start = DateField(label=_("Start date")) end = DateField(label=_("Excavation end date")) relation_types = forms.ChoiceField( |
