mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-07-22 18:56:15 +02:00
Updated all error messages to have error icon
This commit is contained in:
parent
5b7a6678c6
commit
ae975ed9f8
1 changed files with 8 additions and 3 deletions
|
@ -52,9 +52,14 @@ error messages, if necessary.
|
||||||
{% if field.errors %}
|
{% if field.errors %}
|
||||||
<div id="{{ widget.attrs.id }}__error-message">
|
<div id="{{ widget.attrs.id }}__error-message">
|
||||||
{% for error in field.errors %}
|
{% for error in field.errors %}
|
||||||
<span class="usa-error-message" role="alert">
|
<div class="usa-error-message display-flex" role="alert">
|
||||||
{{ error }}
|
<div class="margin-top-05">
|
||||||
</span>
|
<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 %}
|
{% endfor %}
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue