This repository has been archived on 2023-02-21. You can view files and clone it, but cannot push or open issues or pull requests.
montpellier-themes/templates/combo/form_fields.html

12 lines
491 B
HTML

{{ form.non_field_errors }}
{% for field in form %}
<div id="id_{{ field.html_name }}_wrap" class="{% if field.field.required %} form-field-required{% endif %}{% if field.errors %} form-field-error{% endif %}">
{{ field.errors }}
<label for="id_{{ field.html_name }}">{{ field.label }}&nbsp;:</label>
{{ field }}
{% if field.help_text %}
<p id="id_{{ field.html_name }}_help_text" class="help-text">{{ field.help_text }}</p>
{% endif %}
</div>
{% endfor %}