PageRenderTime 80ms CodeModel.GetById 77ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/django/contrib/admin/templates/mako/admin/delete_confirmation.html

https://code.google.com/p/mango-py/
HTML | 43 lines | 31 code | 12 blank | 0 comment | 0 complexity | 51551b2b6454497c085f5449e46fc709 MD5 | raw file
 1<%inherit file="admin/base_site.html"/>
 2
 3${self.block_breadcrumbs()}<%def name="block_breadcrumbs()">
 4<div class="breadcrumbs">
 5     <a href="../../../../">${trans("Home")}</a> &rsaquo;
 6     <a href="../../../">${ capfirst(app_label)|escape }</a> &rsaquo; 
 7     <a href="../../">${opts.verbose_name_plural}</a> &rsaquo;
 8     <a href="../">${ escape(object) }</a> &rsaquo;
 9     ${trans('Delete')}
10</div>
11</%def>
12
13${self.block_content()}<%def name="block_content()">
14
15% if perms_lacking:
16
17    <p><%def name="blocktrans_with_object_perms_lacking()">Deleting the ${object_name} '${object | escape}' would result in deleting related objects, but your account doesn't have permission to delete the following types of objects:</%def>${blocktrans_with_object_perms_lacking()}</p>
18    <ul>
19    
20% for obj in perms_lacking:
21
22        <li>${obj}</li>
23    
24% endfor
25
26    </ul>
27
28% else:
29
30    <p><%def name="blocktrans_with_object()">Are you sure you want to delete the ${object_name} "${object | escape}"? All of the following related items will be deleted:</%def>${blocktrans_with_object()}</p>
31    % for deleted_object in [deleted_objects]:
32        <ul>${ unordered_list(deleted_object) }</ul>
33    % endfor
34    <form action="" method="post">${ csrf_tag(csrf_token) }
35    <div>
36    <input type="hidden" name="post" value="yes" />
37    <input type="submit" value="${ trans ("Yes, I'm sure") }" />
38    </div>
39    </form>
40
41% endif
42
43</%def>