Add no results help text.

Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com>
This commit is contained in:
Roberto Rosario
2018-08-30 05:26:48 -04:00
parent 41b8d6157a
commit c9dedde1d0
14 changed files with 194 additions and 46 deletions

View File

@@ -109,7 +109,12 @@ class SetupIndexDocumentTypesView(AssignRemoveView):
'object': self.get_object(),
'title': _(
'Document types linked to index: %s'
) % self.get_object()
) % self.get_object(),
'subtitle': _(
'Only the documents of the types selected will be shown '
'in the index when built. Only the events of the documents '
'of the types select will trigger updates in the index.'
),
}
def get_object(self):
@@ -339,6 +344,15 @@ class DocumentIndexNodeListView(SingleObjectListView):
def get_extra_context(self):
return {
'hide_object': True,
'no_results_icon': icon_index,
'no_results_text': _(
'Assign the document type of this document '
'to an index to have it appear in instances of '
'those indexes organization units. '
),
'no_results_title': _(
'This document is not in any index'
),
'object': self.get_document(),
'title': _(
'Indexes nodes containing document: %s'