summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@proxience.com>2015-12-29 15:44:15 +0100
committerÉtienne Loks <etienne.loks@proxience.com>2015-12-29 15:44:15 +0100
commit934e115ab257d684fe7bf94dc60fed8c8c2a206c (patch)
tree3484727ca2790213a6f3b4b3fda09f4efb3145de
parent1f72809a01a2ae9d6bf659c0f0b09b5e7dc3581c (diff)
downloadIshtar-934e115ab257d684fe7bf94dc60fed8c8c2a206c.tar.bz2
Ishtar-934e115ab257d684fe7bf94dc60fed8c8c2a206c.zip
Sources: display more fields in forms
-rw-r--r--ishtar_common/forms_common.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/ishtar_common/forms_common.py b/ishtar_common/forms_common.py
index 93f6b9ec6..e5cdc0bdd 100644
--- a/ishtar_common/forms_common.py
+++ b/ishtar_common/forms_common.py
@@ -574,12 +574,19 @@ class SourceForm(forms.Form):
title = forms.CharField(label=_(u"Title"),
validators=[validators.MaxLengthValidator(200)])
source_type = forms.ChoiceField(label=_(u"Source type"), choices=[])
+ internal_reference = forms.CharField(
+ label=_(u"Internal reference"),
+ validators=[validators.MaxLengthValidator(25)], required=False)
associated_url = forms.URLField(
required=False, label=_(u"Numerical ressource (web address)"))
receipt_date = forms.DateField(label=_(u"Receipt date"), required=False,
widget=widgets.JQueryDate)
creation_date = forms.DateField(label=_(u"Creation date"), required=False,
widget=widgets.JQueryDate)
+ comment = forms.CharField(label=_(u"Comment"), widget=forms.Textarea,
+ required=False)
+ description = forms.CharField(label=_(u"Description"),
+ widget=forms.Textarea, required=False)
def __init__(self, *args, **kwargs):
super(SourceForm, self).__init__(*args, **kwargs)