feat(options): Questions tab 'Question border' section with 3 subcolumns and radius rows (row 178 plan P5)
Generated by Mistral Vibe. Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
This commit is contained in:
parent
101c3135ea
commit
af3b408768
3 changed files with 69 additions and 36 deletions
41
config.xml
41
config.xml
|
|
@ -492,6 +492,23 @@
|
||||||
<questionhelpbackgroundcolorcustom type="colorpicker" category="Questions" width="4" title="Custom question help background color (for 'Other ...')" parent="questionhelpbackgroundcolor">#fff3cd</questionhelpbackgroundcolorcustom>
|
<questionhelpbackgroundcolorcustom type="colorpicker" category="Questions" width="4" title="Custom question help background color (for 'Other ...')" parent="questionhelpbackgroundcolor">#fff3cd</questionhelpbackgroundcolorcustom>
|
||||||
<questionhelpfontcolor type="colorpicker" category="Questions" width="4" title="Question help font color" options="on|off" optionlabels="Yes|No">#444444</questionhelpfontcolor>
|
<questionhelpfontcolor type="colorpicker" category="Questions" width="4" title="Question help font color" options="on|off" optionlabels="Yes|No">#444444</questionhelpfontcolor>
|
||||||
<questionhelptextposition type="buttons" category="Questions" width="4" title="Question help text position" options="top|bottom" optionlabels="Top|Bottom">top</questionhelptextposition>
|
<questionhelptextposition type="buttons" category="Questions" width="4" title="Question help text position" options="top|bottom" optionlabels="Top|Bottom">top</questionhelptextposition>
|
||||||
|
<!-- Row 178 plan P5 (row 188): section "Question border" (options.twig) —
|
||||||
|
three col-md-4 subcolumns with a vertical divider between them (col 1 =
|
||||||
|
the border on/off buttons, col 2 = color/style/shadow children shown for
|
||||||
|
box|top, col 3 = the four border radii as two rows of two with a
|
||||||
|
horizontal line between the rows). The border children carry
|
||||||
|
parent="questionborder"; the show-values "box|top" cannot be an XML
|
||||||
|
attribute (core passes only `parent` through), so the multi-value list
|
||||||
|
lives in options.twig (aShowIfValues) and lands as
|
||||||
|
data-show-if-value="box|top". -->
|
||||||
|
<questionborder type="buttons" category="Questions" width="4" title="Question border" options="box|top|none" optionlabels="Box around|Top and bottom|None">box</questionborder>
|
||||||
|
<questionbordercolor type="colorpicker" category="Questions" width="4" title="Question border color" options="on|off" optionlabels="Yes|No" parent="questionborder">#cccccc</questionbordercolor>
|
||||||
|
<questionborderstyle type="buttons" category="Questions" width="4" title="Question border line style" options="solid|dotted|dashed" optionlabels="Solid|Dotted|Dashed" parent="questionborder">solid</questionborderstyle>
|
||||||
|
<questiondropdown type="buttons" category="Questions" width="4" title="Question dropdown shadow" options="on|hover|off" optionlabels="Always|On hover only|None" parent="questionborder">hover</questiondropdown>
|
||||||
|
<questionborderradiusTL type="duration" category="Questions" width="4" title="Border radius top left" parent="questionborder">5px</questionborderradiusTL>
|
||||||
|
<questionborderradiusTR type="duration" category="Questions" width="4" title="Border radius top right" parent="questionborder">5px</questionborderradiusTR>
|
||||||
|
<questionborderradiusBL type="duration" category="Questions" width="4" title="Border radius bottom left" parent="questionborder">5px</questionborderradiusBL>
|
||||||
|
<questionborderradiusBR type="duration" category="Questions" width="4" title="Border radius bottom right" parent="questionborder">5px</questionborderradiusBR>
|
||||||
<!-- Questions
|
<!-- Questions
|
||||||
HOUSE-STYLE: the colorpicker options in this section (question
|
HOUSE-STYLE: the colorpicker options in this section (question
|
||||||
title/background/help/help-font/border/checkbox colors) are house-style
|
title/background/help/help-font/border/checkbox colors) are house-style
|
||||||
|
|
@ -508,24 +525,16 @@
|
||||||
three-column grid, only it used): answers font + 6-way color chooser +
|
three-column grid, only it used): answers font + 6-way color chooser +
|
||||||
custom; then (P4/row 186) the "Question help" section (width 4, first
|
custom; then (P4/row 186) the "Question help" section (width 4, first
|
||||||
col-md-4 of a three-column grid, only it used): help background chooser +
|
col-md-4 of a three-column grid, only it used): help background chooser +
|
||||||
custom, plain help font color picker, help text position; then the
|
custom, plain help font color picker, help text position; then (P5/row
|
||||||
remaining legacy columns (border, checkbox color), then the rest
|
188) the "Question border" section (three col-md-4 subcolumns with a
|
||||||
full-width (width 12). Inside a pane
|
vertical divider between them: col 1 = the border buttons, col 2 = the
|
||||||
column each option stacks as col-12. The border children
|
color/style/shadow children, col 3 = the four radii as two rows of two
|
||||||
carry parent="questionborder"; the show-values "box|top" cannot be an
|
with an hr between the rows); then the remaining legacy column
|
||||||
XML attribute (core passes only `parent` through), so the multi-value
|
(checkbox color), then the rest full-width (width 12). Inside a pane
|
||||||
list lives in options.twig (aShowIfValues) and lands as
|
column each option stacks as col-12 (the radius options as col-md-6
|
||||||
data-show-if-value="box|top". questionhelpfontcolor is applied
|
for the 2x2 rows). questionhelpfontcolor is applied
|
||||||
in custom_header.twig on .question-help-container. -->
|
in custom_header.twig on .question-help-container. -->
|
||||||
<!-- Questions -->
|
<!-- Questions -->
|
||||||
<questionborder type="buttons" category="Questions" width="4" title="Question border" options="box|top|none" optionlabels="Box around|Top and bottom|None">box</questionborder>
|
|
||||||
<questionbordercolor type="colorpicker" category="Questions" width="4" title="Question border color" options="on|off" optionlabels="Yes|No" parent="questionborder">#cccccc</questionbordercolor>
|
|
||||||
<questionborderstyle type="buttons" category="Questions" width="4" title="Question border line style" options="solid|dotted|dashed" optionlabels="Solid|Dotted|Dashed" parent="questionborder">solid</questionborderstyle>
|
|
||||||
<questiondropdown type="buttons" category="Questions" width="4" title="Question dropdown shadow" options="on|hover|off" optionlabels="Always|On hover only|None" parent="questionborder">hover</questiondropdown>
|
|
||||||
<questionborderradiusTL type="duration" category="Questions" width="4" title="Border radius top left" parent="questionborder">5px</questionborderradiusTL>
|
|
||||||
<questionborderradiusTR type="duration" category="Questions" width="4" title="Border radius top right" parent="questionborder">5px</questionborderradiusTR>
|
|
||||||
<questionborderradiusBL type="duration" category="Questions" width="4" title="Border radius bottom left" parent="questionborder">5px</questionborderradiusBL>
|
|
||||||
<questionborderradiusBR type="duration" category="Questions" width="4" title="Border radius bottom right" parent="questionborder">5px</questionborderradiusBR>
|
|
||||||
<checkboxcolor type="colorpicker" category="Questions" width="4" title="Checkbox/radiobutton color (when checked)" options="on|off" optionlabels="Yes|No">#ff005f</checkboxcolor>
|
<checkboxcolor type="colorpicker" category="Questions" width="4" title="Checkbox/radiobutton color (when checked)" options="on|off" optionlabels="Yes|No">#ff005f</checkboxcolor>
|
||||||
<!-- Per-element font+color combos (Prompt U; row 178 plan P6 moves the
|
<!-- Per-element font+color combos (Prompt U; row 178 plan P6 moves the
|
||||||
buttons ones into their own tab; the answers ones moved to the
|
buttons ones into their own tab; the answers ones moved to the
|
||||||
|
|
|
||||||
|
|
@ -317,7 +317,9 @@
|
||||||
{# row 186 / plan P4: the help keys moved into their own "Question help" section
|
{# row 186 / plan P4: the help keys moved into their own "Question help" section
|
||||||
(aQSlots above) — legacy column 1 is empty now #}
|
(aQSlots above) — legacy column 1 is empty now #}
|
||||||
{% set aQuestionsCol1 = [] %}
|
{% set aQuestionsCol1 = [] %}
|
||||||
{% set aQuestionsCol2 = ['questionborder', 'questionbordercolor', 'questionborderstyle', 'questiondropdown', 'questionborderradiusTL', 'questionborderradiusTR', 'questionborderradiusBL', 'questionborderradiusBR'] %}
|
{# row 188 / plan P5: the border keys moved into their own "Question border"
|
||||||
|
section (aQSlots above) — legacy column 2 is empty now #}
|
||||||
|
{% set aQuestionsCol2 = [] %}
|
||||||
{% set aQuestionsCol3 = ['checkboxcolor'] %}
|
{% set aQuestionsCol3 = ['checkboxcolor'] %}
|
||||||
{# row 178/179 plan: the Questions pane is built from SECTIONS — each section is an
|
{# row 178/179 plan: the Questions pane is built from SECTIONS — each section is an
|
||||||
h3 + its own row of columns and ends with a full-width hr. aQSections lists the
|
h3 + its own row of columns and ends with a full-width hr. aQSections lists the
|
||||||
|
|
@ -332,7 +334,8 @@
|
||||||
{ 'id': 'overall', 'h3': 'Overall question', 'colClass': 'col-md-4' },
|
{ 'id': 'overall', 'h3': 'Overall question', 'colClass': 'col-md-4' },
|
||||||
{ 'id': 'title', 'h3': 'Question title and body', 'colClass': 'col-md-4' },
|
{ 'id': 'title', 'h3': 'Question title and body', 'colClass': 'col-md-4' },
|
||||||
{ 'id': 'answers', 'h3': 'Answer options and subquestions', 'colClass': 'col-md-4' },
|
{ 'id': 'answers', 'h3': 'Answer options and subquestions', 'colClass': 'col-md-4' },
|
||||||
{ 'id': 'help', 'h3': 'Question help', 'colClass': 'col-md-4' }
|
{ 'id': 'help', 'h3': 'Question help', 'colClass': 'col-md-4' },
|
||||||
|
{ 'id': 'border', 'h3': 'Question border', 'colClass': 'col-md-4' }
|
||||||
] %}
|
] %}
|
||||||
{% set aQSlots = {
|
{% set aQSlots = {
|
||||||
'questiondistance': 'overall:0', 'questiondistancebottom': 'overall:0',
|
'questiondistance': 'overall:0', 'questiondistancebottom': 'overall:0',
|
||||||
|
|
@ -342,7 +345,11 @@
|
||||||
'questionbackgroundcolor': 'title:2', 'questionbackgroundcolorcustom': 'title:2',
|
'questionbackgroundcolor': 'title:2', 'questionbackgroundcolorcustom': 'title:2',
|
||||||
'answersfont': 'answers:0', 'answerstextcolor': 'answers:0', 'answerstextcolorcustom': 'answers:0',
|
'answersfont': 'answers:0', 'answerstextcolor': 'answers:0', 'answerstextcolorcustom': 'answers:0',
|
||||||
'questionhelpbackgroundcolor': 'help:0', 'questionhelpbackgroundcolorcustom': 'help:0',
|
'questionhelpbackgroundcolor': 'help:0', 'questionhelpbackgroundcolorcustom': 'help:0',
|
||||||
'questionhelpfontcolor': 'help:0', 'questionhelptextposition': 'help:0'
|
'questionhelpfontcolor': 'help:0', 'questionhelptextposition': 'help:0',
|
||||||
|
'questionborder': 'border:0',
|
||||||
|
'questionbordercolor': 'border:1', 'questionborderstyle': 'border:1', 'questiondropdown': 'border:1',
|
||||||
|
'questionborderradiusTL': 'border:2', 'questionborderradiusTR': 'border:2',
|
||||||
|
'questionborderradiusBL': 'border:2', 'questionborderradiusBR': 'border:2'
|
||||||
} %}
|
} %}
|
||||||
|
|
||||||
{# row 147: all group-related options of the "Questions" category — they are
|
{# row 147: all group-related options of the "Questions" category — they are
|
||||||
|
|
@ -749,6 +756,10 @@
|
||||||
col-12 col-md-<width> INSIDE the col-md-6 slot column, i.e. only
|
col-12 col-md-<width> INSIDE the col-md-6 slot column, i.e. only
|
||||||
the left part of each column was used. #}
|
the left part of each column was used. #}
|
||||||
{% if bQuestionsPane or bTopPane or bGroupsPane or bImagesPane or (bFontsPane and fSlot != 'rest') %}{% set wrapClass = 'col-12' %}{% else %}{% set wrapClass = 'col-12 col-md-' ~ attr.width|default(2) %}{% endif %}
|
{% if bQuestionsPane or bTopPane or bGroupsPane or bImagesPane or (bFontsPane and fSlot != 'rest') %}{% set wrapClass = 'col-12' %}{% else %}{% set wrapClass = 'col-12 col-md-' ~ attr.width|default(2) %}{% endif %}
|
||||||
|
{# row 188 / plan P5: inside the "Question border" section's radius
|
||||||
|
subcolumn the four radius options form two rows of two — their
|
||||||
|
wrappers are half the column (col-md-6) instead of col-12 #}
|
||||||
|
{% if bQuestionsPane and key starts with 'questionborderradius' %}{% set wrapClass = 'col-12 col-md-6' %}{% endif %}
|
||||||
{# server-side current value for this option (checked/selected/value) #}
|
{# server-side current value for this option (checked/selected/value) #}
|
||||||
{% set currentValue = bGeneralInherit ? 'inherit' : (aCurrentOptions[key] is defined ? aCurrentOptions[key] : (oParentOptions[key] is defined ? oParentOptions[key] : '')) %}
|
{% set currentValue = bGeneralInherit ? 'inherit' : (aCurrentOptions[key] is defined ? aCurrentOptions[key] : (oParentOptions[key] is defined ? oParentOptions[key] : '')) %}
|
||||||
{# parent != '': this field is only visible when the parent option's value
|
{# parent != '': this field is only visible when the parent option's value
|
||||||
|
|
@ -781,6 +792,10 @@
|
||||||
{# row 149: horizontal line inside column 1 of the Page background pane,
|
{# row 149: horizontal line inside column 1 of the Page background pane,
|
||||||
between the overall background color and the background image switch #}
|
between the overall background color and the background image switch #}
|
||||||
{% if bImagesPane and key == 'backgroundimage' %}<div class="col-12"><hr class="images-col1-hr"></div>{% endif %}
|
{% if bImagesPane and key == 'backgroundimage' %}<div class="col-12"><hr class="images-col1-hr"></div>{% endif %}
|
||||||
|
{# row 188 / plan P5 (row-178 decision 4): horizontal line between the
|
||||||
|
two radius rows inside the border section's radius subcolumn —
|
||||||
|
emitted right before the bottom-left radius (full column width) #}
|
||||||
|
{% if bQuestionsPane and key == 'questionborderradiusBL' %}<div class="col-12"><hr class="questions-border-radius-hr"></div>{% endif %}
|
||||||
<div class="{{ wrapClass }} {% if attr.parent != '' %}option-visibility{% if bParentHidden and not bDisableMode %} d-none{% endif %}{% endif %}"
|
<div class="{{ wrapClass }} {% if attr.parent != '' %}option-visibility{% if bParentHidden and not bDisableMode %} d-none{% endif %}{% endif %}"
|
||||||
{% if attr.parent != '' %}data-show-if-parent="{{ attr.parent }}" data-show-if-value="{{ showIfValues }}"{% if bDisableMode %} data-show-if-mode="disable"{% endif %}{% endif %}>
|
{% if attr.parent != '' %}data-show-if-parent="{{ attr.parent }}" data-show-if-value="{{ showIfValues }}"{% if bDisableMode %} data-show-if-mode="disable"{% endif %}{% endif %}>
|
||||||
{# row 176: checkbox options get NO mb-3 wrapper margin — the
|
{# row 176: checkbox options get NO mb-3 wrapper margin — the
|
||||||
|
|
|
||||||
|
|
@ -31,7 +31,7 @@
|
||||||
<version>3.3.0</version>
|
<version>3.3.0</version>
|
||||||
<apiVersion>3</apiVersion>
|
<apiVersion>3</apiVersion>
|
||||||
<description><strong>Example variant of Respondage Vanilla</strong><br>Public example of a build output: only a few house-style option values differ, all views, CSS and JS are inherited from the mother theme via extends.</description>
|
<description><strong>Example variant of Respondage Vanilla</strong><br>Public example of a build output: only a few house-style option values differ, all views, CSS and JS are inherited from the mother theme via extends.</description>
|
||||||
<lastUpdate>2026-11-29 14:19:31</lastUpdate>
|
<lastUpdate>2026-11-29 14:23:13</lastUpdate>
|
||||||
<extends>vanilla_respondage</extends>
|
<extends>vanilla_respondage</extends>
|
||||||
</metadata>
|
</metadata>
|
||||||
<compatibility>
|
<compatibility>
|
||||||
|
|
@ -365,6 +365,23 @@
|
||||||
<questionhelpbackgroundcolorcustom type="colorpicker" category="Questions" width="4" title="Custom question help background color (for 'Other ...')" parent="questionhelpbackgroundcolor">#fff3cd</questionhelpbackgroundcolorcustom>
|
<questionhelpbackgroundcolorcustom type="colorpicker" category="Questions" width="4" title="Custom question help background color (for 'Other ...')" parent="questionhelpbackgroundcolor">#fff3cd</questionhelpbackgroundcolorcustom>
|
||||||
<questionhelpfontcolor type="colorpicker" category="Questions" width="4" title="Question help font color" options="on|off" optionlabels="Yes|No">#444444</questionhelpfontcolor>
|
<questionhelpfontcolor type="colorpicker" category="Questions" width="4" title="Question help font color" options="on|off" optionlabels="Yes|No">#444444</questionhelpfontcolor>
|
||||||
<questionhelptextposition type="buttons" category="Questions" width="4" title="Question help text position" options="top|bottom" optionlabels="Top|Bottom">top</questionhelptextposition>
|
<questionhelptextposition type="buttons" category="Questions" width="4" title="Question help text position" options="top|bottom" optionlabels="Top|Bottom">top</questionhelptextposition>
|
||||||
|
<!-- Row 178 plan P5 (row 188): section "Question border" (options.twig) —
|
||||||
|
three col-md-4 subcolumns with a vertical divider between them (col 1 =
|
||||||
|
the border on/off buttons, col 2 = color/style/shadow children shown for
|
||||||
|
box|top, col 3 = the four border radii as two rows of two with a
|
||||||
|
horizontal line between the rows). The border children carry
|
||||||
|
parent="questionborder"; the show-values "box|top" cannot be an XML
|
||||||
|
attribute (core passes only `parent` through), so the multi-value list
|
||||||
|
lives in options.twig (aShowIfValues) and lands as
|
||||||
|
data-show-if-value="box|top". -->
|
||||||
|
<questionborder type="buttons" category="Questions" width="4" title="Question border" options="box|top|none" optionlabels="Box around|Top and bottom|None">box</questionborder>
|
||||||
|
<questionbordercolor type="colorpicker" category="Questions" width="4" title="Question border color" options="on|off" optionlabels="Yes|No" parent="questionborder">#cccccc</questionbordercolor>
|
||||||
|
<questionborderstyle type="buttons" category="Questions" width="4" title="Question border line style" options="solid|dotted|dashed" optionlabels="Solid|Dotted|Dashed" parent="questionborder">solid</questionborderstyle>
|
||||||
|
<questiondropdown type="buttons" category="Questions" width="4" title="Question dropdown shadow" options="on|hover|off" optionlabels="Always|On hover only|None" parent="questionborder">hover</questiondropdown>
|
||||||
|
<questionborderradiusTL type="duration" category="Questions" width="4" title="Border radius top left" parent="questionborder">5px</questionborderradiusTL>
|
||||||
|
<questionborderradiusTR type="duration" category="Questions" width="4" title="Border radius top right" parent="questionborder">5px</questionborderradiusTR>
|
||||||
|
<questionborderradiusBL type="duration" category="Questions" width="4" title="Border radius bottom left" parent="questionborder">5px</questionborderradiusBL>
|
||||||
|
<questionborderradiusBR type="duration" category="Questions" width="4" title="Border radius bottom right" parent="questionborder">5px</questionborderradiusBR>
|
||||||
<!-- Questions
|
<!-- Questions
|
||||||
HOUSE-STYLE: the colorpicker options in this section (question
|
HOUSE-STYLE: the colorpicker options in this section (question
|
||||||
title/background/help/help-font/border/checkbox colors) are house-style
|
title/background/help/help-font/border/checkbox colors) are house-style
|
||||||
|
|
@ -381,24 +398,16 @@
|
||||||
three-column grid, only it used): answers font + 6-way color chooser +
|
three-column grid, only it used): answers font + 6-way color chooser +
|
||||||
custom; then (P4/row 186) the "Question help" section (width 4, first
|
custom; then (P4/row 186) the "Question help" section (width 4, first
|
||||||
col-md-4 of a three-column grid, only it used): help background chooser +
|
col-md-4 of a three-column grid, only it used): help background chooser +
|
||||||
custom, plain help font color picker, help text position; then the
|
custom, plain help font color picker, help text position; then (P5/row
|
||||||
remaining legacy columns (border, checkbox color), then the rest
|
188) the "Question border" section (three col-md-4 subcolumns with a
|
||||||
full-width (width 12). Inside a pane
|
vertical divider between them: col 1 = the border buttons, col 2 = the
|
||||||
column each option stacks as col-12. The border children
|
color/style/shadow children, col 3 = the four radii as two rows of two
|
||||||
carry parent="questionborder"; the show-values "box|top" cannot be an
|
with an hr between the rows); then the remaining legacy column
|
||||||
XML attribute (core passes only `parent` through), so the multi-value
|
(checkbox color), then the rest full-width (width 12). Inside a pane
|
||||||
list lives in options.twig (aShowIfValues) and lands as
|
column each option stacks as col-12 (the radius options as col-md-6
|
||||||
data-show-if-value="box|top". questionhelpfontcolor is applied
|
for the 2x2 rows). questionhelpfontcolor is applied
|
||||||
in custom_header.twig on .question-help-container. -->
|
in custom_header.twig on .question-help-container. -->
|
||||||
<!-- Questions -->
|
<!-- Questions -->
|
||||||
<questionborder type="buttons" category="Questions" width="4" title="Question border" options="box|top|none" optionlabels="Box around|Top and bottom|None">box</questionborder>
|
|
||||||
<questionbordercolor type="colorpicker" category="Questions" width="4" title="Question border color" options="on|off" optionlabels="Yes|No" parent="questionborder">#cccccc</questionbordercolor>
|
|
||||||
<questionborderstyle type="buttons" category="Questions" width="4" title="Question border line style" options="solid|dotted|dashed" optionlabels="Solid|Dotted|Dashed" parent="questionborder">solid</questionborderstyle>
|
|
||||||
<questiondropdown type="buttons" category="Questions" width="4" title="Question dropdown shadow" options="on|hover|off" optionlabels="Always|On hover only|None" parent="questionborder">hover</questiondropdown>
|
|
||||||
<questionborderradiusTL type="duration" category="Questions" width="4" title="Border radius top left" parent="questionborder">5px</questionborderradiusTL>
|
|
||||||
<questionborderradiusTR type="duration" category="Questions" width="4" title="Border radius top right" parent="questionborder">5px</questionborderradiusTR>
|
|
||||||
<questionborderradiusBL type="duration" category="Questions" width="4" title="Border radius bottom left" parent="questionborder">5px</questionborderradiusBL>
|
|
||||||
<questionborderradiusBR type="duration" category="Questions" width="4" title="Border radius bottom right" parent="questionborder">5px</questionborderradiusBR>
|
|
||||||
<checkboxcolor type="colorpicker" category="Questions" width="4" title="Checkbox/radiobutton color (when checked)" options="on|off" optionlabels="Yes|No">#ff005f</checkboxcolor>
|
<checkboxcolor type="colorpicker" category="Questions" width="4" title="Checkbox/radiobutton color (when checked)" options="on|off" optionlabels="Yes|No">#ff005f</checkboxcolor>
|
||||||
<!-- Per-element font+color combos (Prompt U; row 178 plan P6 moves the
|
<!-- Per-element font+color combos (Prompt U; row 178 plan P6 moves the
|
||||||
buttons ones into their own tab; the answers ones moved to the
|
buttons ones into their own tab; the answers ones moved to the
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue