Improved user folder document removal messages and added confimation dialog icon
This commit is contained in:
@@ -200,12 +200,15 @@ def folder_document_remove(request, folder_document_id=None, folder_document_id_
|
||||
'object_name': _(u'folder document'),
|
||||
'previous': previous,
|
||||
'next': next,
|
||||
'form_icon': u'folder_page.png',
|
||||
}
|
||||
if len(folder_documents) == 1:
|
||||
context['object'] = folder_documents[0]
|
||||
context['title'] = _(u'Are you sure you wish to remove the document: %s?') % ', '.join([unicode(d) for d in folder_documents])
|
||||
context['title'] = _(u'Are you sure you wish to remove the document: %(document)s from the folder "%(folder)s"?') % {
|
||||
'document': ', '.join([unicode(d) for d in folder_documents]), 'folder': folder_documents[0].folder}
|
||||
elif len(folder_documents) > 1:
|
||||
context['title'] = _(u'Are you sure you wish to remove the documents: %s?') % ', '.join([unicode(d) for d in folder_documents])
|
||||
context['title'] = _(u'Are you sure you wish to remove the documents: %(documents)s from the folder "%(folder)s"?') % {
|
||||
'documents': ', '.join([unicode(d) for d in folder_documents]), 'folder': folder_documents[0].folder}
|
||||
|
||||
return render_to_response('generic_confirm.html', context,
|
||||
context_instance=RequestContext(request))
|
||||
|
||||
Reference in New Issue
Block a user