Pman.Dialog.AdminEnumType.bjs
[Pman.Admin] / Pman.Dialog.AdminEnumType.bjs
1 {
2     "name" : "Pman.Dialog.AdminEnumType",
3     "parent" : "",
4     "title" : "",
5     "path" : "/home/michael/gitlive/Pman.Admin/Pman.Dialog.AdminEnumType.bjs",
6     "permname" : "",
7     "modOrder" : "001",
8     "items" : [
9         {
10             "Boolean modal" : true,
11             "Number width" : 480,
12             "xtype" : "LayoutDialog",
13             "Number height" : 160,
14             "Boolean resizable" : false,
15             "$ xns" : "Roo",
16             "String title" : "Edit",
17             "items" : [
18                 {
19                     "xtype" : "LayoutRegion",
20                     "$ xns" : "Roo",
21                     "* prop" : "center\n"
22                 },
23                 {
24                     "xtype" : "ContentPanel",
25                     "String region" : "center",
26                     "$ xns" : "Roo",
27                     "items" : [
28                         {
29                             "listeners" : {
30                                 "rendered" : "function (form)\n{\n    _this.form = this;\n}",
31                                 "|actioncomplete" : "function (_self, action)\n{\n    if(action.type == 'submit'){\n        _this.dialog.hide();\n        \n        if(_this.callback){\n            _this.callback.call(_this, _this.form.getValues());\n        }\n        return\n    }\n}"
32                             },
33                             "$ url" : "baseURL + '/Roo/Core_enum'",
34                             "xtype" : "Form",
35                             "$ xns" : "Roo.form",
36                             "items" : [
37                                 {
38                                     "Boolean allowBlank" : false,
39                                     "String name" : "name",
40                                     "Number width" : 270,
41                                     "xtype" : "TextField",
42                                     "String fieldLabel" : "Name",
43                                     "$ xns" : "Roo.form"
44                                 },
45                                 {
46                                     "String name" : "id",
47                                     "xtype" : "Hidden",
48                                     "$ xns" : "Roo.form"
49                                 },
50                                 {
51                                     "String name" : "etype",
52                                     "xtype" : "Hidden",
53                                     "$ xns" : "Roo.form"
54                                 },
55                                 {
56                                     "String name" : "display_name",
57                                     "Number width" : 270,
58                                     "xtype" : "TextField",
59                                     "String fieldLabel" : "Display Name",
60                                     "$ xns" : "Roo.form"
61                                 }
62                             ]
63                         }
64                     ]
65                 },
66                 {
67                     "listeners" : {
68                         "click" : "function (_self, e)\n{\n    //this.url = baseURL + '/Roo/Core_enum.php';\n    //_this.dialog.el.mask(\"Saving\");\n    _this.form.doAction(\"submit\");\n}"
69                     },
70                     "xtype" : "Button",
71                     "String text" : "Save",
72                     "$ xns" : "Roo",
73                     "* prop" : "buttons[]"
74                 },
75                 {
76                     "listeners" : {
77                         "click" : "function (_self, e)\n{\n    _this.dialog.hide();\n}"
78                     },
79                     "xtype" : "Button",
80                     "String text" : "Cancel",
81                     "$ xns" : "Roo",
82                     "* prop" : "buttons[]"
83                 }
84             ]
85         }
86     ]
87 }