{
- "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": [
{
"background": true,
"closable": false,
"collapsible": false,
- "height": 300,
+ "height": 450,
"modal": true,
- "resizable": false,
- "title": "Add / Edit Location Details",
- "width": 400,
+ "resizable": true,
+ "title": "Edit Translation",
+ "width": 800,
"xtype": "LayoutDialog",
"|xns": "Roo",
"items": [
{
"*prop": "center",
- "title": "This text is with {TEMPLATE VARIABLE}, PLEASE BE CAREFUL EDITING. What\\'s change?",
"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 == 'setdata') {\n //_this.dialog.el.mask(\"Loading\");\n if (_this.data.id) {\n this.load({ method: 'GET', params: { '_id' : _this.data.id }});\n }\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",
+ "|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": [
- {
- "height": 30,
- "hideLabels": true,
- "labelWidth": 100,
- "xtype": "Row",
- "|xns": "Roo.form",
- "items": [
- {
- "vtype": "url",
- "fieldLabel": "test",
- "name": "wrin_text",
- "value": "",
- "width": 200,
- "xtype": "DisplayField",
- "|xns": "Roo.form"
- }
- ]
- },
{
"labelAlign": "top",
"xtype": "Row",
"|xns": "Roo.form",
"items": [
{
- "disabled": true,
+ "readOnly": true,
"fieldLabel": "Original",
+ "height": 150,
"name": "src_id_txt",
- "value": "teststsetetsetsete",
+ "value": "",
+ "width": 750,
"xtype": "TextArea",
"|xns": "Roo.form"
}
"items": [
{
"fieldLabel": "Translation",
+ "height": 150,
"name": "txt",
+ "width": 750,
"xtype": "TextArea",
"|xns": "Roo.form"
}
},
{
"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[]",
"text": "OK",