PHP8 fix
[Pman.Cms] / Pman.Dialog.CmsTranslateTemplates.bjs
1 {
2     "id": "roo-file-196",
3     "name": "Pman.Dialog.CmsTranslateTemplates",
4     "parent": "",
5     "title": "",
6     "path": "/home/edward/gitlive/Pman.Cms/Pman.Dialog.CmsTranslateTemplates.bjs",
7     "items": [
8         {
9             "background": true,
10             "closable": false,
11             "collapsible": false,
12             "height": 450,
13             "modal": true,
14             "resizable": true,
15             "title": "Edit Translation",
16             "width": 800,
17             "xtype": "LayoutDialog",
18             "|xns": "Roo",
19             "items": [
20                 {
21                     "*prop": "center",
22                     "titlebar": true,
23                     "xtype": "LayoutRegion",
24                     "|title": "\"Note: If the original text contains template variables like  {TEMPLATE_VARIABLE} <br/>Be careful to retain them otherwise the translation may not work\"",
25                     "|xns": "Roo"
26                 },
27                 {
28                     "xtype": "ContentPanel",
29                     "background": true,
30                     "fitToFrame": true,
31                     "region": "center",
32                     "listeners": {},
33                     "|xns": "Roo",
34                     "items": [
35                         {
36                             "listeners": {
37                                 "|actionfailed": "function (_self, action)\n{\n    _this.dialog.el.unmask();\n    Pman.standardActionFailed(_self, action);\n}\n",
38                                 "|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",
39                                 "|rendered": "function (form)\n{\n   _this.form = form;\n}"
40                             },
41                             "method": "POST",
42                             "style": "margin: 5px",
43                             "xtype": "Form",
44                             "|xns": "Roo.form",
45                             "items": [
46                                 {
47                                     "labelAlign": "top",
48                                     "xtype": "Row",
49                                     "|xns": "Roo.form",
50                                     "items": [
51                                         {
52                                             "readOnly": true,
53                                             "fieldLabel": "Original",
54                                             "height": 150,
55                                             "name": "src_id_txt",
56                                             "value": "",
57                                             "width": 750,
58                                             "xtype": "TextArea",
59                                             "|xns": "Roo.form"
60                                         }
61                                     ]
62                                 },
63                                 {
64                                     "labelAlign": "top",
65                                     "xtype": "Row",
66                                     "|xns": "Roo.form",
67                                     "items": [
68                                         {
69                                             "fieldLabel": "Translation",
70                                             "height": 150,
71                                             "name": "txt",
72                                             "width": 750,
73                                             "xtype": "TextArea",
74                                             "|xns": "Roo.form"
75                                         }
76                                     ]
77                                 }
78                             ]
79                         }
80                     ]
81                 },
82                 {
83                     "text": "Cancel",
84                     "xtype": "Button",
85                     "|xns": "Roo",
86                     "listeners": {
87                         "|click": "function() {\n    _this.form.reset();\n    _this.dialog.hide();\n}"
88                     },
89                     "*prop": "buttons[]"
90                 },
91                 {
92                     "listeners": {
93                         "|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}"
94                     },
95                     "*prop": "buttons[]",
96                     "text": "OK",
97                     "xtype": "Button",
98                     "|xns": "Roo"
99                 }
100             ]
101         }
102     ],
103     "permname": "",
104     "modOrder": "001"
105 }