kadenios/shared/templates/forms/radio.html

25 lines
545 B
HTML
Raw Normal View History

2020-11-20 19:31:22 +01:00
{% if field.auto_id %}
2020-12-19 15:28:32 +01:00
<label class="label {% if field.field.required %}{{ form.required_css_class }}{% endif %}">
{{ field.label_tag }}
</label>
2020-11-20 19:31:22 +01:00
{% endif %}
<div class="control">
{% for choice in field %}
2020-12-19 15:28:32 +01:00
<label class="radio">
{{ choice.tag }}
{{ choice.choice_label }}
</label>
2020-11-20 19:31:22 +01:00
{% endfor %}
{% for error in field.errors %}
2020-12-19 15:28:32 +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-19 15:28:32 +01:00
<p class="help">
{{ field.help_text|safe }}
</p>
2020-11-20 19:31:22 +01:00
{% endif %}
2020-12-19 15:28:32 +01:00
</div>