Move common templates to apps/main/templates/main/*
This commit is contained in:
@@ -56,7 +56,7 @@ def index_setup_list(request):
|
||||
|
||||
context['object_list'] = queryset
|
||||
|
||||
return render_to_response('generic_list.html', context,
|
||||
return render_to_response('main/generic_list.html', context,
|
||||
context_instance=RequestContext(request))
|
||||
|
||||
|
||||
@@ -73,7 +73,7 @@ def index_setup_create(request):
|
||||
else:
|
||||
form = IndexForm()
|
||||
|
||||
return render_to_response('generic_form.html', {
|
||||
return render_to_response('main/generic_form.html', {
|
||||
'title': _(u'create index'),
|
||||
'form': form,
|
||||
}, context_instance=RequestContext(request))
|
||||
@@ -96,7 +96,7 @@ def index_setup_edit(request, index_pk):
|
||||
else:
|
||||
form = IndexForm(instance=index)
|
||||
|
||||
return render_to_response('generic_form.html', {
|
||||
return render_to_response('main/generic_form.html', {
|
||||
'title': _(u'edit index: %s') % index,
|
||||
'form': form,
|
||||
'index': index,
|
||||
@@ -139,7 +139,7 @@ def index_setup_delete(request, index_pk):
|
||||
'form_icon': u'tab_delete.png',
|
||||
}
|
||||
|
||||
return render_to_response('generic_confirm.html', context,
|
||||
return render_to_response('main/generic_confirm.html', context,
|
||||
context_instance=RequestContext(request))
|
||||
|
||||
|
||||
@@ -168,7 +168,7 @@ def index_setup_view(request, index_pk):
|
||||
],
|
||||
}
|
||||
|
||||
return render_to_response('generic_list.html', context,
|
||||
return render_to_response('main/generic_list.html', context,
|
||||
context_instance=RequestContext(request))
|
||||
|
||||
|
||||
@@ -215,7 +215,7 @@ def template_node_create(request, parent_pk):
|
||||
else:
|
||||
form = IndexTemplateNodeForm(initial={'index': parent_node.index, 'parent': parent_node})
|
||||
|
||||
return render_to_response('generic_form.html', {
|
||||
return render_to_response('main/generic_form.html', {
|
||||
'title': _(u'create child node'),
|
||||
'form': form,
|
||||
'index': parent_node.index,
|
||||
@@ -241,7 +241,7 @@ def template_node_edit(request, node_pk):
|
||||
else:
|
||||
form = IndexTemplateNodeForm(instance=node)
|
||||
|
||||
return render_to_response('generic_form.html', {
|
||||
return render_to_response('main/generic_form.html', {
|
||||
'title': _(u'edit index template node: %s') % node,
|
||||
'form': form,
|
||||
'index': node.index,
|
||||
@@ -292,7 +292,7 @@ def template_node_delete(request, node_pk):
|
||||
],
|
||||
}
|
||||
|
||||
return render_to_response('generic_confirm.html', context,
|
||||
return render_to_response('main/generic_confirm.html', context,
|
||||
context_instance=RequestContext(request))
|
||||
|
||||
|
||||
@@ -319,7 +319,7 @@ def index_list(request):
|
||||
|
||||
context['object_list'] = queryset
|
||||
|
||||
return render_to_response('generic_list.html', context,
|
||||
return render_to_response('main/generic_list.html', context,
|
||||
context_instance=RequestContext(request))
|
||||
|
||||
|
||||
@@ -351,7 +351,7 @@ def index_instance_node_view(request, index_instance_node_pk):
|
||||
}
|
||||
)
|
||||
|
||||
return render_to_response('generic_list.html', {
|
||||
return render_to_response('main/generic_list.html', {
|
||||
'object_list': index_instance_list,
|
||||
'extra_columns_preffixed': [
|
||||
{
|
||||
@@ -381,7 +381,7 @@ def rebuild_index_instances(request):
|
||||
next = request.POST.get('next', request.GET.get('next', request.META.get('HTTP_REFERER', None)))
|
||||
|
||||
if request.method != 'POST':
|
||||
return render_to_response('generic_confirm.html', {
|
||||
return render_to_response('main/generic_confirm.html', {
|
||||
'previous': previous,
|
||||
'next': next,
|
||||
'title': _(u'Are you sure you wish to rebuild all indexes?'),
|
||||
@@ -420,7 +420,7 @@ def document_index_list(request, document_id):
|
||||
for index_instance in queryset:
|
||||
object_list.append(get_breadcrumbs(index_instance, single_link=True, include_count=True))
|
||||
|
||||
return render_to_response('generic_list.html', {
|
||||
return render_to_response('main/generic_list.html', {
|
||||
'title': _(u'indexes containing: %s') % document,
|
||||
'object_list': object_list,
|
||||
'hide_link': True,
|
||||
|
||||
Reference in New Issue
Block a user