Fix #7123 - getting abra ready to test
[Pman.Xtuple] / Pman.Dialog.XtupleGLAccountNameEdit.bjs
1 {
2     "id": "roo-file-8",
3     "name": "Pman.Dialog.XtupleGLAccountNameEdit",
4     "parent": "",
5     "title": "",
6     "path": "/home/edward/gitlive/web.xtuple/Pman/Xtuple/Pman.Dialog.XtupleGLAccountNameEdit.bjs",
7     "items": [
8         {
9             "closable": false,
10             "collapsible": false,
11             "height": 180,
12             "modal": true,
13             "resizable": false,
14             "title": "Edit Account Name",
15             "width": 450,
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                             "listeners": {
31                                 "|actioncomplete": "function(_self,action)\n{\n    if (action.type == 'setdata') {\n        if(_this.data.accnt_id * 1 >1){\n           _this.dialog.el.mask(\"Loading\");\n           this.load({ method: 'GET', params: { '_id' : _this.data.accnt_id }});\n       }\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",
32                                 "|rendered": "function (form)\n{\n    _this.form= form;\n}\n"
33                             },
34                             "labelWidth": 150,
35                             "method": "POST",
36                             "style": "margin:10px;",
37                             "xtype": "Form",
38                             "|url": "baseURL + '/Roo/Accnt.php'",
39                             "|xns": "Roo.form",
40                             "items": [
41                                 {
42                                     "allowBlank": false,
43                                     "fieldLabel": "Account Name",
44                                     "name": "accnt_descrip",
45                                     "width": 200,
46                                     "xtype": "TextField",
47                                     "|xns": "Roo.form"
48                                 },
49                                 {
50                                     "allowBlank": true,
51                                     "fieldLabel": "Alternative Code",
52                                     "name": "accnt_code_alt",
53                                     "width": 200,
54                                     "xtype": "TextField",
55                                     "|xns": "Roo.form"
56                                 },
57                                 {
58                                     "allowBlank": true,
59                                     "fieldLabel": "Alternative Description",
60                                     "name": "accnt_descrip_alt",
61                                     "width": 200,
62                                     "xtype": "TextField",
63                                     "|xns": "Roo.form"
64                                 },
65                                 {
66                                     "name": "accnt_id",
67                                     "xtype": "Hidden",
68                                     "|xns": "Roo.form"
69                                 }
70                             ]
71                         }
72                     ]
73                 },
74                 {
75                     "listeners": {
76                         "click": "function (_self, e)\n{\n    _this.dialog.hide();\n}"
77                     },
78                     "*prop": "buttons[]",
79                     "text": "Cancel",
80                     "xtype": "Button",
81                     "|xns": "Roo"
82                 },
83                 {
84                     "listeners": {
85                         "click": "function (_self, e)\n{\n    \n    _this.form.doAction(\"submit\");\n\n}"
86                     },
87                     "*prop": "buttons[]",
88                     "text": "Save",
89                     "xtype": "Button",
90                     "|xns": "Roo"
91                 }
92             ]
93         }
94     ],
95     "permname": "",
96     "modOrder": "001"
97 }