Pman.Dialog.BuilderImport.bjs
[Pman.Builder] / Pman.Dialog.BuilderImport.bjs
1 {
2     "id": "roo-file-544",
3     "name": "Pman.Dialog.BuilderImport",
4     "parent": "",
5     "title": "",
6     "path": "/home/alan/gitlive/Pman.Builder/Pman.Dialog.BuilderImport.bjs",
7     "items": [
8         {
9             "closable": false,
10             "collapsible": false,
11             "height": 230,
12             "resizable": false,
13             "title": "Edit / Create core_enum",
14             "width": 400,
15             "modal": true,
16             "xtype": "LayoutDialog",
17             "|xns": "Roo",
18             "items": [
19                 {
20                     "|xns": "Roo",
21                     "xtype": "LayoutRegion",
22                     "*prop": "center"
23                 },
24                 {
25                     "region": "center",
26                     "xtype": "ContentPanel",
27                     "|xns": "Roo",
28                     "items": [
29                         {
30                             "|xns": "Roo.form",
31                             "xtype": "Form",
32                             "listeners": {
33                                 "|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",
34                                 "|rendered": "function (form)\n{\n    _this.form= form;\n}\n"
35                             },
36                             "method": "POST",
37                             "style": "margin:10px;",
38                             "|url": "baseURL + '/Roo/core_enum.php'",
39                             "items": [
40                                 {
41                                     "fieldLabel": "Etype",
42                                     "name": "etype",
43                                     "width": 200,
44                                     "|xns": "Roo.form",
45                                     "xtype": "TextField"
46                                 },
47                                 {
48                                     "fieldLabel": "Name",
49                                     "name": "name",
50                                     "width": 200,
51                                     "|xns": "Roo.form",
52                                     "xtype": "TextField"
53                                 },
54                                 {
55                                     "fieldLabel": "Active",
56                                     "name": "active",
57                                     "width": 75,
58                                     "|xns": "Roo.form",
59                                     "xtype": "TextField"
60                                 },
61                                 {
62                                     "fieldLabel": "Seqid",
63                                     "name": "seqid",
64                                     "width": 75,
65                                     "|xns": "Roo.form",
66                                     "xtype": "TextField"
67                                 },
68                                 {
69                                     "fieldLabel": "Seqmax",
70                                     "name": "seqmax",
71                                     "width": 75,
72                                     "|xns": "Roo.form",
73                                     "xtype": "TextField"
74                                 },
75                                 {
76                                     "fieldLabel": "Display name",
77                                     "name": "display_name",
78                                     "width": 200,
79                                     "|xns": "Roo.form",
80                                     "xtype": "TextField"
81                                 },
82                                 {
83                                     "name": "id",
84                                     "|xns": "Roo.form",
85                                     "xtype": "Hidden"
86                                 }
87                             ]
88                         }
89                     ]
90                 },
91                 {
92                     "listeners": {
93                         "click": "function (_self, e)\n{\n    _this.dialog.hide();\n}"
94                     },
95                     "*prop": "buttons[]",
96                     "text": "Cancel",
97                     "xtype": "Button",
98                     "|xns": "Roo"
99                 },
100                 {
101                     "listeners": {
102                         "click": "function (_self, e)\n{\n    // do some checks?\n     \n    \n    _this.dialog.el.mask(\"Saving\");\n    _this.form.doAction(\"submit\");\n\n}"
103                     },
104                     "*prop": "buttons[]",
105                     "text": "Save",
106                     "xtype": "Button",
107                     "|xns": "Roo"
108                 }
109             ]
110         }
111     ],
112     "permname": "",
113     "modOrder": "001"
114 }