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

30 lines
759 B
HTML
Raw Normal View History

2016-02-23 15:45:19 +00:00
{% macro checkbox(
field,
hint=False,
help_link=None,
help_link_text=None,
width='2-3',
suffix=None,
block=False
2016-02-23 15:45:19 +00:00
) %}
<label class="{% if block %}block-label{% endif %}" for="{{ field.name }}">
{{ field()}}
2017-02-13 09:50:26 +00:00
{{ field.label.text }}
2016-02-23 15:45:19 +00:00
{% if hint %}
<span class="form-hint">
{{ hint }}
</span>
{% endif %}
{% if field.errors %}
<span class="error-message">
{{ field.errors[0] }}
</span>
{% endif %}
{% if help_link and help_link_text %}
<p class="textbox-help-link">
<a href='{{ help_link }}'>{{ help_link_text }}</a>
</p>
{% endif %}
</label>
2017-02-13 09:50:26 +00:00
{% endmacro %}