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