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
commitf6f70c2d270644a520c6f2f1bcf718839c5f489c (patch)
tree3b319bbd67c031a3710ad925b21b563e9b2aa7b3 /archaeological_operations/forms.py
parentfd4df93e212477cd7bdaa8286f8081138673608e (diff)
downloadIshtar-f6f70c2d270644a520c6f2f1bcf718839c5f489c.tar.bz2
Ishtar-f6f70c2d270644a520c6f2f1bcf718839c5f489c.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=[])