summaryrefslogtreecommitdiff
path: root/archaeological_context_records/forms.py
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2016-08-16 17:43:20 +0200
committerÉtienne Loks <etienne.loks@iggdrasil.net>2016-08-16 17:43:20 +0200
commit74b5ed4972570919f2655948b9c2655892ae19c8 (patch)
treea5bc8855e2fb99ea3b753298f2d6b83f512d897a /archaeological_context_records/forms.py
parent9b7699ff154f1736c9ed0a93d061812c8296a86f (diff)
downloadIshtar-74b5ed4972570919f2655948b9c2655892ae19c8.tar.bz2
Ishtar-74b5ed4972570919f2655948b9c2655892ae19c8.zip
Docs: search by operation code (refs #3015)
Diffstat (limited to 'archaeological_context_records/forms.py')
-rw-r--r--archaeological_context_records/forms.py9
1 files changed, 7 insertions, 2 deletions
diff --git a/archaeological_context_records/forms.py b/archaeological_context_records/forms.py
index ff1ddc6fa..9cec6a0e5 100644
--- a/archaeological_context_records/forms.py
+++ b/archaeological_context_records/forms.py
@@ -280,10 +280,15 @@ SourceRecordFormSelection = get_form_selection(
class RecordSourceSelect(SourceSelect):
- context_record__parcel__town = get_town_field(
- label=_(u"Town of the operation"))
context_record__operation__year = forms.IntegerField(
label=_(u"Year of the operation"))
+ context_record__operation__operation_code = forms.IntegerField(
+ label=_(u"Numeric reference"))
+ if settings.COUNTRY == 'fr':
+ context_record__operation__code_patriarche = forms.IntegerField(
+ label="Numéro d'opération (OA Patriarche)")
+ context_record__parcel__town = get_town_field(
+ label=_(u"Town of the operation"))
context_record__datings__period = forms.ChoiceField(
label=_(u"Period of the context record"), choices=[])
context_record__unit = forms.ChoiceField(