/tests/templates/form_view.html

https://code.google.com/p/mango-py/ · HTML · 15 lines · 14 code · 1 blank · 0 comment · 0 complexity · b3e5592710f7b13ace94c101101d9910 MD5 · raw file

  1. {% extends "base.html" %}
  2. {% block title %}Submit data{% endblock %}
  3. {% block content %}
  4. <h1>{{ message }}</h1>
  5. <form method='post' action='.'>
  6. {% if form.errors %}
  7. <p class='warning'>Please correct the errors below:</p>
  8. {% endif %}
  9. <ul class='form'>
  10. {{ form }}
  11. <li><input type='submit' value='Submit'></li>
  12. </ul>
  13. </form>
  14. {% endblock %}