From a1395ed9e2bae7c21154ad0d76e517c54ac0efb3 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Thu, 28 Jan 2016 21:43:11 +0100 Subject: Add abstract to operations --- archaeological_operations/forms.py | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'archaeological_operations/forms.py') diff --git a/archaeological_operations/forms.py b/archaeological_operations/forms.py index fc7b732a3..ba937f742 100644 --- a/archaeological_operations/forms.py +++ b/archaeological_operations/forms.py @@ -565,6 +565,13 @@ if FILES_AVAILABLE: reverse_lazy('autocomplete-file'), associated_model=File), validators=[valid_id(File)], required=False) + +class OperationFormAbstract(forms.Form): + form_label = _(u"Abstract") + abstract = forms.CharField( + label=_(u"Abstract"), + widget=forms.Textarea(attrs={'class': 'xlarge'}), required=False) + SLICING = (("month", _(u"months")), ('year', _(u"years")),) DATE_SOURCE = (('creation', _(u"Creation date")), -- cgit v1.2.3