Pman.Dialog.BuilderModule.bjs
[Pman.Builder] / Pman.Dialog.BuilderModule.bjs
1 {
2     "id": "roo-file-175",
3     "name": "Pman.Dialog.BuilderModule",
4     "parent": "",
5     "title": "",
6     "path": "/home/alan/gitlive/Pman.Builder/Pman.Dialog.BuilderModule.bjs",
7     "items": [
8         {
9             "closable": false,
10             "collapsible": false,
11             "height": 140,
12             "resizable": false,
13             "title": "Edit / Create builder_modules",
14             "width": 400,
15             "xtype": "LayoutDialog",
16             "|xns": "Roo",
17             "items": [
18                 {
19                     "|xns": "Roo",
20                     "xtype": "LayoutRegion",
21                     "*prop": "center"
22                 },
23                 {
24                     "region": "center",
25                     "xtype": "ContentPanel",
26                     "|xns": "Roo",
27                     "items": [
28                         {
29                             "|xns": "Roo.form",
30                             "xtype": "Form",
31                             "listeners": {
32                                 "|actioncomplete": "function(_self,action)\n{\n    if (action.type == 'setdata') {\n       //_this.dialog.el.mask(\"Loading\");\n       //this.load({ method: 'GET', params: { '_id' : _this.data.id }});\n       return;\n    }\n    if (action.type == 'load') {\n        _this.dialog.el.unmask();\n        return;\n    }\n    if (action.type =='submit') {\n    \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         return;\n    }\n}\n",
33                                 "|rendered": "function (form)\n{\n    _this.form= form;\n}\n"
34                             },
35                             "method": "POST",
36                             "style": "margin:10px;",
37                             "|url": "baseURL + '/Roo/builder_modules.php'",
38                             "items": [
39                                 {
40                                     "fieldLabel": "Name",
41                                     "name": "name",
42                                     "width": 200,
43                                     "|xns": "Roo.form",
44                                     "xtype": "TextField"
45                                 },
46                                 {
47                                     "fieldLabel": "Path",
48                                     "name": "path",
49                                     "width": 200,
50                                     "|xns": "Roo.form",
51                                     "xtype": "TextField"
52                                 },
53                                 {
54                                     "fieldLabel": "Public",
55                                     "name": "public",
56                                     "width": 75,
57                                     "|xns": "Roo.form",
58                                     "xtype": "TextField"
59                                 },
60                                 {
61                                     "name": "id",
62                                     "|xns": "Roo.form",
63                                     "xtype": "Hidden"
64                                 }
65                             ]
66                         }
67                     ]
68                 },
69                 {
70                     "listeners": {
71                         "click": "function (_self, e)\n{\n    _this.dialog.hide();\n}"
72                     },
73                     "*prop": "buttons[]",
74                     "text": "Cancel",
75                     "xtype": "Button",
76                     "|xns": "Roo"
77                 },
78                 {
79                     "listeners": {
80                         "click": "function (_self, e)\n{\n    // do some checks?\n     \n    \n    _this.dialog.el.mask(\"Saving\");\n    _this.form.doAction(\"submit\");\n\n}"
81                     },
82                     "*prop": "buttons[]",
83                     "text": "Save",
84                     "xtype": "Button",
85                     "|xns": "Roo"
86                 }
87             ]
88         }
89     ],
90     "permname": "",
91     "modOrder": "001"
92 }