lexicon.panel.js 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. /**
  2. * Loads the panel for managing lexicons.
  3. *
  4. * @class MODx.panel.Lexicon
  5. * @extends MODx.FormPanel
  6. * @param {Object} config An object of configuration properties
  7. * @xtype modx-panel-lexicon
  8. */
  9. MODx.panel.Lexicon = function(config) {
  10. config = config || {};
  11. Ext.applyIf(config,{
  12. id: 'modx-panel-lexicon'
  13. ,cls: 'container'
  14. ,itemId: 'panel-lexicon'
  15. ,bodyStyle: ''
  16. ,defaults: { autoHeight: true, collapsible: false }
  17. ,items: [{
  18. html: _('lexicon_management')
  19. ,id: 'modx-lexicon-header'
  20. ,itemId: 'lexicon-header'
  21. ,xtype: 'modx-header'
  22. },MODx.getPageStructure([{
  23. title: _('lexicon_management')
  24. ,layout: 'form'
  25. ,items: [{
  26. html: '<p>'+_('lexicon_management_desc')+'</p>'
  27. ,xtype: 'modx-description'
  28. },{
  29. xtype: 'modx-grid-lexicon'
  30. ,itemId: 'grid-lexicon'
  31. ,cls: 'main-wrapper'
  32. ,title: ''
  33. ,preventRender: true
  34. }]
  35. }])]
  36. });
  37. MODx.panel.Lexicon.superclass.constructor.call(this,config);
  38. };
  39. Ext.extend(MODx.panel.Lexicon,MODx.FormPanel);
  40. Ext.reg('modx-panel-lexicon',MODx.panel.Lexicon);