PageRenderTime 21ms CodeModel.GetById 16ms RepoModel.GetById 0ms app.codeStats 0ms

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

https://code.google.com/p/mango-py/
HTML | 27 lines | 25 code | 2 blank | 0 comment | 0 complexity | 61f65ae4694bc001684c026628714206 MD5 | raw file
Possible License(s): BSD-3-Clause
  1. <%def name="admin_actions(action_form)" >
  2. <div class="actions">
  3. % for field in action_form:
  4. % if field.label:
  5. <label>${ field.label }
  6. % endif
  7. ${ field }
  8. % if field.label:
  9. </label>
  10. % endif
  11. % endfor
  12. <button type="submit" class="button" title="${ trans('Run the selected action') }" name="index" value="${ action_index or 0 }">${ trans("Go") }</button>
  13. % if actions_selection_counter:
  14. <script type="text/javascript">var _actions_icnt="${ len(cl.result_list) or '0' }";</script>
  15. <span class="action-counter">${ selection_note }</span>
  16. % if cl.result_count != len(cl.result_list):
  17. <span class="all">${ selection_note_all }</span>
  18. <span class="question">
  19. <a href="javascript:;" title="${ trans("Click here to select the objects across all pages")}">Select all ${ cl.result_count } ${ module_name }</a>
  20. </span>
  21. <span class="clear"><a href="javascript:;">${ trans("Clear selection") }</a></span>
  22. % endif
  23. % endif
  24. </div>
  25. </%def>