From 1892225d6f41c514b690e6347118f7888a65c6d6 Mon Sep 17 00:00:00 2001 From: Roberto Rosario Date: Sun, 12 Feb 2012 15:18:21 -0400 Subject: [PATCH] Show currently selected document type in upload views --- apps/sources/views.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/apps/sources/views.py b/apps/sources/views.py index 900c3aba50..0c107d7365 100644 --- a/apps/sources/views.py +++ b/apps/sources/views.py @@ -314,6 +314,14 @@ def upload_interactive(request, source_type=None, source_id=None, document_pk=No context.update( { 'sidebar_subtemplates_list': [ + { + 'name': 'generic_subtemplate.html', + 'context': { + 'title': _(u'Current document type'), + 'paragraphs': [document_type if document_type else _(u'None')], + 'side_bar': True, + } + }, { 'name': 'generic_subtemplate.html', 'context': {