summaryrefslogtreecommitdiffstats
path: root/templates/w3/layout/field_errors.html
diff options
context:
space:
mode:
Diffstat (limited to 'templates/w3/layout/field_errors.html')
-rw-r--r--templates/w3/layout/field_errors.html5
1 files changed, 5 insertions, 0 deletions
diff --git a/templates/w3/layout/field_errors.html b/templates/w3/layout/field_errors.html
new file mode 100644
index 0000000..f649872
--- /dev/null
+++ b/templates/w3/layout/field_errors.html
@@ -0,0 +1,5 @@
+{% if form_show_errors and field.errors %}
+ {% for error in field.errors %}
+ <span id="error_{{ forloop.counter }}_{{ field.auto_id }}" class="invalid-feedback"><strong>{{ error }}</strong></span>
+ {% endfor %}
+{% endif %}