16 lines
655 B
HTML
16 lines
655 B
HTML
{% for error in form.non_field_errors %}<article class="message error">{{ error }}</article>{% endfor %}
|
|
<form method="post" {% if action %}action="{% url action %}"{% endif %}>
|
|
{% csrf_token %}
|
|
<fieldset>
|
|
{% for field in form %}
|
|
<label>
|
|
{{ field.label }}
|
|
{{ field }}
|
|
{% if field.errors %}
|
|
<small id="{{ field.errors.field_id }}_error" class="form-error">{{ field.errors|join:", " }}</small>
|
|
{% endif %}
|
|
</label>
|
|
{% endfor %}
|
|
</fieldset>
|
|
<input type="submit" {% if submit %}value="{{ submit }}"{% endif %}>
|
|
</form>
|