- {% if attr.type != 'checkbox' %}
-
- {% endif %}
+ {# label ALWAYS above the control, for every type incl. checkbox (Prompt G) #}
+
{% if attr.type == 'buttons' %}
{# buttons type: one radio per value of options="a|b", labels from optionlabels="A|B" #}
@@ -238,9 +237,10 @@
{% elseif attr.type == 'checkbox' %}
- {# checkbox: checked = "on", unchecked = "off". The label is inline
- (form-check-label), so the generic label above is skipped for this
- type. With survey-level inherit, an untouched box keeps the value
+ {# checkbox: checked = "on", unchecked = "off". The label is rendered
+ above like every other type (generic form-label at the top of this
+ block, Prompt G); only the box itself is wrapped in .form-check.
+ With survey-level inherit, an untouched box keeps the value
"inherit" (options.js: data was-inherit). Children of a parent
switch get selector_radio_childfield + data-parent like the rest. #}