From babba00f09b77972cc35fcea59b31d4615685ab7 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Tue, 1 Dec 2020 13:41:18 +0100 Subject: Context records: add surface --- archaeological_context_records/forms.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'archaeological_context_records/forms.py') diff --git a/archaeological_context_records/forms.py b/archaeological_context_records/forms.py index 054c5254e..e1b49bbe3 100644 --- a/archaeological_context_records/forms.py +++ b/archaeological_context_records/forms.py @@ -247,6 +247,11 @@ class RecordFormGeneral(CustomForm, ManageOldType): widget=forms.Textarea, required=False) excavation_technic = forms.ChoiceField( label=_(u"Excavation technique"), choices=[], required=False) + surface = forms.IntegerField( + required=False, widget=widgets.AreaWidget, + label=_(u"Total surface (m2)"), + validators=[validators.MinValueValidator(0), + validators.MaxValueValidator(999999999)]) length = forms.FloatField(label=_(u"Length (m)"), required=False) width = forms.FloatField(label=_(u"Width (m)"), required=False) thickness = forms.FloatField(label=_(u"Thickness (m)"), required=False) -- cgit v1.2.3