{% for o in options %}
<div class="form-check{% if inline %} form-check-inline{% endif %}{% if help %} is-invalid{% endif %}">
<input type="radio" class="form-check-input{% if help %} is-invalid{% endif %}{% if class %} {{ class }}{% endif %}" name="{{ name }}" id="{{ name }}_{{ loop.index }}" value="{{ o.value }}"{% if value == o.value %} checked{% endif %}/>
- <label class="form-label" for="{{ name }}_{{ loop.index }}">{{ o.label }}</label>
+ <label class="form-check-label" for="{{ name }}_{{ loop.index }}">{{ o.label }}</label>
</div>
{% endfor %}
{% if help %}<div id="helpBox_{{ name }}_" class="invalid-feedback">{{ help }}</div>{% endif %}
match f.field.tmpl.add_raw_template("field_single", r#"<div class="form-check{% if help %} is-invalid{% endif %}">
<input type="radio" class="form-check-input{% if inline %} form-check-inline{% endif %}{% if help %} is-invalid{% endif %}{% if class %} {{ class }}{% endif %}" name="{{ name }}" id="{{ name }}_{{ idx + 1 }}" value="{{ value }}"{% if checked != "" %} checked{% endif %}/>
- <label class="form-label" for="{{ name }}_{{ idx + 1 }}">{{ label }}</label>
+ <label class="form-check-label" for="{{ name }}_{{ idx + 1 }}">{{ label }}</label>
</div>"#) {
Err(e) => { println!("{:?}", e) },
_ => {},