Use Select2 for the document type selection form

Signed-off-by: Roberto Rosario <roberto.rosario@mayan-edms.com>
This commit is contained in:
Roberto Rosario
2019-06-24 19:29:12 -04:00
parent cce27aceca
commit 3694839d97
2 changed files with 2 additions and 1 deletions

1
CHANGES.rst Normal file
View File

@@ -0,0 +1 @@
- Use Select2 widget for the document type selection form.

View File

@@ -41,7 +41,7 @@ class DocumentTypeFilteredSelectForm(forms.Form):
self.fields['document_type'] = field_class(
help_text=help_text, label=_('Document type'),
queryset=queryset, required=True,
widget=widget_class(attrs={'size': 10}), **extra_kwargs
widget=widget_class(attrs={'class': 'select2', 'size': 10}), **extra_kwargs
)