/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. ${self.block_breadcrumbs()}<%def name="block_breadcrumbs()">
  3. <div class="breadcrumbs">
  4. <a href="../../../../">${trans("Home")}</a> &rsaquo;
  5. <a href="../../../">${ capfirst(app_label)|escape }</a> &rsaquo;
  6. <a href="../../">${opts.verbose_name_plural}</a> &rsaquo;
  7. <a href="../">${ escape(object) }</a> &rsaquo;
  8. ${trans('Delete')}
  9. </div>
  10. </%def>
  11. ${self.block_content()}<%def name="block_content()">
  12. % if perms_lacking:
  13. <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>
  14. <ul>
  15. % for obj in perms_lacking:
  16. <li>${obj}</li>
  17. % endfor
  18. </ul>
  19. % else:
  20. <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>
  21. % for deleted_object in [deleted_objects]:
  22. <ul>${ unordered_list(deleted_object) }</ul>
  23. % endfor
  24. <form action="" method="post">${ csrf_tag(csrf_token) }
  25. <div>
  26. <input type="hidden" name="post" value="yes" />
  27. <input type="submit" value="${ trans ("Yes, I'm sure") }" />
  28. </div>
  29. </form>
  30. % endif
  31. </%def>