Add new appearance app to hold all of the base templates, images, icons and external packages related to the frontend and look of the project
This commit is contained in:
@@ -2,7 +2,7 @@ from __future__ import unicode_literals
|
||||
|
||||
from django.utils.translation import ugettext_lazy as _
|
||||
|
||||
link_setup_workflow_list = {'text': _('Workflows'), 'view': 'document_states:setup_workflow_list', 'famfam': 'table', 'icon': 'main/icons/table.png'}
|
||||
link_setup_workflow_list = {'text': _('Workflows'), 'view': 'document_states:setup_workflow_list', 'famfam': 'table', 'icon': 'appearance/icons/table.png'}
|
||||
link_setup_workflow_create = {'text': _('Create'), 'view': 'document_states:setup_workflow_create', 'famfam': 'table_add'}
|
||||
link_setup_workflow_delete = {'text': _('Delete'), 'view': 'document_states:setup_workflow_delete', 'args': 'object.pk', 'famfam': 'table_delete'}
|
||||
link_setup_workflow_edit = {'text': _('Edit'), 'view': 'document_states:setup_workflow_edit', 'args': 'object.pk', 'famfam': 'table_edit'}
|
||||
|
||||
@@ -61,7 +61,7 @@ class DocumentWorkflowInstanceListView(SingleObjectListView):
|
||||
|
||||
|
||||
class WorkflowInstanceDetailView(SingleObjectListView):
|
||||
template_name = 'main/generic_multi_subtemplates.html'
|
||||
template_name = 'appearance/generic_multi_subtemplates.html'
|
||||
|
||||
def dispatch(self, request, *args, **kwargs):
|
||||
try:
|
||||
@@ -97,13 +97,13 @@ class WorkflowInstanceDetailView(SingleObjectListView):
|
||||
},
|
||||
'subtemplates_list': [
|
||||
{
|
||||
'name': 'main/generic_detail_subtemplate.html',
|
||||
'name': 'appearance/generic_detail_subtemplate.html',
|
||||
'context': {
|
||||
'form': form,
|
||||
}
|
||||
},
|
||||
{
|
||||
'name': 'main/generic_list_subtemplate.html',
|
||||
'name': 'appearance/generic_list_subtemplate.html',
|
||||
'context': {
|
||||
'object_list': self.get_queryset(),
|
||||
'title': _('Log entries'),
|
||||
@@ -118,7 +118,7 @@ class WorkflowInstanceDetailView(SingleObjectListView):
|
||||
|
||||
class WorkflowInstanceTransitionView(FormView):
|
||||
form_class = WorkflowInstanceTransitionForm
|
||||
template_name = 'main/generic_form.html'
|
||||
template_name = 'appearance/generic_form.html'
|
||||
|
||||
def dispatch(self, request, *args, **kwargs):
|
||||
try:
|
||||
|
||||
Reference in New Issue
Block a user