{ "id": "roo-file-196", "name": "Pman.Dialog.CmsTranslateTemplates", "parent": "", "title": "", "path": "/home/edward/gitlive/Pman.Cms/Pman.Dialog.CmsTranslateTemplates.bjs", "items": [ { "background": true, "closable": false, "collapsible": false, "height": 450, "modal": true, "resizable": true, "title": "Edit Translation", "width": 800, "xtype": "LayoutDialog", "|xns": "Roo", "items": [ { "*prop": "center", "titlebar": true, "xtype": "LayoutRegion", "|title": "\"Note: If the original text contains template variables like {TEMPLATE_VARIABLE}
Be careful to retain them otherwise the translation may not work\"", "|xns": "Roo" }, { "xtype": "ContentPanel", "background": true, "fitToFrame": true, "region": "center", "listeners": {}, "|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 == 'setdata') {\n //_this.dialog.el.mask(\"Loading\");\n \n Roo.log(_this.data);\n return;\n }\n if (action.type == 'load') {\n return;\n }\n if (action.type =='submit') {\n _this.dialog.hide();\n if (_this.callback) {\n _this.callback.call(_this, _this.form.getValues());\n }\n _this.form.reset();\n return;\n }\n}\n", "|rendered": "function (form)\n{\n _this.form = form;\n}" }, "method": "POST", "style": "margin: 5px", "xtype": "Form", "|xns": "Roo.form", "items": [ { "labelAlign": "top", "xtype": "Row", "|xns": "Roo.form", "items": [ { "readOnly": true, "fieldLabel": "Original", "height": 150, "name": "src_id_txt", "value": "", "width": 750, "xtype": "TextArea", "|xns": "Roo.form" } ] }, { "labelAlign": "top", "xtype": "Row", "|xns": "Roo.form", "items": [ { "fieldLabel": "Translation", "height": 150, "name": "txt", "width": 750, "xtype": "TextArea", "|xns": "Roo.form" } ] } ] } ] }, { "text": "Cancel", "xtype": "Button", "|xns": "Roo", "listeners": { "|click": "function() {\n _this.form.reset();\n _this.dialog.hide();\n}" }, "*prop": "buttons[]" }, { "listeners": { "|click": "function() {\n _this.dialog.el.mask(\"Saving\");\n //_this.form.doAction('submit');\n _this.dialog.hide();\n if (_this.callback) {\n _this.callback.call(_this, _this.form.getValues());\n }\n _this.dialog.el.unmask();\n _this.form.reset();\n}" }, "*prop": "buttons[]", "text": "OK", "xtype": "Button", "|xns": "Roo" } ] } ], "permname": "", "modOrder": "001" }