Pman.Dialog.CoreCompanies.bjs
[Pman.Core] / Pman.Dialog.CoreCompanies.bjs
1 {
2     "id": "roo-file-160",
3     "name": "Pman.Dialog.CoreCompanies",
4     "parent": "",
5     "title": "",
6     "path": "/home/chris/gitlive/Pman.Core/Pman.Dialog.CoreCompanies.bjs",
7     "items": [
8         {
9             "autoCreate": "true",
10             "closable": false,
11             "collapsible": false,
12             "draggable": false,
13             "height": 400,
14             "modal": true,
15             "shadow": "true",
16             "title": "Edit Companies",
17             "width": 750,
18             "xtype": "LayoutDialog",
19             "|xns": "Roo",
20             "items": [
21                 {
22                     "*prop": "center",
23                     "alwaysShowTabs": false,
24                     "autoScroll": false,
25                     "closeOnTab": true,
26                     "hideTabs": true,
27                     "titlebar": false,
28                     "xtype": "LayoutRegion",
29                     "|xns": "Roo"
30                 },
31                 {
32                     "autoCreate": "true",
33                     "fitToFrame": true,
34                     "xtype": "ContentPanel",
35                     "|xns": "Roo",
36                     "items": [
37                         {
38                             "listeners": {
39                                 "actionfailed": "function(f, act) {\n    _this.dialog.el.unmask();\n    // error msg???\n    Pman.standardActionFailed(f,act);\n              \n}",
40                                 "actioncomplete": "function(f, act) {\n    _this.dialog.el.unmask();\n    //console.log('load completed'); \n    // error messages?????\n    \n   \n    if (act.type == 'load') {\n        \n        _this.data = act.result.data;\n        var meth = _this.data.isOwner || !Pman.Login.isOwner() ? 'disable' : 'enable';\n     \n            \n        if (_this.form.findField('comptype')) {\n            _this.form.findField('comptype')[meth]();\n        }\n         \n       // _this.loaded();\n        return;\n    }\n    \n    \n    if (act.type == 'submit') { // only submitted here if we are \n        _this.dialog.hide();\n       \n        if (_this.callback) {\n            _this.callback.call(this, act.result.data);\n        }\n        return; \n    }\n    // unmask?? \n}",
41                                 "rendered": "function (form)\n{\n    _this.form = form;\n}"
42                             },
43                             "fileUpload": true,
44                             "labelWidth": 150,
45                             "xtype": "Form",
46                             "|xns": "Roo.form",
47                             "items": [
48                                 {
49                                     "allowBlank": false,
50                                     "fieldLabel": "",
51                                     "name": "",
52                                     "xtype": "TextField",
53                                     "|xns": "Roo.form"
54                                 }
55                             ]
56                         }
57                     ]
58                 },
59                 {
60                     "*prop": "buttons[]",
61                     "text": "Cancel",
62                     "xtype": "Button",
63                     "|xns": "Roo"
64                 },
65                 {
66                     "*prop": "buttons[]",
67                     "text": "Save",
68                     "xtype": "Button",
69                     "|xns": "Roo"
70                 }
71             ]
72         }
73     ],
74     "permname": "",
75     "modOrder": "001"
76 }