summaryrefslogtreecommitdiff
path: root/archaeological_operations/forms.py
diff options
context:
space:
mode:
Diffstat (limited to 'archaeological_operations/forms.py')
-rw-r--r--archaeological_operations/forms.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/archaeological_operations/forms.py b/archaeological_operations/forms.py
index cba230338..58bc1d3b0 100644
--- a/archaeological_operations/forms.py
+++ b/archaeological_operations/forms.py
@@ -626,6 +626,7 @@ class OperationFormGeneral(forms.Form):
'cira_rapporteur': Person,
'operator': Organization,
'operation_type': models.OperationType,
+ 'report_processing': models.ReportState,
'archaeological_site': models.ArchaeologicalSite}
pk = forms.IntegerField(required=False, widget=forms.HiddenInput)
scientist = forms.IntegerField(
@@ -663,6 +664,8 @@ class OperationFormGeneral(forms.Form):
report_delivery_date = forms.DateField(
label=_(u"Report delivery date"), required=False,
widget=widgets.JQueryDate)
+ report_processing = forms.ChoiceField(label=_(u"Report processing"),
+ choices=[], required=False)
surface = forms.IntegerField(
required=False, widget=widgets.AreaWidget,
label=_(u"Total surface (m2)"),
@@ -718,6 +721,10 @@ class OperationFormGeneral(forms.Form):
models.OperationType.get_types()
self.fields['operation_type'].help_text = \
models.OperationType.get_help()
+ self.fields['report_processing'].choices = \
+ models.ReportState.get_types()
+ self.fields['report_processing'].help_text = \
+ models.ReportState.get_help()
self.fields['record_quality'].choices = \
[('', '--')] + list(models.QUALITY)
# data POSTED