pytask/templates/templatetags/_as_div_form.html
author Madhusudan.C.S <madhusudancs@gmail.com>
Sun, 16 Jan 2011 23:17:13 +0530
changeset 431 fcc87a3f0311
parent 424 5ed0362bd674
child 435 1217d808d70f
permissions -rw-r--r--
Huh, please don't tell me I will have to refactor so much code again.

{% 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>