PageRenderTime 53ms CodeModel.GetById 25ms RepoModel.GetById 0ms app.codeStats 0ms

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

https://code.google.com/p/mango-py/
HTML | 51 lines | 35 code | 16 blank | 0 comment | 0 complexity | a2744440304ff2a4500c05ff642b774d MD5 | raw file
Possible License(s): BSD-3-Clause
  1. <%inherit file="admin/base_site.html"/>
  2. ${self.block_content()}<%def name="block_content()">
  3. <div id="content-main">
  4. <form action="" method="post">{% csrf_token %}
  5. % if form['errors']:
  6. <p class="errornote">Your template had ${form['errors']} error${form['errors']}:</p>
  7. % endif
  8. <fieldset class="module aligned">
  9. <div class="form-row
  10. % if form['errors']['site']:
  11. error
  12. % endif
  13. required">
  14. % if form['errors']['site']:
  15. ${form['errors']['site']}
  16. % endif
  17. <h4><label for="id_site">${form['site']['label']}:</label> ${form['site']}</h4>
  18. </div>
  19. <div class="form-row
  20. % if form['errors']['template']:
  21. error
  22. % endif
  23. required">
  24. % if form['errors']['template']:
  25. ${form['errors']['template']}
  26. % endif
  27. <h4><label for="id_template">${form['template']['label']}:</label> ${form['template']}</h4>
  28. </div>
  29. </fieldset>
  30. <div class="submit-row">
  31. <input type="submit" value="Check for errors" class="default" />
  32. </div>
  33. </form>
  34. </div>
  35. </%def>