summaryrefslogtreecommitdiff
path: root/archaeological_operations/forms.py
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@proxience.com>2013-04-30 15:27:34 +0000
committerÉtienne Loks <etienne.loks@proxience.com>2013-04-30 15:27:34 +0000
commitfd1647a1b8b64ad5e9e340bc54ae69258948ee77 (patch)
tree5f5652a1fb2027bbf4dd1dc26d6e28cbc04ea8fb /archaeological_operations/forms.py
parent94dfdaf3303f648de5ed228809d042f7329dc09e (diff)
parentf822d5efad930b26f8a4fe24bc802d44d1f22a15 (diff)
downloadIshtar-fd1647a1b8b64ad5e9e340bc54ae69258948ee77.tar.bz2
Ishtar-fd1647a1b8b64ad5e9e340bc54ae69258948ee77.zip
Merge branch 'master' of lysithea.proxience.net:/home/proxience/git/ishtar
Diffstat (limited to 'archaeological_operations/forms.py')
-rw-r--r--archaeological_operations/forms.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/archaeological_operations/forms.py b/archaeological_operations/forms.py
index 0b2555148..e545ff5fa 100644
--- a/archaeological_operations/forms.py
+++ b/archaeological_operations/forms.py
@@ -235,10 +235,23 @@ class OperationFormGeneral(forms.Form):
operator_reference = forms.CharField(label=_(u"Operator reference"),
required=False, max_length=20)
if settings.COUNTRY == 'fr':
+ negative_result = forms.NullBooleanField(required=False,
+ label=u"Résultat considéré comme négatif")
code_patriarche = forms.IntegerField(label=u"Code PATRIARCHE",
required=False)
code_dracar = forms.CharField(label=u"Code DRACAR", required=False,
validators=[validators.MaxLengthValidator(10)])
+ eas_number = forms.CharField(label=u"Numéro de l'EA", required=False,
+ validators=[validators.MaxLengthValidator(20)])
+ cira_date = forms.DateField(label=u"Date avis CIRA", required=False,
+ widget=widgets.JQueryDate)
+ cira_rapporteur = forms.IntegerField(label=u"Rapporteur CIRA",
+ widget=widgets.JQueryAutoComplete(reverse_lazy('autocomplete-person',
+ args=["_".join(
+ [unicode(PersonType.objects.get(txt_idx='head_scientist').pk),
+ unicode(PersonType.objects.get(txt_idx='sra_agent').pk)])]),
+ associated_model=Person, new=True),
+ validators=[valid_id(Person)], required=False)
comment = forms.CharField(label=_(u"Comment"), widget=forms.Textarea,
required=False)