From efa2cf53f39a40b85f0aee741397387e0dfef442 Mon Sep 17 00:00:00 2001 From: Tammo ter Hark Date: Thu, 26 Nov 2026 20:42:11 +0100 Subject: [PATCH] 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 --- options/options.twig | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/options/options.twig b/options/options.twig index 69335f5..d8cb251 100644 --- a/options/options.twig +++ b/options/options.twig @@ -15,7 +15,8 @@ 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 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, 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. #} {% set aTabs = aTabs|merge([{ 'id': 'groups', 'label': 'Groups', 'category': 'Groups', 'keys': aGroupKeys }]) %} {% 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 sliderhandlecolor and privacybackgroundcolor (the other Colors keys are pulled into "Top of the page" via aTopOfPageKeys) — TODO: place these two @@ -338,6 +339,18 @@ {% endif %} {% endif %} {% 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 %}