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:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user