refactor(options): rename the 'Top of the page' tab to 'Header'
Row 161. Tab label and config.xml category both become 'Header' (standing rule row 160: category = tab label), so the core options renderer also shows a 'Header' tab. The tab id stays 'top-of-page' so stored tab preferences and the options.js #top-of-page hook keep working. Generated by Mistral Vibe. Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
This commit is contained in:
parent
cafa8fe116
commit
d05b5ce226
1 changed files with 49 additions and 49 deletions
|
|
@ -13,7 +13,7 @@
|
|||
dropdown plus "Same as base font"; see the branch below.)
|
||||
|
||||
Tab order: the "Default fonts and colors" category tab is FIRST (default font +
|
||||
per-element font overrides), then the "Top of the page" tab, then the "Page
|
||||
per-element font overrides), then the "Header" tab, then the "Page
|
||||
background" tab, then the "Groups" tab, then the other remaining categories,
|
||||
and LAST the "Other options" tab.
|
||||
|
||||
|
|
@ -297,7 +297,7 @@
|
|||
{% set aGroupCol2 = ['groupdescriptionfont', 'groupdescriptiontextcolor', 'groupdescriptiontextcolorcustom', 'groupdescriptionfontsize', 'groupdescriptionfontoptions'] %}
|
||||
|
||||
{# Tab list: FIRST the "Default fonts and colors" tab (where the default/base font
|
||||
is chosen and the per-element font overrides live), then the "Top of the page"
|
||||
is chosen and the per-element font overrides live), then the "Header" tab
|
||||
tab (keys = aTopOfPageKeys), then row 147: the "Page background" tab (the
|
||||
config.xml "Page background" category, id kept as 'category-images' so the
|
||||
stored tab preference stays valid), then the "Groups" tab (keys = aGroupKeys),
|
||||
|
|
@ -308,9 +308,9 @@
|
|||
{% if 'Default fonts and colors' in aOptionAttributes.categories %}
|
||||
{% set aTabs = [{ 'id': 'category-fonts', 'label': 'Default fonts and colors', 'category': 'Default fonts and colors', 'keys': null }] %}
|
||||
{% endif %}
|
||||
{% set aTabs = aTabs|merge([{ 'id': 'top-of-page', 'label': 'Top of the page', 'category': 'Top of the page', 'keys': aTopOfPageKeys }]) %}
|
||||
{% set aTabs = aTabs|merge([{ 'id': 'top-of-page', 'label': 'Header', 'category': 'Header', 'keys': aTopOfPageKeys }]) %}
|
||||
{# row 147/159: "Page background" category -> the Page background tab, directly after
|
||||
Top of the page #}
|
||||
Header tab #}
|
||||
{% set aImagesKeys = [] %}
|
||||
{% for key, attr in aOptionAttributes.optionAttributes %}
|
||||
{% if key != 'ajaxmode' and attr.category == 'Page background' and key not in aTopOfPageKeys %}
|
||||
|
|
@ -329,10 +329,10 @@
|
|||
slot layout below instead of the Questions 3-column grid. #}
|
||||
{% set aTabs = aTabs|merge([{ 'id': 'groups', 'label': 'Groups', 'category': 'Groups', 'keys': aGroupKeys }]) %}
|
||||
{% for category in aOptionAttributes.categories %}
|
||||
{% if category != 'Default fonts and colors' and category != 'Top of the page' and category != 'Colors' and category != 'Page background' and category != 'Groups' and category != 'Other options' %}
|
||||
{% if category != 'Default fonts and colors' and category != 'Header' and category != 'Colors' and category != 'Page background' and category != 'Groups' and category != 'Other options' %}
|
||||
{# The "Colors" tab is removed on purpose. Its only remaining options are
|
||||
sliderhandlecolor and privacybackgroundcolor (the other Colors keys carry
|
||||
category "Top of the page" now) — TODO: place these two
|
||||
category "Header" now) — TODO: place these two
|
||||
options on another tab. #}
|
||||
{# Resolve this category's keys once and skip the tab entirely when none
|
||||
remain: e.g. "Progress" — its only option (progressbarposition)
|
||||
|
|
@ -387,10 +387,10 @@
|
|||
{% endfor %}
|
||||
{% else %}
|
||||
{# the top-of-page tab also picks up options that literally carry the
|
||||
category "Top of the page" (so config.xml may use it after a reset) #}
|
||||
category "Header" (so config.xml may use it after a reset) #}
|
||||
{% if tab.id == 'top-of-page' %}
|
||||
{% for key, attr in aOptionAttributes.optionAttributes %}
|
||||
{% if key != 'ajaxmode' and attr.category == 'Top of the page' and key not in aTabKeys %}
|
||||
{% if key != 'ajaxmode' and attr.category == 'Header' and key not in aTabKeys %}
|
||||
{% set aTabKeys = aTabKeys|merge([key]) %}
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
|
|
@ -866,7 +866,7 @@
|
|||
</div>
|
||||
</div>
|
||||
{# same translatable, scope-dependent help text as under the upload
|
||||
widget in the Top of the page tab (rows 140/141) #}
|
||||
widget in the Header tab (rows 140/141) #}
|
||||
<div class="row">
|
||||
<div class="col-12">
|
||||
<div class="form-text mt-1">{% if bInherit %}{{ gT("Upload here the files for logos and background. You are in the settings for your specific survey now, so files that you upload here are available for this survey only. If you want a file to be available for all surveys, upload it at the global theme settings options page.") }}{% else %}{{ gT("Upload here the files for logos and background. You are in global settings now, so files that you upload here are available for all surveys. If you want a file to be available only for your specific survey, upload it at the theme settings options page for that specific survey.") }}{% endif %}</div>
|
||||
|
|
|
|||
Loading…
Reference in a new issue