Pman.Dialog.BAdminAddToGroup.bjs
[Pman.BAdmin] / Pman.Dialog.BAdminAddToGroup.bjs
1 {
2  "name" : "Pman.Dialog.BAdminAddToGroup",
3  "parent" : "",
4  "title" : "",
5  "path" : "/home/edward/gitlive/Pman.BAdmin/Pman.Dialog.BAdminAddToGroup.bjs",
6  "permname" : "",
7  "modOrder" : "001",
8  "strings" : {
9   "05b763f7d24f32575493b3c23f299b0e" : "Add To Group",
10   "ea4788705e6873b424c65e91c2846b19" : "Cancel",
11   "df1eb600b1e8e619756781831c41e346" : "Please select a group",
12   "c9cc8cce247e49bae79f15173ce97354" : "Save"
13  },
14  "items" : [
15   {
16    "String cls" : "enable-overflow",
17    "xtype" : "Modal",
18    "$ xns" : "Roo.bootstrap",
19    "String title" : "Add To Group",
20    "items" : [
21     {
22      "listeners" : {
23       "actionfailed" : "function (_self, action)\n{\n    Roo.bootstrap.MessageBox.alert(action.result.errorMsg);\n}",
24       "actioncomplete" : "function (_self, action)\n{\n    if(action.type == 'setdata'){\n        \n        _this.form.clearInvalid();\n        \n        return;\n    }\n   \n    if (action.type == 'load') {\n        _this.data = action.result.data;\n        return;\n    }\n    \n    \n    if (action.type == 'submit') {\n    \n        _this.dialog.hide();\n       \n        if (_this.callback) {\n            _this.callback.call(this, action.result.data);\n        }\n        \n        return; \n    }\n}",
25       "render" : "function (_self)\n{\n    _this.form = _self;\n}"
26      },
27      "$ url" : "baseURL + '/Roo/Core_group_member' ",
28      "xtype" : "Form",
29      "String labelAlign" : "top",
30      "$ xns" : "Roo.bootstrap",
31      "items" : [
32       {
33        "Number pageSize" : 25,
34        "Boolean allowBlank" : false,
35        "Number minChars" : 2,
36        "String name" : "group_id_name",
37        "String valueField" : "id",
38        "String queryParam" : "query[name_starts]",
39        "Boolean typeAhead" : true,
40        "xtype" : "ComboBox",
41        "String triggerAction" : "all",
42        "Boolean editable" : false,
43        "Boolean alwaysQuery" : true,
44        "string placeholder" : "Please select a group",
45        "$ xns" : "Roo.bootstrap",
46        "String/Roo.Template tpl" : "<div class=\"roo-select2-result\"><b>{name}</b></div>",
47        "String hiddenName" : "group_id",
48        "String displayField" : "name",
49        "items" : [
50         {
51          "listeners" : {
52           "beforeload" : "function (_self, o)\n{\n    o.params = o.params || {};\n    o.params.type = 0;\n}"
53          },
54          "xtype" : "Store",
55          "boolean remoteSort" : true,
56          "$ xns" : "Roo.data",
57          "$ sortInfo" : "{field:\"id\",direction:\"ASC\"}",
58          "* prop" : "store",
59          "items" : [
60           {
61            "xtype" : "HttpProxy",
62            "$ xns" : "Roo.data",
63            "String method" : "GET",
64            "* prop" : "proxy",
65            "$ String url" : "baseURL+'/Roo/Core_group'"
66           },
67           {
68            "xtype" : "JsonReader",
69            "$ xns" : "Roo.data",
70            "$ fields" : "[\n    {\n        'name': 'id',\n        'type': 'int'\n    },\n    {\n        'name': 'name',\n        'type': 'string'\n    }\n]",
71            "* prop" : "reader"
72           }
73          ]
74         }
75        ]
76       },
77       {
78        "String name" : "_persons",
79        "xtype" : "Input",
80        "String inputType" : "hidden",
81        "$ xns" : "Roo.bootstrap"
82       },
83       {
84        "String name" : "id",
85        "xtype" : "Input",
86        "String inputType" : "hidden",
87        "$ xns" : "Roo.bootstrap"
88       }
89      ]
90     },
91     {
92      "listeners" : {
93       "click" : "function (_self, e)\n{\n    _this.dialog.hide(); \n}"
94      },
95      "xtype" : "Button",
96      "$ xns" : "Roo.bootstrap",
97      "String html" : "Cancel",
98      "* prop" : "buttons[]"
99     },
100     {
101      "listeners" : {
102       "click" : "function (_self, e)\n{\n    _this.form.doAction(\"submit\");\n\n    return;\n}"
103      },
104      "String weight" : "primary",
105      "xtype" : "Button",
106      "$ xns" : "Roo.bootstrap",
107      "String html" : "Save",
108      "* prop" : "buttons[]"
109     }
110    ]
111   }
112  ]
113 }