Pman.Dialog.CmsTranslateTemplates.bjs
[Pman.Cms] / Pman.Dialog.CmsTranslateTemplates.bjs
1 {
2     "id": "roo-file-268",
3     "name": "Pman.Dialog.CmsTranslateTemplates",
4     "parent": "",
5     "title": "",
6     "path": "/home/chris/gitlive/Pman.Cms/Pman.Dialog.CmsTranslateTemplates.bjs",
7     "items": [
8         {
9             "background": true,
10             "closable": false,
11             "collapsible": false,
12             "height": 300,
13             "modal": true,
14             "resizable": true,
15             "title": "WARNING",
16             "width": 400,
17             "xtype": "LayoutDialog",
18             "|xns": "Roo",
19             "items": [
20                 {
21                     "*prop": "center",
22                     "title": "This text is with {TEMPLATE VARIABLE}, PLEASE BE CAREFUL EDITING. What\\'s change?",
23                     "titlebar": true,
24                     "xtype": "LayoutRegion",
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       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",
39                                 "|rendered": "function (form)\n{\n   _this.form = form;\n}"
40                             },
41                             "method": "POST",
42                             "style": "margin: 5px",
43                             "xtype": "Form",
44                             "|url": "baseURL + '/Roo/Ris_location.php'",
45                             "|xns": "Roo.form",
46                             "items": [
47                                 {
48                                     "height": 30,
49                                     "hideLabels": true,
50                                     "labelWidth": 100,
51                                     "xtype": "Row",
52                                     "|xns": "Roo.form",
53                                     "items": [
54                                         {
55                                             "vtype": "url",
56                                             "fieldLabel": "test",
57                                             "name": "wrin_text",
58                                             "value": "",
59                                             "width": 200,
60                                             "xtype": "DisplayField",
61                                             "|xns": "Roo.form"
62                                         }
63                                     ]
64                                 },
65                                 {
66                                     "labelAlign": "top",
67                                     "xtype": "Row",
68                                     "|xns": "Roo.form",
69                                     "items": [
70                                         {
71                                             "disabled": true,
72                                             "fieldLabel": "Original",
73                                             "name": "src_id_txt",
74                                             "value": "teststsetetsetsete",
75                                             "xtype": "TextArea",
76                                             "|xns": "Roo.form"
77                                         }
78                                     ]
79                                 },
80                                 {
81                                     "labelAlign": "top",
82                                     "xtype": "Row",
83                                     "|xns": "Roo.form",
84                                     "items": [
85                                         {
86                                             "fieldLabel": "Translation",
87                                             "name": "txt",
88                                             "xtype": "TextArea",
89                                             "|xns": "Roo.form"
90                                         }
91                                     ]
92                                 }
93                             ]
94                         }
95                     ]
96                 },
97                 {
98                     "text": "Cancel",
99                     "xtype": "Button",
100                     "|xns": "Roo",
101                     "listeners": {
102                         "|click": "function() {\n    _this.form.reset();\n    _this.dialog.hide();\n}"
103                     },
104                     "*prop": "buttons[]"
105                 },
106                 {
107                     "listeners": {
108                         "|click": "function() {\n    _this.dialog.el.mask(\"Saving\");\n    _this.form.doAction('submit');\n    \n}"
109                     },
110                     "*prop": "buttons[]",
111                     "text": "OK",
112                     "xtype": "Button",
113                     "|xns": "Roo"
114                 }
115             ]
116         }
117     ],
118     "permname": "",
119     "modOrder": "001"
120 }