firefly-iii/resources/views/form/multiCheckbox.twig

23 lines
817 B
Twig
Raw Normal View History

2015-07-06 13:21:55 -05:00
<div class="{{ classes }}" id="{{ name }}_holder">
<label for="{{ options.id }}" class="col-sm-4 control-label">{{ label }}</label>
<div class="col-sm-8">
{% for value,description in list %}
2016-02-06 08:00:57 -06:00
{% set options = options|merge({'id': 'ffInput_'~name~'_'~value}) %}
<div class="checkbox">
2015-07-06 13:21:55 -05:00
<label>
2016-02-06 08:00:57 -06:00
{% if value in selected %}
{{ Form.checkbox(name~'[]', value, true, options) }}
{% else %}
{{ Form.checkbox(name~'[]', value, false, options) }}
{% endif %}
2015-07-06 13:21:55 -05:00
{{ description }}
</label>
</div>
{% endfor %}
{% include 'form/help.twig' %}
{% include 'form/feedback.twig' %}
</div>
</div>