mirror of
https://github.com/eitchtee/WYGIWYH.git
synced 2026-04-26 10:38:36 +02:00
feat: automated replacement
This commit is contained in:
12
app/templates/crispy-daisyui/layout/field_errors.html
Normal file
12
app/templates/crispy-daisyui/layout/field_errors.html
Normal file
@@ -0,0 +1,12 @@
|
||||
{% if form_show_errors and field.errors %}
|
||||
{% if field.errors.field_id %}
|
||||
{# Django 5.2+ #}
|
||||
<div id="{{field.errors.field_id}}_error" class="tw:text-error tw:text-sm tw:mt-1">
|
||||
{% else %}
|
||||
<div id="{{field.auto_id}}_error" class="tw:text-error tw:text-sm tw:mt-1">
|
||||
{% endif %}
|
||||
{% for error in field.errors %}
|
||||
<span id="error_{{ forloop.counter }}_{{ field.auto_id }}"><strong>{{ error }}</strong></span>
|
||||
{% endfor %}
|
||||
</div>
|
||||
{% endif %}
|
||||
Reference in New Issue
Block a user