parts/django/tests/templates/form_view.html
changeset 307 c6bca38c1cbf
equal deleted inserted replaced
306:5ff1fc726848 307:c6bca38c1cbf
       
     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 
       
    15 {% endblock %}