summaryrefslogtreecommitdiff
path: root/archaeological_operations/forms.py
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2016-01-28 21:43:11 +0100
committerÉtienne Loks <etienne.loks@iggdrasil.net>2016-01-28 21:43:11 +0100
commita1395ed9e2bae7c21154ad0d76e517c54ac0efb3 (patch)
treed371d9989264ec95cbf30079b896c6a6a8a53f75 /archaeological_operations/forms.py
parent6fdfd66f9471be6a4cd549f171a631c8a07d9ff3 (diff)
downloadIshtar-a1395ed9e2bae7c21154ad0d76e517c54ac0efb3.tar.bz2
Ishtar-a1395ed9e2bae7c21154ad0d76e517c54ac0efb3.zip
Add abstract to operations
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 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")),