feat: reorder section & settings tabs

This commit is contained in:
divocat
2025-10-09 22:19:16 +03:00
parent 9e0135983f
commit 34404f6e40

View File

@@ -23,6 +23,14 @@ const EntryPoint = {
// Enable tab views
podkopMap.tabbed = true;
// Sections tab
const sectionsSection = podkopMap.section(form.TypedSection, 'section', _('Sections'));
sectionsSection.anonymous = false;
sectionsSection.addremove = true;
sectionsSection.template = 'cbi/simpleform';
// Render section content
section.createSectionContent(sectionsSection);
// Settings tab
const settingsSection = podkopMap.section(form.TypedSection, 'settings', _('Settings'));
@@ -35,16 +43,6 @@ const EntryPoint = {
settings.createSettingsContent(settingsSection);
// Sections tab
const sectionsSection = podkopMap.section(form.TypedSection, 'section', _('Sections'));
sectionsSection.anonymous = false;
sectionsSection.addremove = true;
sectionsSection.template = 'cbi/simpleform';
// Render section content
section.createSectionContent(sectionsSection);
// Dashboard tab
const dashboardSection = podkopMap.section(form.TypedSection, 'dashboard', _('Dashboard'));
dashboardSection.anonymous = true;