1 //<script type="text/javascript">
3 // Auto generated file - created by app.Builder.js- do not edit directly (at present!)
5 Roo.namespace('Pman.Tab');
7 Pman.Tab.CmsCategoryType = new Roo.XComponent({
10 '8a50fa0a4557af5018e28054386cde1f' :"Category Types",
11 '512c3cbbc9d4e8f23edae03d7abc434e' :"No cms_category_type found",
12 'ec211f7c20af43e742bf2570c3cb84f9' :"Add",
13 '093a223e9365cd2675ea9389f321f640' :"Displaying cms_category_type{0} - {1} of {2}",
14 '7dce122004969d56ae2e0245cb754d35' :"Edit",
15 'f2a6c498fb90ee345d997f888fce3b18' :"Delete",
16 '49ee3087348e8d44e1feda1917443987' :"Name"
19 part : ["Cms", "CategoryType" ],
20 order : '001-Pman.Tab.CmsCategoryType',
22 parent : 'Pman.Tab.Cms',
23 name : "Pman.Tab.CmsCategoryType",
35 tableName : 'cms_category_type',
36 title : _this._strings['8a50fa0a4557af5018e28054386cde1f'] /* Category Types */,
41 activate : function() {
44 _this.grid.footer.onClick('first');
50 autoExpandColumn : 'name',
59 _this.dialog = Pman.Dialog.CmsCategoryType;
60 if (_this.panel.active) {
61 this.footer.onClick('first');
64 rowdblclick : function (_self, rowIndex, e)
69 _this.dialog.show( this.getDataSource().getAt(rowIndex), function() {
70 _this.grid.footer.onClick('first');
76 displayMsg : _this._strings['093a223e9365cd2675ea9389f321f640'] /* Displaying cms_category_type{0} - {1} of {2} */,
77 emptyMsg : _this._strings['512c3cbbc9d4e8f23edae03d7abc434e'] /* No cms_category_type found */,
81 xtype : 'PagingToolbar'
90 '|xns' : 'Roo.Toolbar',
94 cls : 'x-btn-text-icon',
95 icon : Roo.rootURL + 'images/default/dd/drop-add.gif',
96 text : _this._strings['ec211f7c20af43e742bf2570c3cb84f9'] /* Add */,
98 '|xns' : 'Roo.Toolbar',
106 _this.dialog.show( { id : 0 } , function() {
107 _this.grid.footer.onClick('first');
113 cls : 'x-btn-text-icon',
114 icon : Roo.rootURL + 'images/default/tree/leaf.gif',
115 text : _this._strings['7dce122004969d56ae2e0245cb754d35'] /* Edit */,
117 '|xns' : 'Roo.Toolbar',
122 var s = _this.grid.getSelectionModel().getSelections();
123 if (!s.length || (s.length > 1)) {
124 Roo.MessageBox.alert("Error", s.length ? "Select only one Row" : "Select a Row");
130 _this.dialog.show(s[0].data, function() {
131 _this.grid.footer.onClick('first');
138 cls : 'x-btn-text-icon',
139 icon : rootURL + '/Pman/templates/images/trash.gif',
140 text : _this._strings['f2a6c498fb90ee345d997f888fce3b18'] /* Delete */,
142 '|xns' : 'Roo.Toolbar',
147 Pman.genericDelete(_this, 'cms_category_type');
155 sortInfo : { field : 'name', direction: 'ASC' },
161 url : baseURL + '/Roo/cms_category_type.php',
179 totalProperty : 'total',
188 header : _this._strings['49ee3087348e8d44e1feda1917443987'] /* Name */,
189 renderer : function(v) { return String.format('{0}', v); },
193 xtype : 'ColumnModel'