Render error validation message with proper color

This commit is contained in:
luis cielak
2018-08-08 17:39:03 -04:00
parent bd58da642b
commit f365b18acd
2 changed files with 3 additions and 1 deletions

View File

@@ -1,7 +1,7 @@
{% 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>