ccdb-web/app/templates/components/validated-field.hbs
2017-10-07 17:37:24 -07:00

10 lines
257 B
Handlebars

<label class="control-label">{{label}}</label>
{{yield}}
{{#if (get changeset.error property)}}
<ul class="help-block">
{{#each (get (get changeset.error property) "validation") as |message|}}
<li>{{message}}</li>
{{/each}}
</ul>
{{/if}}