diff options
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 |
commit | b832ccef27ad1769dec65e48502544ab30de2192 (patch) | |
tree | 3484727ca2790213a6f3b4b3fda09f4efb3145de | |
parent | f3c4eb1726370959c9ce4d16c276151619b58121 (diff) | |
download | Ishtar-b832ccef27ad1769dec65e48502544ab30de2192.tar.bz2 Ishtar-b832ccef27ad1769dec65e48502544ab30de2192.zip |
Sources: display more fields in forms
-rw-r--r-- | ishtar_common/forms_common.py | 7 |
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) |