Swtich workflow detail view to use form template in read only mode to remove now obsolote generic_detail_subtemplate

This commit is contained in:
Roberto Rosario
2015-04-07 01:49:23 -04:00
parent d1c56c40fd
commit 857f9f2479
2 changed files with 2 additions and 11 deletions

View File

@@ -1,10 +0,0 @@
{% load i18n %}
{% block content %}
{% if form %}
{% with 'true' as read_only %}
{% include 'appearance/generic_form_subtemplate.html' %}
{% endwith %}
{% endif %}
{% endblock %}

View File

@@ -89,9 +89,10 @@ class WorkflowInstanceDetailView(SingleObjectListView):
'object': self.get_workflow_instance().document,
'subtemplates_list': [
{
'name': 'appearance/generic_detail_subtemplate.html',
'name': 'appearance/generic_form_subtemplate.html',
'context': {
'form': form,
'read_only': True,
}
},
{