core: fix forms for radio buttons
This commit is contained in:
parent
ec6f467fa2
commit
219acf76d5
|
@ -15,16 +15,18 @@
|
||||||
</div>
|
</div>
|
||||||
<div class="pf-c-form__group-control">
|
<div class="pf-c-form__group-control">
|
||||||
{% for c in field %}
|
{% for c in field %}
|
||||||
<div class="radio col-sm-10">
|
<div class="pf-c-radio">
|
||||||
<input type="radio" id="{{ field.name }}-{{ forloop.counter0 }}"
|
<input class="pf-c-radio__input"
|
||||||
name="{% if wizard %}{{ wizard.steps.current }}-{% endif %}{{ field.name }}" value="{{ c.data.value }}"
|
type="radio" id="{{ field.name }}-{{ forloop.counter0 }}"
|
||||||
{% if c.data.selected %} checked {% endif %}>
|
name="{% if wizard %}{{ wizard.steps.current }}-{% endif %}{{ field.name }}"
|
||||||
<label class="pf-c-form__label" for="{{ field.name }}-{{ forloop.counter0 }}">{{ c.choice_label }}</label>
|
value="{{ c.data.value }}"
|
||||||
|
{% if c.data.selected %} checked {% endif %}/>
|
||||||
|
<label class="pf-c-radio__label" for="{{ field.name }}-{{ forloop.counter0 }}">{{ c.choice_label }}</label>
|
||||||
</div>
|
</div>
|
||||||
|
{% endfor %}
|
||||||
{% if field.help_text %}
|
{% if field.help_text %}
|
||||||
<p class="pf-c-form__helper-text">{{ field.help_text }}</p>
|
<p class="pf-c-form__helper-text">{{ field.help_text }}</p>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endfor %}
|
|
||||||
</div>
|
</div>
|
||||||
{% elif field.field.widget|fieldtype == 'Select' %}
|
{% elif field.field.widget|fieldtype == 'Select' %}
|
||||||
<div class="pf-c-form__group-label">
|
<div class="pf-c-form__group-label">
|
||||||
|
|
Reference in New Issue