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
1 changed files with 69 additions and 36 deletions
|
|
@ -317,7 +317,9 @@
|
|||
{# row 186 / plan P4: the help keys moved into their own "Question help" section
|
||||
(aQSlots above) — legacy column 1 is empty now #}
|
||||
{% 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'] %}
|
||||
{# 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
|
||||
|
|
@ -332,7 +334,8 @@
|
|||
{ 'id': 'overall', 'h3': 'Overall question', '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': '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 = {
|
||||
'questiondistance': 'overall:0', 'questiondistancebottom': 'overall:0',
|
||||
|
|
@ -342,7 +345,11 @@
|
|||
'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'
|
||||
'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
|
||||
|
|
@ -749,6 +756,10 @@
|
|||
col-12 col-md-<width> INSIDE the col-md-6 slot column, i.e. only
|
||||
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 %}
|
||||
{# 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) #}
|
||||
{% 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
|
||||
|
|
@ -781,6 +792,10 @@
|
|||
{# row 149: horizontal line inside column 1 of the Page background pane,
|
||||
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 %}
|
||||
{# 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 %}"
|
||||
{% 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
|
||||
|
|
|
|||
Loading…
Reference in a new issue