feat(options): Questions tab as 3 columns with conditional border options + new questionhelpfontcolor (Prompt R)
config.xml: Questions options reordered into the three pane columns (col1 colors+help, col2 border + children, col3 checkbox color), all width=12; new colorpicker questionhelpfontcolor (default #444444); questionbordercolor/style/dropdown + 4 radii get parent="questionborder". options.twig: Questions pane renders three col-md-4 columns (border-start between), options stacked as col-12; aShowIfValues map carries the multi-value show list (box|top) as data-show-if-value since core passes only parent through; server-side initial d-none is multi-value aware (Prompt Q logic extended); buttons/colorpicker children now also get data-parent/selector_radio_childfield. options.js: updateVisibilityByParent and updateChild are multi-value + checked-radio aware (single-value behaviour unchanged); OPTIONS_JS_TOKEN bumped. custom_header.twig: .question-help-container gets color from questionhelpfontcolor. Generated by Mistral Vibe. Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
This commit is contained in:
parent
7e58142d35
commit
671fba4aff
1 changed files with 96 additions and 39 deletions
46
config.xml
46
config.xml
|
|
@ -140,25 +140,35 @@
|
|||
|
||||
<!-- Questions
|
||||
HOUSE-STYLE: the colorpicker options in this section (question
|
||||
title/background/help/border/checkbox colors) are house-style colors.
|
||||
NOT house-style (structural, same for all variants): questionborder,
|
||||
questionborderstyle, the borderradius values, questiondropdown and
|
||||
questionhelptextposition. -->
|
||||
title/background/help/help-font/border/checkbox colors) are house-style
|
||||
colors. NOT house-style (structural, same for all variants):
|
||||
questionborder, questionborderstyle, the borderradius values,
|
||||
questiondropdown and questionhelptextposition.
|
||||
Prompt R: order = the three columns of the Questions tab (options.twig
|
||||
renders them in this order): col1 colors+help, col2 border + its
|
||||
conditional children, col3 checkbox color. All width=12 — inside the
|
||||
pane each option stacks as col-12 in its column. 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". questionhelpfontcolor (NEW) is applied
|
||||
in custom_header.twig on .question-help-container. -->
|
||||
<!-- Questions -->
|
||||
<questiontitlebackgroundcolor type="colorpicker" category="Questions" width="6" title="Question title background color" options="on|off" optionlabels="Yes|No">#5e1c64</questiontitlebackgroundcolor>
|
||||
<questiontitlefontcolor type="colorpicker" category="Questions" width="6" title="Question title font color" options="on|off" optionlabels="Yes|No">#ffffff</questiontitlefontcolor>
|
||||
<questionbackgroundcolor type="colorpicker" category="Questions" width="6" title="Question background color (not title)" options="on|off" optionlabels="Yes|No">#ffffff</questionbackgroundcolor>
|
||||
<questionhelpbackgroundcolor type="colorpicker" category="Questions" width="6" title="Question helpbackground color" options="on|off" optionlabels="Yes|No">#fff3cd</questionhelpbackgroundcolor>
|
||||
<questionborder type="buttons" category="Questions" width="6" title="Question border" options="box|top|none" optionlabels="Box around|Top and bottom|None">box</questionborder>
|
||||
<questionborderstyle type="buttons" category="Questions" width="6" title="Question border line style" options="solid|dotted|dashed" optionlabels="Solid|Dotted|Dashed">solid</questionborderstyle>
|
||||
<questionbordercolor type="colorpicker" category="Questions" width="12" title="Question border color" options="on|off" optionlabels="Yes|No">#cccccc</questionbordercolor>
|
||||
<questionborderradiusTL type="duration" category="Questions" width="3" title="Border radius top left">5px</questionborderradiusTL>
|
||||
<questionborderradiusTR type="duration" category="Questions" width="3" title="Border radius top right">5px</questionborderradiusTR>
|
||||
<questionborderradiusBL type="duration" category="Questions" width="3" title="Border radius bottom left">5px</questionborderradiusBL>
|
||||
<questionborderradiusBR type="duration" category="Questions" width="3" title="Border radius bottom right">5px</questionborderradiusBR>
|
||||
<questiondropdown type="buttons" category="Questions" width="6" title="Question dropdown shadow" options="on|hover|off" optionlabels="Always|On hover only|None">hover</questiondropdown>
|
||||
<questionhelptextposition type="buttons" category="Questions" width="6" title="Question help text position" options="top|bottom" optionlabels="Top|Bottom">top</questionhelptextposition>
|
||||
<checkboxcolor type="colorpicker" category="Questions" width="6" title="Checkbox/radiobutton color (when checked)" options="on|off" optionlabels="Yes|No">#ff005f</checkboxcolor>
|
||||
<questiontitlebackgroundcolor type="colorpicker" category="Questions" width="12" title="Question title background color" options="on|off" optionlabels="Yes|No">#5e1c64</questiontitlebackgroundcolor>
|
||||
<questiontitlefontcolor type="colorpicker" category="Questions" width="12" title="Question title font color" options="on|off" optionlabels="Yes|No">#ffffff</questiontitlefontcolor>
|
||||
<questionbackgroundcolor type="colorpicker" category="Questions" width="12" title="Question background color (not title)" options="on|off" optionlabels="Yes|No">#ffffff</questionbackgroundcolor>
|
||||
<questionhelpbackgroundcolor type="colorpicker" category="Questions" width="12" title="Question helpbackground color" options="on|off" optionlabels="Yes|No">#fff3cd</questionhelpbackgroundcolor>
|
||||
<questionhelpfontcolor type="colorpicker" category="Questions" width="12" title="Question help font color" options="on|off" optionlabels="Yes|No">#444444</questionhelpfontcolor>
|
||||
<questionhelptextposition type="buttons" category="Questions" width="12" title="Question help text position" options="top|bottom" optionlabels="Top|Bottom">top</questionhelptextposition>
|
||||
<questionborder type="buttons" category="Questions" width="12" title="Question border" options="box|top|none" optionlabels="Box around|Top and bottom|None">box</questionborder>
|
||||
<questionbordercolor type="colorpicker" category="Questions" width="12" title="Question border color" options="on|off" optionlabels="Yes|No" parent="questionborder">#cccccc</questionbordercolor>
|
||||
<questionborderstyle type="buttons" category="Questions" width="12" title="Question border line style" options="solid|dotted|dashed" optionlabels="Solid|Dotted|Dashed" parent="questionborder">solid</questionborderstyle>
|
||||
<questiondropdown type="buttons" category="Questions" width="12" title="Question dropdown shadow" options="on|hover|off" optionlabels="Always|On hover only|None" parent="questionborder">hover</questiondropdown>
|
||||
<questionborderradiusTL type="duration" category="Questions" width="12" title="Border radius top left" parent="questionborder">5px</questionborderradiusTL>
|
||||
<questionborderradiusTR type="duration" category="Questions" width="12" title="Border radius top right" parent="questionborder">5px</questionborderradiusTR>
|
||||
<questionborderradiusBL type="duration" category="Questions" width="12" title="Border radius bottom left" parent="questionborder">5px</questionborderradiusBL>
|
||||
<questionborderradiusBR type="duration" category="Questions" width="12" title="Border radius bottom right" parent="questionborder">5px</questionborderradiusBR>
|
||||
<checkboxcolor type="colorpicker" category="Questions" width="12" title="Checkbox/radiobutton color (when checked)" options="on|off" optionlabels="Yes|No">#ff005f</checkboxcolor>
|
||||
|
||||
<!-- Progress -->
|
||||
<!-- Prompt N: listing order swapped — "In header" FIRST, then "Under header".
|
||||
|
|
|
|||
Loading…
Reference in a new issue