mirror of
https://github.com/itdoginfo/podkop.git
synced 2026-01-27 12:50:37 +03:00
feat: reorder section & settings tabs
This commit is contained in:
@@ -23,6 +23,14 @@ const EntryPoint = {
|
|||||||
// Enable tab views
|
// Enable tab views
|
||||||
podkopMap.tabbed = true;
|
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
|
// Settings tab
|
||||||
const settingsSection = podkopMap.section(form.TypedSection, 'settings', _('Settings'));
|
const settingsSection = podkopMap.section(form.TypedSection, 'settings', _('Settings'));
|
||||||
@@ -35,16 +43,6 @@ const EntryPoint = {
|
|||||||
settings.createSettingsContent(settingsSection);
|
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
|
// Dashboard tab
|
||||||
const dashboardSection = podkopMap.section(form.TypedSection, 'dashboard', _('Dashboard'));
|
const dashboardSection = podkopMap.section(form.TypedSection, 'dashboard', _('Dashboard'));
|
||||||
dashboardSection.anonymous = true;
|
dashboardSection.anonymous = true;
|
||||||
|
|||||||
Reference in New Issue
Block a user