diff --git a/aleksis/core/templates/material/field_errors.html b/aleksis/core/templates/material/field_errors.html new file mode 100644 index 0000000000000000000000000000000000000000..3100407ef6ec7bc0dcad9d37323bf102c2462aa4 --- /dev/null +++ b/aleksis/core/templates/material/field_errors.html @@ -0,0 +1,5 @@ +{% if bound_field.errors %} + <div class="errors"> + {% for error in bound_field.errors %}<small class="error-text">{{ error }}</small>{% endfor %} + </div> +{% endif %} diff --git a/aleksis/core/templates/material/non_field_errors.html b/aleksis/core/templates/material/non_field_errors.html new file mode 100644 index 0000000000000000000000000000000000000000..c8a92eb7ef813325580738a7819fccf6da2dfa70 --- /dev/null +++ b/aleksis/core/templates/material/non_field_errors.html @@ -0,0 +1,7 @@ +{% 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 %}