{
- "id": "roo-file-268",
+ "id": "roo-file-196",
"name": "Pman.Dialog.CmsTranslateTemplates",
"parent": "",
"title": "",
- "path": "/home/chris/gitlive/Pman.Cms/Pman.Dialog.CmsTranslateTemplates.bjs",
+ "path": "/home/edward/gitlive/Pman.Cms/Pman.Dialog.CmsTranslateTemplates.bjs",
"items": [
{
- "xtype": "LayoutDialog",
"background": true,
- "width": 400,
- "height": 150,
- "title": "Add / Edit Location Details",
- "listeners": {},
- "modal": true,
- "collapsible": false,
"closable": false,
- "resizable": false,
+ "collapsible": false,
+ "height": 450,
+ "modal": true,
+ "resizable": true,
+ "title": "Edit Translation",
+ "width": 800,
+ "xtype": "LayoutDialog",
"|xns": "Roo",
"items": [
{
- "xtype": "LayoutRegion",
"*prop": "center",
- "titlebar": false,
+ "titlebar": true,
+ "xtype": "LayoutRegion",
+ "|title": "\"Note: If the original text contains template variables like {TEMPLATE_VARIABLE} <br/>Be careful to retain them otherwise the translation may not work\"",
"|xns": "Roo"
},
{
{
"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 _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 }\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",
- "|url": "baseURL + '/Roo/Ris_location.php'",
"|xns": "Roo.form",
"items": [
{
- "name": "id",
- "xtype": "Hidden",
- "|xns": "Roo.form"
- },
- {
+ "labelAlign": "top",
+ "xtype": "Row",
"|xns": "Roo.form",
- "xtype": "TextArea"
+ "items": [
+ {
+ "readOnly": true,
+ "fieldLabel": "Original",
+ "height": 150,
+ "name": "src_id_txt",
+ "value": "",
+ "width": 750,
+ "xtype": "TextArea",
+ "|xns": "Roo.form"
+ }
+ ]
},
{
- "allowBlank": false,
- "fieldLabel": "Town / City",
- "name": "name",
- "width": 250,
- "xtype": "TextField",
- "|xns": "Roo.form"
- },
- {
- "fieldLabel": "Active Search",
- "name": "active_search",
- "xtype": "Checkbox",
- "|xns": "Roo.form"
+ "labelAlign": "top",
+ "xtype": "Row",
+ "|xns": "Roo.form",
+ "items": [
+ {
+ "fieldLabel": "Translation",
+ "height": 150,
+ "name": "txt",
+ "width": 750,
+ "xtype": "TextArea",
+ "|xns": "Roo.form"
+ }
+ ]
}
]
}
"*prop": "buttons[]"
},
{
- "text": "OK",
- "xtype": "Button",
- "|xns": "Roo",
"listeners": {
- "|click": "function() {\n _this.dialog.el.mask(\"Saving\");\n _this.form.doAction('submit');\n \n}"
+ "|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[]"
+ "*prop": "buttons[]",
+ "text": "OK",
+ "xtype": "Button",
+ "|xns": "Roo"
}
]
}