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": false,
15             "title": "Add / Edit Location Details",
16             "width": 600,
17             "xtype": "LayoutDialog",
18             "|xns": "Roo",
19             "items": [
20                 {
21                     "xtype": "LayoutRegion",
22                     "*prop": "center",
23                     "titlebar": false,
24                     "|xns": "Roo"
25                 },
26                 {
27                     "xtype": "ContentPanel",
28                     "background": true,
29                     "fitToFrame": true,
30                     "region": "center",
31                     "listeners": {},
32                     "|xns": "Roo",
33                     "items": [
34                         {
35                             "listeners": {
36                                 "|actionfailed": "function (_self, action)\n{\n    _this.dialog.el.unmask();\n    Pman.standardActionFailed(_self, action);\n}\n",
37                                 "|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",
38                                 "|rendered": "function (form)\n{\n   _this.form = form;\n}"
39                             },
40                             "method": "POST",
41                             "style": "margin: 5px",
42                             "xtype": "Form",
43                             "|url": "baseURL + '/Roo/Ris_location.php'",
44                             "|xns": "Roo.form",
45                             "items": [
46                                 {
47                                     "labelAlign": "top",
48                                     "xtype": "Row",
49                                     "|xns": "Roo.form",
50                                     "items": [
51                                         {
52                                             "disabled": true,
53                                             "fieldLabel": "Original",
54                                             "name": "",
55                                             "xtype": "TextArea",
56                                             "|xns": "Roo.form"
57                                         }
58                                     ]
59                                 },
60                                 {
61                                     "labelAlign": "top",
62                                     "xtype": "Row",
63                                     "|xns": "Roo.form",
64                                     "items": [
65                                         {
66                                             "fieldLabel": "Translation",
67                                             "name": "",
68                                             "xtype": "TextArea",
69                                             "|xns": "Roo.form"
70                                         }
71                                     ]
72                                 },
73                                 {
74                                     "name": "id",
75                                     "xtype": "Hidden",
76                                     "|xns": "Roo.form"
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                     "text": "OK",
93                     "xtype": "Button",
94                     "|xns": "Roo",
95                     "listeners": {
96                         "|click": "function() {\n    _this.dialog.el.mask(\"Saving\");\n    _this.form.doAction('submit');\n    \n}"
97                     },
98                     "*prop": "buttons[]"
99                 }
100             ]
101         }
102     ],
103     "permname": "",
104     "modOrder": "001"
105 }