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:
Tammo ter Hark 2026-11-29 16:05:39 +01:00
commit 52bd169335

View file

@ -18,8 +18,13 @@
#}
{# THEME ADDITION: help texts use the answers font (config.xml option "answersfont",
type fontselect). "base" = same as the base font: no extra class, inherits body font. #}
type fontselect). "base" = same as the base font: no extra class, inherits body font.
Row 195: the dedicated help font (config.xml option "questionhelpfont", type
fontselect) wins when set to something other than "base"; otherwise the answers
font is used as before. #}
{% set sHelpFont = aSurveyInfo.options.questionhelpfont|default('') %}
{% set sAnswersFont = aSurveyInfo.options.answersfont|default('base') %}
{% set sUsedFont = (sHelpFont != '' and sHelpFont != 'base') ? sHelpFont : sAnswersFont %}
{# Prompt U: per-element text color — mode default -> fontcolor, primary ->
primarycolor, secondary -> secondarycolor, other -> answerstextcolorcustom.
Emitted as an inline style on the element below. #}
@ -29,7 +34,7 @@
{% set sAnswersTextColor = sAnswersTextColorMode matches '/^#[0-9a-fA-F]{3,8}$/' ? sAnswersTextColorMode : (sAnswersTextColorMode == 'color1' or sAnswersTextColorMode == 'primary' ? oA.primarycolor|default('') : (sAnswersTextColorMode == 'color2' or sAnswersTextColorMode == 'secondary' ? oA.secondarycolor|default('') : (sAnswersTextColorMode == 'color3' ? oA.tertiarycolor|default('') : (sAnswersTextColorMode == 'defaultbackgroundcolor' ? oA.defaultbackgroundcolor|default('') : (sAnswersTextColorMode == 'other' ? oA.answerstextcolorcustom|default('') : oA.fontcolor|default('')))))) %}
<!-- Survey question help -->
<div class="{{ aSurveyInfo.class.helpcontainer }} text-info col-12 {% if sAnswersFont != 'base' %}font-{{ sAnswersFont }}{% endif %}" {% if sAnswersTextColor != '' %}style="color: {{ sAnswersTextColor }};"{% endif %} {{ aSurveyInfo.attr.helpcontainer }}>
<div class="{{ aSurveyInfo.class.helpcontainer }} text-info col-12 {% if sUsedFont != 'base' %}font-{{ sUsedFont }}{% endif %}" {% if sAnswersTextColor != '' %}style="color: {{ sAnswersTextColor }};"{% endif %} {{ aSurveyInfo.attr.helpcontainer }}>
{% if aQuestion.help.show %}
<div class="{{ aSurveyInfo.class.lsquestionhelp }}">
{{ aQuestion.help.text | raw }}