Show the document type being uploaded in the source view title.

Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com>
This commit is contained in:
Roberto Rosario
2018-09-12 02:02:35 -04:00
parent 962f395831
commit e42ea89db7
3 changed files with 6 additions and 4 deletions

View File

@@ -340,8 +340,9 @@ class UploadInteractiveView(UploadBaseView):
def get_context_data(self, **kwargs):
context = super(UploadInteractiveView, self).get_context_data(**kwargs)
context['title'] = _(
'Upload a local document from source: %s'
) % self.source.label
'Upload a document of type "%(document_type)s" from '
'source: %(source)s'
) % {'document_type': self.document_type, 'source': self.source.label}
if not isinstance(self.source, StagingFolderSource) and not isinstance(self.source, SaneScanner):
context['subtemplates_list'][0]['context'].update(