From afeb9ccb2babc91a0541261ecb6549d09d6c3d7c Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Wed, 13 Feb 2019 19:13:25 +0100 Subject: Search: add fields for container search - add site for find search --- archaeological_warehouse/forms.py | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'archaeological_warehouse/forms.py') diff --git a/archaeological_warehouse/forms.py b/archaeological_warehouse/forms.py index b6bff3d5b..7a84b2833 100644 --- a/archaeological_warehouse/forms.py +++ b/archaeological_warehouse/forms.py @@ -268,21 +268,29 @@ class ContainerSelect(HistorySelect): responsible_name = get_warehouse_field(label=_(u"Responsible warehouse")) container_type = forms.ChoiceField(label=_(u"Container type"), choices=[]) reference = forms.CharField(label=_(u"Ref.")) + old_reference = forms.CharField(label=_(u"Old reference")) + comment = forms.CharField(label=_(u"Comment")) - code_patriarche = forms.IntegerField(label=_(u"Code PATRIARCHE"), - widget=OAWidget) archaeological_sites = forms.IntegerField( label=_("Archaeological site (attached to the operation)"), widget=widgets.JQueryAutoComplete( reverse_lazy('autocomplete-archaeologicalsite'), associated_model=ArchaeologicalSite), validators=[valid_id(ArchaeologicalSite)]) + archaeological_sites_name = forms.CharField( + label=_(u"Archaeological site name (attached to the operation)") + ) archaeological_sites_context_record = forms.IntegerField( label=_("Archaeological site (attached to the context record)"), widget=widgets.JQueryAutoComplete( reverse_lazy('autocomplete-archaeologicalsite'), associated_model=ArchaeologicalSite), validators=[valid_id(ArchaeologicalSite)]) + archaeological_sites_context_record_name = forms.CharField( + label=_(u"Archaeological site name (attached to the context record)") + ) + code_patriarche = forms.IntegerField(label=_(u"Code PATRIARCHE"), + widget=OAWidget) context_record = forms.IntegerField( label=_("Context record"), widget=widgets.JQueryAutoComplete( -- cgit v1.2.3