Pman.Dialog.XtupleCurrency.bjs
[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": 400,
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                                     "fieldLabel": "Name",
42                                     "name": "curr_name",
43                                     "width": 200,
44                                     "xtype": "TextField",
45                                     "|xns": "Roo.form"
46                                 },
47                                 {
48                                     "fieldLabel": "Symbol",
49                                     "name": "curr_symbol",
50                                     "width": 200,
51                                     "xtype": "TextField",
52                                     "|xns": "Roo.form"
53                                 },
54                                 {
55                                     "fieldLabel": "Abbr.",
56                                     "name": "curr_abbr",
57                                     "width": 200,
58                                     "xtype": "TextField",
59                                     "|xns": "Roo.form"
60                                 },
61                                 {
62                                     "boxLabel": "Yes/No",
63                                     "fieldLabel": "Is shown on site?",
64                                     "inputValue": 1,
65                                     "name": "visible",
66                                     "value": 0,
67                                     "valueOff": 0,
68                                     "xtype": "Checkbox",
69                                     "|xns": "Roo.form"
70                                 },
71                                 {
72                                     "name": "curr_id",
73                                     "xtype": "Hidden",
74                                     "|xns": "Roo.form"
75                                 }
76                             ]
77                         }
78                     ]
79                 },
80                 {
81                     "listeners": {
82                         "click": "function (_self, e)\n{\n    _this.dialog.hide();\n}"
83                     },
84                     "*prop": "buttons[]",
85                     "text": "Cancel",
86                     "xtype": "Button",
87                     "|xns": "Roo"
88                 },
89                 {
90                     "listeners": {
91                         "click": "function (_self, e)\n{\n    _this.form.doAction(\"submit\");\n\n}"
92                     },
93                     "*prop": "buttons[]",
94                     "text": "Save",
95                     "xtype": "Button",
96                     "|xns": "Roo"
97                 }
98             ]
99         }
100     ],
101     "permname": "",
102     "modOrder": "001"
103 }