Updated all error messages to have error icon

This commit is contained in:
CocoByte 2024-11-25 19:46:53 -07:00
parent 5b7a6678c6
commit ae975ed9f8
No known key found for this signature in database
GPG key ID: BBFAA2526384C97F

View file

@ -52,9 +52,14 @@ error messages, if necessary.
{% if field.errors %}
<div id="{{ widget.attrs.id }}__error-message">
{% for error in field.errors %}
<span class="usa-error-message" role="alert">
{{ error }}
</span>
<div class="usa-error-message display-flex" role="alert">
<div class="margin-top-05">
<svg class="usa-icon" focusable="true" role="img" aria-label="Error" width="24" height="24">
<use xlink:href="{%static 'img/sprite.svg'%}#error"></use>
</svg>
</div>
<span class="margin-left-05">{{ error }}</span>
</div>
{% endfor %}
</div>
{% endif %}