Skip to content

Commit

Permalink
add errors to multi options
Browse files Browse the repository at this point in the history
  • Loading branch information
dtaylor7 committed Sep 14, 2017
1 parent b5df624 commit 8e00477
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions templates/look-and-feel/components/fields.njk
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,11 @@
hideQuestion=true,
inline=false,
type='radio') %}
<fieldset{% if inline %} class="inline"{% endif %}>
<div class="form-group {{ 'form-group-error' if field.error }}">

{{ errorsFor(field) }}

<fieldset{% if inline %} class="inline"{% endif %} id="{{ field.id }}">

<legend>
{% if hideQuestion %}
Expand Down Expand Up @@ -95,7 +99,7 @@
{%- endfor %}

</fieldset>

</div>
{% endmacro %}

{% macro errorsFor(field) -%}
Expand Down

0 comments on commit 8e00477

Please sign in to comment.