Add staging folder "no results" template

Signed-off-by: Roberto Rosario <roberto.rosario@mayan-edms.com>
This commit is contained in:
Roberto Rosario
2019-11-03 23:23:11 -04:00
parent 07950fa8f3
commit 72b92c3924
3 changed files with 18 additions and 1 deletions

View File

@@ -104,6 +104,8 @@
the workflow view permission is granted to at
least one workflow.
- Add ACL support to smart links.
- Add "no result" template to staging folder files
view.
3.2.9 (2019-11-03)
==================

View File

@@ -16,6 +16,7 @@ icon_setup_source_edit = Icon(driver_name='fontawesome', symbol='pencil-alt')
icon_source_create = Icon(driver_name='fontawesome', symbol='plus')
icon_source_list = Icon(driver_name='fontawesome', symbol='upload')
icon_staging_folder = Icon(driver_name='fontawesome', symbol='folder')
icon_staging_folder_file = Icon(driver_name='fontawesome', symbol='file')
icon_staging_file_delete = Icon(driver_name='fontawesome', symbol='times')
icon_upload_view_link = Icon(driver_name='fontawesome', symbol='upload')
icon_wizard_submit = Icon(driver_name='fontawesome', symbol='arrow-right')

View File

@@ -30,7 +30,10 @@ from .exceptions import SourceException
from .forms import (
NewDocumentForm, NewVersionForm, WebFormUploadForm, WebFormUploadFormHTML5
)
from .icons import icon_log, icon_setup_sources, icon_upload_view_link
from .icons import (
icon_log, icon_setup_sources, icon_staging_folder_file,
icon_upload_view_link
)
from .literals import SOURCE_UNCOMPRESS_CHOICE_ASK, SOURCE_UNCOMPRESS_CHOICE_Y
from .links import (
link_setup_source_create_imap_email, link_setup_source_create_pop3_email,
@@ -155,6 +158,17 @@ class UploadBaseView(MultiFormView):
'name': 'appearance/generic_list_subtemplate.html',
'context': {
'hide_link': True,
'no_results_icon': icon_staging_folder_file,
'no_results_text': _(
'This could mean that the staging folder is '
'empty. It could also mean that the '
'operating system user account being used '
'for Mayan EDMS doesn\'t have the necessary '
'file system permissions for the folder.'
),
'no_results_title': _('No staging files available'),
'object_list': staging_filelist,
'title': _('Files in staging path'),
}