Files
notifications-admin/app/templates/components/checkbox.html
T

23 lines
464 B
HTML
Raw Normal View History

2016-02-23 15:45:19 +00:00
{% macro checkbox(
field,
hint=False,
width='2-3'
2016-02-23 15:45:19 +00:00
) %}
<div class="multiple-choice">
<input
id="{{ field.id }}" name="{{ field.name }}" type="checkbox" value="{{ field.data }}"
{% if field.checked %}
checked
{% endif %}
>
<label for="{{ field.id }}">
{{ field.label.text }}
{% if hint %}
<div class="hint">
{{ hint }}
</div>
{% endif %}
2016-02-23 15:45:19 +00:00
</label>
</div>
2017-02-13 09:50:26 +00:00
{% endmacro %}