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>
15 lines
485 B
Python
15 lines
485 B
Python
from __future__ import absolute_import, unicode_literals
|
|
|
|
from django.utils.translation import ugettext_lazy as _
|
|
|
|
from mayan.apps.events import EventTypeNamespace
|
|
|
|
namespace = EventTypeNamespace(label=_('Cabinets'), name='cabinets')
|
|
|
|
event_cabinets_add_document = namespace.add_event_type(
|
|
label=_('Document added to cabinet'), name='add_document'
|
|
)
|
|
event_cabinets_remove_document = namespace.add_event_type(
|
|
label=_('Document removed from cabinet'), name='remove_document'
|
|
)
|