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