PageRenderTime 82ms CodeModel.GetById 40ms app.highlight 2ms RepoModel.GetById 38ms app.codeStats 0ms

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

https://code.google.com/p/mango-py/
HTML | 48 lines | 36 code | 12 blank | 0 comment | 0 complexity | f25498629f0cc4f6d15c86b71ee31d88 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) }</a> &rsaquo; 
 7     <a href=".">${opts.verbose_name_plural}</a> &rsaquo;
 8     ${trans('Delete multiple objects')}
 9</div>
10</%def>
11
12${self.block_content()}<%def name="block_content()">
13
14% if perms_lacking:
15
16    <p><%def name="blocktrans_with_object_perms_lacking()">Deleting the ${objects_name} 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>
17    <ul>
18    
19% for obj in perms_lacking:
20
21        <li>${obj}</li>
22    
23% endfor
24
25    </ul>
26
27% else:
28
29    <p><%def name="blocktrans_with_object()">Are you sure you want to delete the selected ${objects_name} objects? All of the following related items will be deleted:</%def>${blocktrans_with_object()}</p>
30    <ul>
31    % for deleteable_object in deletable_objects:
32        <ul>${ unordered_list(deleteable_object) }</ul>
33    % endfor
34    </ul>
35    <form action="" method="post">${ csrf_tag(csrf_token) }
36    <div>
37        % for obj in queryset:
38            <input type="hidden" name="${ action_checkbox_name }" value="${ obj.pk }" />
39        % endfor
40    <input type="hidden" name="action" value="delete_selected" />
41    <input type="hidden" name="post" value="yes" />
42    <input type="submit" value="${ trans ("Yes, I'm sure") }" />
43    </div>
44    </form>
45
46% endif
47
48</%def>