feat(options): rename "Simple options" tab to "Other options" and move it to the end
The config.xml "Simple options" category now renders as the "Other options" tab, appended after all other category tabs (tab id kept as category-simple-options so the stored tab preference stays valid). Generated by Mistral Vibe. Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
This commit is contained in:
parent
11a617a29b
commit
efa2cf53f3
1 changed files with 15 additions and 2 deletions
|
|
@ -15,7 +15,8 @@
|
||||||
Tab order: the "Fonts" category tab is FIRST (default font + per-element font
|
Tab order: the "Fonts" category tab is FIRST (default font + per-element font
|
||||||
overrides), then the "Top of the page" tab, then the "Page background" tab (the
|
overrides), then the "Top of the page" tab, then the "Page background" tab (the
|
||||||
config.xml "Images" category), then the "Groups" tab (all group-related options
|
config.xml "Images" category), then the "Groups" tab (all group-related options
|
||||||
of the "Questions" category), then the other remaining categories.
|
of the "Questions" category), then the other remaining categories, and LAST the
|
||||||
|
"Other options" tab (the config.xml "Simple options" category).
|
||||||
|
|
||||||
Exception: the options that make up the TOP OF THE PAGE (header menu, logos,
|
Exception: the options that make up the TOP OF THE PAGE (header menu, logos,
|
||||||
header colors, progress bar) are pulled out of their config.xml categories
|
header colors, progress bar) are pulled out of their config.xml categories
|
||||||
|
|
@ -319,7 +320,7 @@
|
||||||
normal width-based grid instead of the Questions 3-column layout. #}
|
normal width-based grid instead of the Questions 3-column layout. #}
|
||||||
{% set aTabs = aTabs|merge([{ 'id': 'groups', 'label': 'Groups', 'category': 'Groups', 'keys': aGroupKeys }]) %}
|
{% set aTabs = aTabs|merge([{ 'id': 'groups', 'label': 'Groups', 'category': 'Groups', 'keys': aGroupKeys }]) %}
|
||||||
{% for category in aOptionAttributes.categories %}
|
{% for category in aOptionAttributes.categories %}
|
||||||
{% if category != 'Fonts' and category != 'Top of the page' and category != 'Colors' and category != 'Images' %}
|
{% if category != 'Fonts' and category != 'Top of the page' and category != 'Colors' and category != 'Images' and category != 'Simple options' %}
|
||||||
{# The "Colors" tab is removed on purpose. Its only remaining options are
|
{# The "Colors" tab is removed on purpose. Its only remaining options are
|
||||||
sliderhandlecolor and privacybackgroundcolor (the other Colors keys are
|
sliderhandlecolor and privacybackgroundcolor (the other Colors keys are
|
||||||
pulled into "Top of the page" via aTopOfPageKeys) — TODO: place these two
|
pulled into "Top of the page" via aTopOfPageKeys) — TODO: place these two
|
||||||
|
|
@ -338,6 +339,18 @@
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
{# row 148: the "Simple options" category renders as "Other options", LAST in the
|
||||||
|
tab row (id kept as 'category-simple-options' so the stored tab preference
|
||||||
|
stays valid) #}
|
||||||
|
{% set aSimpleKeys = [] %}
|
||||||
|
{% for key, attr in aOptionAttributes.optionAttributes %}
|
||||||
|
{% if key != 'ajaxmode' and attr.category == 'Simple options' and key not in aTopOfPageKeys and key not in aGroupKeys %}
|
||||||
|
{% set aSimpleKeys = aSimpleKeys|merge([key]) %}
|
||||||
|
{% endif %}
|
||||||
|
{% endfor %}
|
||||||
|
{% if aSimpleKeys is not empty %}
|
||||||
|
{% set aTabs = aTabs|merge([{ 'id': 'category-simple-options', 'label': 'Other options', 'category': 'Simple options', 'keys': null }]) %}
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
<ul class="nav nav-tabs mt-3" role="tablist">
|
<ul class="nav nav-tabs mt-3" role="tablist">
|
||||||
{% for tab in aTabs %}
|
{% for tab in aTabs %}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue