Fix #7123 - getting abra ready to test
[Pman.Xtuple] / Pman.Dialog.XtupleCurrency.bjs
1 {
2     "id": "roo-file-271",
3     "name": "Pman.Dialog.XtupleCurrency",
4     "parent": "",
5     "title": "",
6     "path": "/home/edward/gitlive/web.xtuple/Pman/Xtuple/Pman.Dialog.XtupleCurrency.bjs",
7     "items": [
8         {
9             "closable": false,
10             "collapsible": false,
11             "height": 200,
12             "modal": true,
13             "resizable": false,
14             "title": "Edit / Create Currency",
15             "width": 500,
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.curr_id){\n            _this.dialog.el.mask(\"Loading\");\n            this.load({ method: 'GET', params: { '_id' : _this.data.curr_id }});\n            return;\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                             "method": "POST",
35                             "style": "margin:10px;",
36                             "xtype": "Form",
37                             "|url": "baseURL + '/Roo/Curr_symbol.php'",
38                             "|xns": "Roo.form",
39                             "items": [
40                                 {
41                                     "allowBlank": false,
42                                     "fieldLabel": "Name",
43                                     "name": "curr_name",
44                                     "width": 200,
45                                     "xtype": "TextField",
46                                     "|xns": "Roo.form"
47                                 },
48                                 {
49                                     "allowBlank": false,
50                                     "fieldLabel": "Symbol",
51                                     "name": "curr_symbol",
52                                     "width": 200,
53                                     "xtype": "TextField",
54                                     "|xns": "Roo.form"
55                                 },
56                                 {
57                                     "allowBlank": false,
58                                     "fieldLabel": "Abbr.",
59                                     "name": "curr_abbr",
60                                     "width": 200,
61                                     "xtype": "TextField",
62                                     "|xns": "Roo.form"
63                                 },
64                                 {
65                                     "boxLabel": "Yes / No",
66                                     "fieldLabel": "Base",
67                                     "inputValue": "true",
68                                     "name": "curr_base",
69                                     "valueOff": 0,
70                                     "xtype": "Checkbox",
71                                     "|xns": "Roo.form"
72                                 },
73                                 {
74                                     "name": "curr_id",
75                                     "xtype": "Hidden",
76                                     "|xns": "Roo.form"
77                                 }
78                             ]
79                         }
80                     ]
81                 },
82                 {
83                     "listeners": {
84                         "click": "function (_self, e)\n{\n    _this.dialog.hide();\n}"
85                     },
86                     "*prop": "buttons[]",
87                     "text": "Cancel",
88                     "xtype": "Button",
89                     "|xns": "Roo"
90                 },
91                 {
92                     "listeners": {
93                         "click": "function (_self, e)\n{\n    _this.form.doAction(\"submit\");\n\n}"
94                     },
95                     "*prop": "buttons[]",
96                     "text": "Save",
97                     "xtype": "Button",
98                     "|xns": "Roo"
99                 }
100             ]
101         }
102     ],
103     "permname": "",
104     "modOrder": "001"
105 }