diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2020-12-03 14:00:23 +0100 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2021-02-28 12:15:22 +0100 |
commit | 42e32d4cdd18474c4daf5bf960cebb0855dad9ef (patch) | |
tree | 0081995b45531ce4769fe070baaf06b97b3b7ffe /archaeological_context_records | |
parent | c42aecdda25802c2b3b9db27179720517f2be70e (diff) | |
download | Ishtar-42e32d4cdd18474c4daf5bf960cebb0855dad9ef.tar.bz2 Ishtar-42e32d4cdd18474c4daf5bf960cebb0855dad9ef.zip |
Add doc search to operations
Diffstat (limited to 'archaeological_context_records')
-rw-r--r-- | archaeological_context_records/forms.py | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/archaeological_context_records/forms.py b/archaeological_context_records/forms.py index e1b49bbe3..357f5ce13 100644 --- a/archaeological_context_records/forms.py +++ b/archaeological_context_records/forms.py @@ -106,23 +106,23 @@ class PeriodSelect(forms.Form): class RecordSelect(DocumentItemSelect, PeriodSelect): _model = models.ContextRecord - form_admin_name = _(u"Context record - 001 - Search") + form_admin_name = _("Context record - 001 - Search") form_slug = "contextrecord-001-search" search_vector = forms.CharField( - label=_(u"Full text search"), widget=widgets.SearchWidget( + label=_("Full text search"), widget=widgets.SearchWidget( 'archaeological-context-records', 'contextrecord' )) - label = forms.CharField(label=_(u"ID"), max_length=100) + label = forms.CharField(label=_("ID"), max_length=100) town = get_town_field() if settings.COUNTRY == 'fr': operation__code_patriarche = forms.CharField( max_length=500, widget=OAWidget, - label=_(u"Code PATRIARCHE")) - operation__year = forms.IntegerField(label=_(u"Operation's year")) + label=_("Code PATRIARCHE")) + operation__year = forms.IntegerField(label=_("Operation's year")) operation__operation_code = forms.IntegerField( - label=_(u"Operation's number (index by year)")) + label=_("Operation's number (index by year)")) archaeological_site = forms.IntegerField( label=_("Archaeological site"), widget=widgets.JQueryAutoComplete( @@ -130,12 +130,12 @@ class RecordSelect(DocumentItemSelect, PeriodSelect): associated_model=ArchaeologicalSite), validators=[valid_id(ArchaeologicalSite)]) ope_relation_types = forms.ChoiceField( - label=_(u"Search within related operations"), choices=[]) - unit = forms.ChoiceField(label=_(u"Unit type"), choices=[]) - parcel = forms.CharField(label=_(u"Parcel")) + label=_("Search within related operations"), choices=[]) + unit = forms.ChoiceField(label=_("Unit type"), choices=[]) + parcel = forms.CharField(label=_("Parcel")) has_finds = forms.NullBooleanField(label=_("Has finds")) cr_relation_types = forms.ChoiceField( - label=_(u"Search within relations"), choices=[]) + label=_("Search within relations"), choices=[]) TYPES = PeriodSelect.TYPES + [ FieldType('unit', models.Unit), |