kadenios/shared/templates/forms/checkbox.html

17 lines
435 B
HTML
Raw Normal View History

2020-11-20 19:31:22 +01:00
<div class="control">
{% if field.auto_id %}
2020-12-18 17:38:44 +01:00
<label class="checkbox {% if field.field.required %}{{ form.required_css_class }}{% endif %}">
{{ field }} {{ field.label }}
</label>
2020-11-20 19:31:22 +01:00
{% endif %}
{% for error in field.errors %}
2020-12-18 17:38:44 +01:00
<span class="help is-danger {{ form.error_css_class }}">{{ error }}</span>
2020-11-20 19:31:22 +01:00
{% endfor %}
{% if field.help_text %}
2020-12-18 17:38:44 +01:00
<p class="help">
{{ field.help_text|safe }}
</p>
2020-11-20 19:31:22 +01:00
{% endif %}
2020-12-18 17:38:44 +01:00
</div>