fix(options): Questions tab row-195 corrections — 3-col help section, checkbox chooser in answers col 2, radius subcolumns
- Help section now 3 col-md-4 columns: col 1 = new questionhelpfont fontselect + questionhelpfontcolor (plain picker per decision 8), col 2 = help background chooser + custom, col 3 = help text position; questionhelpfont applied in survey_question_help.twig (falls back to answersfont on base) - checkboxcolor became a standard 6-way color chooser + checkboxcolorcustom (default other + #ff005f, look unchanged) and moved to column 2 of the 'Answer options and subquestions' section; resolved via cmm.cm() in custom_header.twig (legacy hex passthrough); legacy col 3 removed - Border radii now form two subcolumns: border-start vertical divider on the right subcolumn (TR/BR), hr between the two rows kept - chooser key lists synced in options.twig/options.js/build.php (+checkboxcolor) Generated by Mistral Vibe. Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
This commit is contained in:
parent
aae3112981
commit
52bd169335
2 changed files with 95 additions and 56 deletions
|
|
@ -36,9 +36,10 @@ var ThemeOptions = function () {
|
|||
// (questiontitletextcolor, questiontitlebackgroundcolor, questionbackgroundcolor);
|
||||
// row 184 / plan P3: answerstextcolor as well; row 186 / plan P4:
|
||||
// questionhelpbackgroundcolor as well; row 191 / plan P6: the six per-button
|
||||
// choosers (previous/next/submit button background + text color).
|
||||
// choosers (previous/next/submit button background + text color); row 195:
|
||||
// checkboxcolor as well.
|
||||
// Must stay in sync with aColorChooserKeys in options/options.twig.
|
||||
var aColorChooserKeys = ['navbarfontcolor', 'headerbackgroundcolor', 'progressbarcolor', 'progressbarbackgroundcolor', 'progressbarfontcolor', 'bodybackgroundcolor', 'grouptitletextcolor', 'groupdescriptiontextcolor', 'questiontitletextcolor', 'questiontitlebackgroundcolor', 'questionbackgroundcolor', 'answerstextcolor', 'questionhelpbackgroundcolor', 'previousbuttonbackgroundcolor', 'previousbuttontextcolor', 'nextbuttonbackgroundcolor', 'nextbuttontextcolor', 'submitbuttonbackgroundcolor', 'submitbuttontextcolor'];
|
||||
var aColorChooserKeys = ['navbarfontcolor', 'headerbackgroundcolor', 'progressbarcolor', 'progressbarbackgroundcolor', 'progressbarfontcolor', 'bodybackgroundcolor', 'grouptitletextcolor', 'groupdescriptiontextcolor', 'questiontitletextcolor', 'questiontitlebackgroundcolor', 'questionbackgroundcolor', 'answerstextcolor', 'questionhelpbackgroundcolor', 'checkboxcolor', 'previousbuttonbackgroundcolor', 'previousbuttontextcolor', 'nextbuttonbackgroundcolor', 'nextbuttontextcolor', 'submitbuttonbackgroundcolor', 'submitbuttontextcolor'];
|
||||
// the 5 presets, in the SAME order as the dropdown options in config.xml
|
||||
// (object key order = swatch chip order) — row 125: "Default background color"
|
||||
// is the SECOND choice, right after "Default font color".
|
||||
|
|
|
|||
|
|
@ -293,7 +293,7 @@
|
|||
row 184 / plan P3: answerstextcolor as well; row 186 / plan P4:
|
||||
questionhelpbackgroundcolor as well. Must stay in sync with
|
||||
aColorChooserKeys in options/options.js. #}
|
||||
{% set aColorChooserKeys = ['navbarfontcolor', 'headerbackgroundcolor', 'progressbarcolor', 'progressbarbackgroundcolor', 'progressbarfontcolor', 'bodybackgroundcolor', 'grouptitletextcolor', 'groupdescriptiontextcolor', 'questiontitletextcolor', 'questiontitlebackgroundcolor', 'questionbackgroundcolor', 'answerstextcolor', 'questionhelpbackgroundcolor', 'previousbuttonbackgroundcolor', 'previousbuttontextcolor', 'nextbuttonbackgroundcolor', 'nextbuttontextcolor', 'submitbuttonbackgroundcolor', 'submitbuttontextcolor'] %}
|
||||
{% set aColorChooserKeys = ['navbarfontcolor', 'headerbackgroundcolor', 'progressbarcolor', 'progressbarbackgroundcolor', 'progressbarfontcolor', 'bodybackgroundcolor', 'grouptitletextcolor', 'groupdescriptiontextcolor', 'questiontitletextcolor', 'questiontitlebackgroundcolor', 'questionbackgroundcolor', 'answerstextcolor', 'questionhelpbackgroundcolor', 'checkboxcolor', 'previousbuttonbackgroundcolor', 'previousbuttontextcolor', 'nextbuttonbackgroundcolor', 'nextbuttontextcolor', 'submitbuttonbackgroundcolor', 'submitbuttontextcolor'] %}
|
||||
|
||||
{% set aShowIfValues = { 'questionborder': 'box|top', 'navbarfontcolor': 'other' } %}
|
||||
{% for el in aFontElements %}{% set aShowIfValues = aShowIfValues|merge({ (el ~ 'textcolor'): 'other' }) %}{% endfor %}
|
||||
|
|
@ -320,7 +320,9 @@
|
|||
{# 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'] %}
|
||||
{# row 195: checkboxcolor moved into the answers section (answers:1 below) —
|
||||
legacy column 3 is empty now #}
|
||||
{% set aQuestionsCol3 = [] %}
|
||||
{# 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
|
||||
sections (id, h3, colClass); aQSlots maps each option key to "sectionId:colIndex".
|
||||
|
|
@ -344,8 +346,10 @@
|
|||
'questiontitlebackgroundcolor': 'title:1', 'questiontitlebackgroundcolorcustom': 'title:1',
|
||||
'questionbackgroundcolor': 'title:2', 'questionbackgroundcolorcustom': 'title:2',
|
||||
'answersfont': 'answers:0', 'answerstextcolor': 'answers:0', 'answerstextcolorcustom': 'answers:0',
|
||||
'questionhelpbackgroundcolor': 'help:0', 'questionhelpbackgroundcolorcustom': 'help:0',
|
||||
'questionhelpfontcolor': 'help:0', 'questionhelptextposition': 'help:0',
|
||||
'checkboxcolor': 'answers:1', 'checkboxcolorcustom': 'answers:1',
|
||||
'questionhelpfont': 'help:0', 'questionhelpfontcolor': 'help:0',
|
||||
'questionhelpbackgroundcolor': 'help:1', 'questionhelpbackgroundcolorcustom': 'help:1',
|
||||
'questionhelptextposition': 'help:2',
|
||||
'questionborder': 'border:0',
|
||||
'questionbordercolor': 'border:1', 'questionborderstyle': 'border:1', 'questiondropdown': 'border:1',
|
||||
'questionborderradiusTL': 'border:2', 'questionborderradiusTR': 'border:2',
|
||||
|
|
@ -792,8 +796,10 @@
|
|||
{% if bQuestionsPane or bTopPane or bGroupsPane or bImagesPane or bButtonsPane 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 %}
|
||||
wrappers are half the column (col-md-6) instead of col-12.
|
||||
Row 195: the two radius subcolumns get a vertical divider —
|
||||
the right subcolumn (TR / BR) carries border-start #}
|
||||
{% if bQuestionsPane and key starts with 'questionborderradius' %}{% set wrapClass = 'col-12 col-md-6' %}{% if key == 'questionborderradiusTR' or key == 'questionborderradiusBR' %}{% set wrapClass = wrapClass ~ ' border-start' %}{% endif %}{% endif %}
|
||||
{# 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] : '')) %}
|
||||
{# parent != '': this field is only visible when the parent option's value
|
||||
|
|
|
|||
Loading…
Reference in a new issue