2025-06-14 10:35:42 +02:00
|
|
|
{% for error in form.non_field_errors %}<article class="message error">{{ error }}</article>{% endfor %}
|
2025-06-13 17:10:56 +02:00
|
|
|
<form method="post" {% if action %}action="{% url action %}"{% endif %}>
|
2025-06-13 15:51:32 +02:00
|
|
|
{% csrf_token %}
|
|
|
|
<fieldset>
|
|
|
|
{% for field in form %}
|
|
|
|
<label>
|
|
|
|
{{ field.label }}
|
|
|
|
{{ field }}
|
2025-06-14 10:35:42 +02:00
|
|
|
{% if field.errors %}
|
|
|
|
<small id="{{ field.errors.field_id }}_error" class="form-error">{{ field.errors|join:", " }}</small>
|
|
|
|
{% endif %}
|
2025-06-13 15:51:32 +02:00
|
|
|
</label>
|
|
|
|
{% endfor %}
|
|
|
|
</fieldset>
|
|
|
|
<input type="submit" {% if submit %}value="{{ submit }}"{% endif %}>
|
|
|
|
</form>
|