New document version improvements from clients/bc
- Comment field help text. - Remove create_document_form_form. - Use static NewVersionForm. - Update sources document upload and new version upload view names. Signed-off-by: Roberto Rosario <roberto.rosario@mayan-edms.com>
This commit is contained in:
@@ -23,14 +23,11 @@ class NewDocumentForm(DocumentForm):
|
||||
|
||||
|
||||
class NewVersionForm(forms.Form):
|
||||
def __init__(self, *args, **kwargs):
|
||||
super(NewVersionForm, self).__init__(*args, **kwargs)
|
||||
|
||||
self.fields['comment'] = forms.CharField(
|
||||
label=_('Comment'),
|
||||
required=False,
|
||||
widget=forms.widgets.Textarea(attrs={'rows': 4}),
|
||||
)
|
||||
comment = forms.CharField(
|
||||
help_text=_('An optional comment to explain the upload.'),
|
||||
label=_('Comment'), required=False,
|
||||
widget=forms.widgets.Textarea(attrs={'rows': 4}),
|
||||
)
|
||||
|
||||
|
||||
class UploadBaseForm(forms.Form):
|
||||
|
||||
Reference in New Issue
Block a user