Merge branch 'master' into ui/input-field-frontend-validation

This commit is contained in:
andrewdds
2018-08-09 13:56:09 -04:00
committed by GitHub
59 changed files with 948 additions and 226 deletions

View File

@@ -1,11 +1,11 @@
{% from "components/icon.html" import Icon %}
{% macro OptionsInput(field, inline=False) -%}
<div class='usa-input {% if errors %}usa-input--error{% endif %}'>
<div class='usa-input {% if field.errors %}usa-input--error{% endif %}'>
<fieldset class="usa-input__choices {% if inline %}usa-input__choices--inline{% endif %}">
<legend>
{{ field.label }}
{{ field.label | striptags}}
{% if field.description %}
<span class='usa-input__help'>{{ field.description | safe }}</span>
@@ -26,4 +26,7 @@
</fieldset>
</div>
{%- endmacro %}

View File

@@ -17,7 +17,7 @@
<span class='usa-input__help'>{{ field.description | safe }}</span>
{% endif %}
{% if errors %}
{% if field.errors %}
{{ Icon('alert') }}
{% endif %}
@@ -54,6 +54,7 @@
placeholder='{{ placeholder }}'
{% if field.errors %}aria-invalid='true'{% endif %}>
</masked-input>
{% endif %}
{% if field.errors %}