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

23 lines
446 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
2017-04-11 17:47:16 +01:00
id="{{ field.id }}" name="{{ field.name }}" type="checkbox" value="y"
{% if field.data %}
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 %}