summaryrefslogtreecommitdiff
path: root/archaeological_operations/forms.py
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@peacefrogs.net>2013-04-03 18:02:02 +0200
committerÉtienne Loks <etienne.loks@peacefrogs.net>2013-04-03 18:02:02 +0200
commit3d8415cf0c60871b6354f28f80eb0642246ea471 (patch)
tree3b319bbd67c031a3710ad925b21b563e9b2aa7b3 /archaeological_operations/forms.py
parentbc002a96942499c89e9665dae0e51cc9e43a7117 (diff)
downloadIshtar-3d8415cf0c60871b6354f28f80eb0642246ea471.tar.bz2
Ishtar-3d8415cf0c60871b6354f28f80eb0642246ea471.zip
OPE: search OPE by PATRIARCHE code (refs #430)
Diffstat (limited to 'archaeological_operations/forms.py')
-rw-r--r--archaeological_operations/forms.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/archaeological_operations/forms.py b/archaeological_operations/forms.py
index f5f0fea99..62425b68d 100644
--- a/archaeological_operations/forms.py
+++ b/archaeological_operations/forms.py
@@ -95,6 +95,11 @@ ParcelFormSet.form_label = _(u"Parcels")
class OperationSelect(forms.Form):
common_name = forms.CharField(label=_(u"Name"), max_length=30)
+ if settings.COUNTRY == 'fr':
+ code_patriarche = forms.IntegerField(
+ widget=widgets.JQueryAutoComplete("/" + settings.URL_PATH + \
+ 'autocomplete-patriarche/'),
+ label="Code PATRIARCHE")
towns = get_town_field()
operation_type = forms.ChoiceField(label=_(u"Operation type"),
choices=[])