mirror of
https://github.com/itdoginfo/podkop.git
synced 2025-12-06 03:26:51 +03:00
feat: reorder section & settings tabs
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user