pytask/templates/templatetags/_as_div_form.html
author Madhusudan.C.S <madhusudancs@gmail.com>
Fri, 04 Feb 2011 16:38:21 +0530
changeset 558 fd3e6f5f01bd
parent 435 1217d808d70f
permissions -rw-r--r--
Use the form helpers templatetag module in the addreviewer template.

{% load form_helpers %}

<form action="{{ action_url }}" method="post"
    {% if file_support %}
      enctype="multipart/form-data"
    {% else %}
      >
    {% endif %}
  {% csrf_token %}
  <div id="form">
    {% for field in form %}
      {% as_div_field field %}
    {% endfor %}
    <p class="submit"><button type="submit">{{ button_label }}</button></p>
  </div>
</form>