atst/templates/components/checkbox_input.html
dandds 9c84e30172 frontend for adding new application member
- updated styling
- eliminated stray <form> tag in application team template
2019-04-30 14:43:23 -04:00

22 lines
698 B
HTML

{% macro CheckboxInput(
field,
label=field.label,
inline=False,
classes="") -%}
<checkboxinput name='{{ field.name }}' inline-template key='{{ field.name }}'>
<div class='usa-input {{ classes }} {% if field.errors %}usa-input--error{% endif %}'>
<fieldset data-ally-disabled="true" v-on:change="onInput" class="usa-input__choices {% if inline %}usa-input__choices--inline{% endif %}">
<legend>
{{ field() }}
{{ label | safe }}
{% if field.description %}
<span class='usa-input__help'>{{ field.description | safe }}</span>
{% endif %}
</legend>
</fieldset>
</div>
</checkboxinput>
{%- endmacro %}