Modernize tests. Use the FilteredSelectionForm in the view to add new cabinets to documents. Add missing icons. Rename some view names to be more consistent. Signed-off-by: Roberto Rosario <Roberto.Rosario@mayan-edms.com>
13 lines
350 B
Python
13 lines
350 B
Python
from __future__ import absolute_import, unicode_literals
|
|
|
|
from django.utils.translation import ugettext_lazy as _
|
|
|
|
from mayan.apps.common.forms import FilteredSelectionForm
|
|
|
|
|
|
class CabinetListForm(FilteredSelectionForm):
|
|
_field_name = 'cabinets'
|
|
_label = _('Cabinets')
|
|
_widget_attributes = {'class': 'select2'}
|
|
_allow_multiple = True
|