Commit 06d8c76f authored by Patrick Kimber's avatar Patrick Kimber

Base class for my forms

parent ee9638a2
<form action="" method="post" class="pure-form pure-form-stacked">
{% csrf_token %}
{{ form.non_field_errors }}
<fieldset>
{% for field in form %}
<div class="pure-control-group">
{{ field.label_tag }}
{% for error in field.errors %}
<aside class="pure-help-inline">{{ error }}</aside>
{% endfor %}
{{ field }}
</div>
{% endfor %}
<div class="pure-controls">
<p>
<input type="submit" value="Submit" class="pure-button pure-button-primary" />
</p>
</div>
</fieldset>
{% for hidden in form.hidden_fields %}
{{ hidden }}
{% endfor %}
</form>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment