{ "name" : "Pman.Dialog.CmsPage", "parent" : "", "title" : "Cms -Edit Page", "path" : "/home/alan/gitlive/Pman.Cms/Pman.Dialog.CmsPage.bjs", "permname" : "", "modOrder" : "001", "items" : [ { "modal" : true, "collapsible" : false, "background" : true, "title" : "Edit Page", "xtype" : "LayoutDialog", "width" : 850, "$ xns" : "Roo", "closable" : false, "resizable" : false, "height" : 600, "items" : [ { "xtype" : "LayoutRegion", "$ xns" : "Roo", "titlebar" : false, "* prop" : "center" }, { "fitToFrame" : true, "xtype" : "LayoutRegion", "width" : 200, "$ xns" : "Roo", "titlebar" : false, "* prop" : "east" }, { "autoScroll" : true, "region" : "center", "fitToFrame" : true, "xtype" : "ContentPanel", "$ xns" : "Roo", "items" : [ { "listeners" : { "|actionfailed" : "function (_self, action)\n{\n _this.dialog.el.unmask();\n Pman.standardActionFailed(_self, action);\n}\n", "|actioncomplete" : "function (_self, action)\n{\n\n if (action.type =='submit') {\n \n _this.dialog.el.unmask();\n _this.dialog.hide();\n \n if (_this.callback) {\n _this.callback.call(_this, _this.form.getValues());\n }\n _this.form.reset();\n return;\n }\n if (action.type == 'setdata') { \n _this.loaded = false;\n \n // _this.dialog.getLayout().showPanel(0);\n // _this.form.addForm(_this.form1);\n if ( _this.data.id) {\n _this.dialog.el.mask(\"Loading\");\n this.load({ method: 'GET', params: { '_id' : _this.data.id }});\n } else {\n _this.loaded = true;\n //disable image upload!\n _this.form.findField('publish_status').setValue(-1);\n }\n\n return;\n \n }\n \n if (action.type == 'load') {\n _this.dialog.el.unmask();\n _this.grid.getDataSource().load();\n return;\n }\n}\n", "|rendered" : "function (_self)\n{\n _this.form = _self;\n}\n" }, "$ url" : "baseURL + '/Roo/Page.php'", "xtype" : "Form", "method" : "POST", "style" : "margin: 5px", "$ xns" : "Roo.form", "items" : [ { "fieldLabel" : "Page link", "xtype" : "TextField", "width" : 200, "$ xns" : "Roo.form", "name" : "page_link" }, { "listWidth" : 400, "triggerAction" : "all", "fieldLabel" : "Parent page", "forceSelection" : true, "selectOnFocus" : true, "pageSize" : 20, "displayField" : "page_link", "emptyText" : "Select Parent", "hiddenName" : "parent_id", "minChars" : 2, "valueField" : "id", "xtype" : "ComboBox", "allowBlank" : true, "typeAhead" : true, "editable" : false, "width" : 400, "$ xns" : "Roo.form", "name" : "parent_id_page_link", "qtip" : "Select Category ", "tpl" : "