Skip to content
Snippets Groups Projects
Commit 46bb7663 authored by Nik | Klampfradler's avatar Nik | Klampfradler
Browse files

Merge branch 'bugfix/django-material-error-messages' into 'master'

Add custom templates for error messages in forms generated by django-material

See merge request AlekSIS/AlekSIS!147
parents f3428963 21f6897b
No related branches found
No related tags found
1 merge request!147Add custom templates for error messages in forms generated by django-material
Pipeline #835 passed with warnings
{% if bound_field.errors %}
<div class="errors">
{% for error in bound_field.errors %}<small class="error-text">{{ error }}</small>{% endfor %}
</div>
{% endif %}
{% if form.non_field_errors %}
<div class="alert error">
{% for error in form.non_field_errors %}
<div><i class="material-icons left">error</i> {{ error }}</div>
{% endfor %}
</div>
{% endif %}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment