{# SPDX-License-Identifier: CC-BY-SA-4.0 #} {# SPDX-FileCopyrightText: binaryEcon #} {# SPDX-FileCopyrightText: 2026 JWP Consulting GK #} {% comment %} Source - https://stackoverflow.com/a/79336205 Generic Koriander admin form template. Makes your form look like a regular Django admin form. Usage: class BlogPostForm(forms.Form): template_name = "admin/koriander/form.html" {% endcomment %} {% load i18n %}
{% if form.non_field_errors %}

{% blocktranslate count counter=errors|length %}Please correct the error below.{% plural %}Please correct the errors below.{% endblocktranslate %}

{{ form.non_field_errors }} {% endif %} {% for field in form %}
{% if field.field.help_text %}
{{ field.field.help_text|safe }}
{% endif %} {{ field.errors }}
{{ field.label_tag }} {{ field }}
{% endfor %}