home.panel.js 1.2 KB

12345678910111213141516171819202122232425262728293031323334
  1. collections.panel.TemplateHome = function(config) {
  2. config = config || {};
  3. Ext.apply(config,{
  4. border: false
  5. ,baseCls: 'modx-formpanel'
  6. ,cls: 'container'
  7. ,items: [{
  8. html: '<h2>'+_('collections.template.page_title')+'</h2>'
  9. ,border: false
  10. ,cls: 'modx-page-header'
  11. },{
  12. xtype: 'modx-tabs'
  13. ,defaults: { border: false ,autoHeight: true }
  14. ,border: true
  15. ,activeItem: 0
  16. ,hideMode: 'offsets'
  17. ,items: [{
  18. title: _('collections.template.templates')
  19. ,items: [{
  20. html: '<p>'+_('collections.template.templates_desc')+'</p>'
  21. ,border: false
  22. ,bodyCssClass: 'panel-desc'
  23. },{
  24. xtype: 'collections-grid-template'
  25. ,preventRender: true
  26. ,cls: 'main-wrapper'
  27. }]
  28. }]
  29. }]
  30. });
  31. collections.panel.TemplateHome.superclass.constructor.call(this,config);
  32. };
  33. Ext.extend(collections.panel.TemplateHome,MODx.Panel);
  34. Ext.reg('collections-panel-template-home',collections.panel.TemplateHome);