Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Different panel templates in the manager panel #14663

Open
Ruslan-Aleev opened this issue Aug 10, 2019 · 0 comments

Comments

@Ruslan-Aleev
Copy link
Contributor

commented Aug 10, 2019

Bug report

Summary

MODX has different panel design templates for some sections of the manager panel: some with a top tab, some without (see screen below). And because of the different templates, the styles are not correct displayed.

We need to add a tab to all panels so that the styles display correctly and make it easier to edit style in the future.

template_panel


This is not difficult, for example, for the "Namespaces" section (/manager/assets/modext/workspace/namespace/modx.namespace.panel.js) need change:

...

,items: [{
    html: _('namespaces')
    ,id: 'modx-namespaces-header'
    ,xtype: 'modx-header'
},{
    layout: 'form'
    ,items: [{
        html: '<p>'+_('namespaces_desc')+'</p>'
        ,xtype: 'modx-description'
    },{
        xtype: 'modx-grid-namespace'
		,cls:'main-wrapper'
        ,preventRender: true
    }]
}]

...

to:

...

,items: [{
    html: _('namespaces')
    ,id: 'modx-namespaces-header'
    ,xtype: 'modx-header'
},MODx.getPageStructure([{
    title: _('namespaces')
    ,layout: 'form'
    ,items: [{
        html: '<p>'+_('namespaces_desc')+'</p>'
        ,xtype: 'modx-description'
    },{
        xtype: 'modx-grid-namespace'
        ,cls:'main-wrapper'
        ,preventRender: true
    }]
}])]

...

Environment

MODX 2.7>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.