| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081 |
- /**
- * Loads the panel for managing system settings.
- *
- * @class MODx.panel.SystemSettings
- * @extends MODx.FormPanel
- * @param {Object} config An object of configuration properties
- * @xtype modx-panel-system-settings
- */
- MODx.panel.SystemSettings = function(config) {
- config = config || {};
- Ext.applyIf(config,{
- id: 'modx-panel-system-settings'
- ,cls: 'container'
- ,bodyStyle: ''
- ,defaults: { collapsible: false ,autoHeight: true }
- ,items: [{
- html: _('system_settings')+' & '+_('events')
- ,id: 'modx-system-settings-header'
- ,xtype: 'modx-header'
- },MODx.getPageStructure([{
- title: _('system_settings')
- ,autoHeight: true
- ,layout: 'form'
- ,defaults: { border: false ,msgTarget: 'side' }
- ,items:[{
- layout: 'form'
- ,autoHeight: true
- ,defaults: { border: false }
- ,items: [{
- html: '<p>'+_('settings_desc')+'</p>'
- ,xtype: 'modx-description'
- },{
- xtype: 'modx-grid-system-settings'
- ,cls: 'main-wrapper'
- ,preventSaveRefresh: true
- },{
- html: MODx.onSiteSettingsRender
- }]
- }]
- },{
- title: _('system_events')
- ,autoHeight: true
- ,layout: 'form'
- ,defaults: { border: false ,msgTarget: 'side' }
- ,items:[{
- layout: 'form'
- ,autoHeight: true
- ,defaults: { border: false }
- ,items: [{
- html: '<p>'+_('system_events.desc')+'</p>'
- ,xtype: 'modx-description'
- },{
- xtype: 'modx-grid-system-event'
- ,cls: 'main-wrapper'
- ,preventSaveRefresh: true
- }]
- }]
- }],{
- id: 'modx-context-tabs'
- })]
- });
- MODx.panel.SystemSettings.superclass.constructor.call(this,config);
- };
- Ext.extend(MODx.panel.SystemSettings,MODx.FormPanel);
- Ext.reg('modx-panel-system-settings',MODx.panel.SystemSettings);
- /**
- * Loads a grid of System Settings
- *
- * @class MODx.grid.SystemSettings
- * @extends MODx.grid.Grid
- * @param {Object} config An object of options.
- * @xtype modx-grid-system-settings
- */
- MODx.grid.SystemSettings = function(config) {
- config = config || {};
- MODx.grid.SystemSettings.superclass.constructor.call(this, config);
- };
- Ext.extend(MODx.grid.SystemSettings, MODx.grid.SettingsGrid);
- Ext.reg('modx-grid-system-settings', MODx.grid.SystemSettings);
|