MODx.grid.TemplateTV=function(A){A=A||{};var B=new Ext.ux.grid.CheckColumn({header:_("access"),dataIndex:"access",width:70,sortable:false});Ext.applyIf(A,{title:_("template_assignedtv_tab"),id:"modx-grid-template-tv",url:MODx.config.connectors_url+"element/template/tv.php",fields:["id","name","description","tv_rank","access"],baseParams:{action:"getList",template:A.template},saveParams:{template:A.template},width:800,paging:true,plugins:B,remoteSort:true,columns:[{header:_("name"),dataIndex:"name",width:150,editor:{xtype:"textfield",allowBlank:false},sortable:true},{header:_("description"),dataIndex:"description",width:350,editor:{xtype:"textfield"},sortable:false},B,{header:_("rank"),dataIndex:"tv_rank",width:100,editor:{xtype:"textfield",allowBlank:false},sortable:true}]});MODx.grid.TemplateTV.superclass.constructor.call(this,A);};Ext.extend(MODx.grid.TemplateTV,MODx.grid.Grid);Ext.reg("modx-grid-template-tv",MODx.grid.TemplateTV);