Swtich workflow detail view to use form template in read only mode to remove now obsolote generic_detail_subtemplate
This commit is contained in:
@@ -1,10 +0,0 @@
|
||||
{% load i18n %}
|
||||
|
||||
{% block content %}
|
||||
{% if form %}
|
||||
{% with 'true' as read_only %}
|
||||
{% include 'appearance/generic_form_subtemplate.html' %}
|
||||
{% endwith %}
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
|
||||
@@ -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,
|
||||
}
|
||||
},
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user