Move common templates to shared folder
This commit is contained in:
parent
867e78e6d3
commit
0716af3925
21 changed files with 54 additions and 54 deletions
24
shared/templates/forms/radio.html
Normal file
24
shared/templates/forms/radio.html
Normal 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>
|
Loading…
Add table
Add a link
Reference in a new issue