Use Select2 for the document type selection form
Signed-off-by: Roberto Rosario <roberto.rosario@mayan-edms.com>
This commit is contained in:
@@ -0,0 +1 @@
|
|||||||
|
- Use Select2 widget for the document type selection form.
|
||||||
@@ -41,7 +41,7 @@ class DocumentTypeFilteredSelectForm(forms.Form):
|
|||||||
self.fields['document_type'] = field_class(
|
self.fields['document_type'] = field_class(
|
||||||
help_text=help_text, label=_('Document type'),
|
help_text=help_text, label=_('Document type'),
|
||||||
queryset=queryset, required=True,
|
queryset=queryset, required=True,
|
||||||
widget=widget_class(attrs={'size': 10}), **extra_kwargs
|
widget=widget_class(attrs={'class': 'select2', 'size': 10}), **extra_kwargs
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user