Move common templates to shared folder

This commit is contained in:
Tom Hubrecht 2020-12-20 12:00:09 +01:00
parent 867e78e6d3
commit 0716af3925
21 changed files with 54 additions and 54 deletions

View file

@ -0,0 +1,24 @@
{% if field.auto_id %}
<label class="label {% if field.field.required %}{{ form.required_css_class }}{% endif %}">
{{ field.label_tag }}
</label>
{% endif %}
<div class="control">
{% for choice in field %}
<label class="radio">
{{ choice.tag }}
{{ choice.choice_label }}
</label>
{% endfor %}
{% for error in field.errors %}
<span class="help is-danger {{ form.error_css_class }}">{{ error }}</span>
{% endfor %}
{% if field.help_text %}
<p class="help">
{{ field.help_text|safe }}
</p>
{% endif %}
</div>