Added confirm template icons

This commit is contained in:
Roberto Rosario
2011-05-20 03:58:02 -04:00
parent 842c6b8ba7
commit d2e4fce100
21 changed files with 24 additions and 3 deletions

View File

@@ -24,6 +24,11 @@
<input name="next" type="hidden" value="{{ next }}" />
{% endif %}
<div style="float: left; margin-right: 10px;">
<img style="margin-top: 12px;" src="{{ MEDIA_URL }}images/icons/{{ form_icon|default:'question.png' }}" alt="{% trans 'form icon' %}" />
</div>
<div style="float: left;">
{% if title %}
<h3>{{ title }}</h3>
{% else %}
@@ -47,6 +52,10 @@
</a>
{% endif %}
</div>
</div>
<div class="clear"></div>
</form>
</div>
</div>

View File

@@ -49,6 +49,7 @@ def rebuild_index_instances(request):
'previous': previous,
'next': next,
'message': _(u'On large databases this operation may take some time to execute.'),
'form_icon': u'folder_link.png',
}, context_instance=RequestContext(request))
else:
try:

View File

@@ -443,6 +443,7 @@ def document_delete(request, document_id=None, document_id_list=None):
'delete_view': True,
'previous': previous,
'next': next,
'form_icon': u'page_delete.png',
}
if len(documents) == 1:
context['object'] = documents[0]
@@ -726,6 +727,7 @@ def document_page_transformation_delete(request, document_page_transformation_id
'document_page': document_page_transformation.document_page},
'previous': previous,
'web_theme_hide_menus': True,
'form_icon': u'pencil_delete.png',
})
@@ -743,6 +745,7 @@ def _find_duplicate_list(request, source_document_list=Document.objects.all(), i
return render_to_response('generic_confirm.html', {
'previous': previous,
'message': _(u'On large databases this operation may take some time to execute.'),
'form_icon': u'page_refresh.png',
}, context_instance=RequestContext(request))
else:
duplicated = []
@@ -800,6 +803,7 @@ def document_clear_transformations(request, document_id=None, document_id_list=N
'delete_view': True,
'previous': previous,
'next': next,
'form_icon': u'page_paintbrush.png',
}
if len(documents) == 1:

View File

@@ -105,7 +105,8 @@ def folder_delete(request, folder_id):
'previous': previous,
'next': next,
'object': folder,
'title': _(u'Are you sure you with to delete the folder: %s?') % folder
'title': _(u'Are you sure you with to delete the folder: %s?') % folder,
'form_icon': u'folder_delete.png',
}
return render_to_response('generic_confirm.html', context,

View File

@@ -103,7 +103,8 @@ def queue_document_delete(request, queue_document_id=None, queue_document_id_lis
context = {
'next': next,
'previous': previous,
'delete_view': True
'delete_view': True,
'form_icon': u'hourglass_delete.png',
}
if len(queue_documents) == 1:
@@ -260,6 +261,7 @@ def all_document_ocr_cleanup(request):
'previous': previous,
'next': next,
'message': _(u'On large databases this operation may take some time to execute.'),
'form_icon': u'text_strikethroungh.png',
}, context_instance=RequestContext(request))
else:
try:

View File

@@ -118,6 +118,7 @@ def role_delete(request, role_id):
'next': next,
'previous': previous,
'object_name': _(u'role'),
'form_icon': u'medal_gold_delete.png',
})

View File

@@ -116,6 +116,7 @@ def tag_delete(request, tag_id=None, tag_id_list=None):
'delete_view': True,
'previous': previous,
'next': next,
'form_icon': u'tag_blue_delete.png',
}
if len(tags) == 1:
context['object'] = tags[0]

View File

@@ -130,6 +130,7 @@ def user_delete(request, user_id=None, user_id_list=None):
'delete_view': True,
'previous': previous,
'next': next,
'form_icon': u'user_delete.png',
}
if len(users) == 1:
context['object'] = users[0]
@@ -304,6 +305,7 @@ def group_delete(request, group_id=None, group_id_list=None):
'delete_view': True,
'previous': previous,
'next': next,
'form_icon': u'group_delete.png',
}
if len(groups) == 1:
context['object'] = groups[0]

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1010 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB