Pman.Tab.bjs
[Pman.BAdmin] / Pman.Tab.bjs
1 {
2  "name" : "Pman.Tab",
3  "parent" : "",
4  "title" : "",
5  "path" : "/home/john/gitlive/web.coba/Pman/BAdmin/Pman.Tab.bjs",
6  "permname" : "",
7  "modOrder" : "001",
8  "strings" : {
9   "7b7bc2512ee1fedcd76bdc68926d4f7b" : "Administrator",
10   "0323de4f66a1700e2173e9bcdce02715" : "Logout",
11   "8f1e77e0d2be21da93cd4d9a939148f7" : "Change Password",
12   "617114bd6ef10884239510062dffa933" : "Your password has been changed",
13   "24efa7ee4511563b16144f39706d594f" : "Notice"
14  },
15  "items" : [
16   {
17    "listeners" : {
18     "render" : "function (_self)\n{\n\n}"
19    },
20    "xtype" : "Border",
21    "$ el" : "document.body",
22    "$ xns" : "Roo.bootstrap.layout",
23    "bool is_root" : true,
24    "items" : [
25     {
26      "String tabPosition" : "top",
27      "xtype" : "Region",
28      "$ xns" : "Roo.bootstrap.layout",
29      "Boolean alwaysShowTabs" : true,
30      "* prop" : "center"
31     },
32     {
33      "xtype" : "Region",
34      "Boolean hideTabs" : true,
35      "Number height" : 50,
36      "$ xns" : "Roo.bootstrap.layout",
37      "* prop" : "north",
38      "String overflow" : "visible"
39     },
40     {
41      "Boolean fitContainer" : true,
42      "xtype" : "Content",
43      "$ xns" : "Roo.bootstrap.panel",
44      "String region" : "north",
45      "items" : [
46       {
47        "String position" : "fixed-top",
48        "String cls" : "headroom animated slideDown  no-srButton pman-admin-header",
49        "Boolean srButton" : true,
50        "bool autohide" : true,
51        "xtype" : "NavHeaderbar",
52        "Boolean inverse" : false,
53        "Boolean desktopCenter" : false,
54        "$ String brand" : "'<img   cls=\"header-logo\" src=\"' +    Roo.BLANK_IMAGE_URL + '\">'",
55        "$ xns" : "Roo.bootstrap",
56        "items" : [
57         {
58          "String type" : "nav",
59          "xtype" : "NavGroup",
60          "String align" : "right",
61          "$ xns" : "Roo.bootstrap",
62          "items" : [
63           {
64            "listeners" : {
65             "render" : "function (_self)\n{\n    _this.user_box = this;\n    \n    this.el.setVisibilityMode(Roo.Element.DISPLAY);\n    \n    this.el.show();\n}"
66            },
67            "Boolean preventDefault" : true,
68            "| function updateBadge" : "function() { }",
69            "xtype" : "NavItem",
70            "$ html" : "Pman.Login.authUser.name + '<span style=\"margin-left: 5px;\" class=\"badge badge-primary\"></span>'",
71            "$ xns" : "Roo.bootstrap",
72            "String icon" : "fa fa-user",
73            "items" : [
74             {
75              "listeners" : {
76               "show" : "function (_self)\n{\n    var width = Roo.lib.Dom.getViewWidth();\n    \n    var xy = this.el.getXY();\n    this.el.setStyle('position', 'absolute');\n    \n    if(width < 480){\n        xy[0] = 0;\n        this.el.setXY(xy);\n        this.el.setStyle('width', width + 'px');\n    }\n}"
77              },
78              "Boolean allowDomMove" : false,
79              "String cls" : "user-menu",
80              "xtype" : "Menu",
81              "$ xns" : "Roo.bootstrap",
82              "* prop" : "menu",
83              "items" : [
84               {
85                "String cls" : "user-body",
86                "Boolean preventDefault" : true,
87                "xtype" : "MenuItem",
88                "$ xns" : "Roo.bootstrap",
89                "Boolean isContainer" : true,
90                "items" : [
91                 {
92                  "xtype" : "Row",
93                  "$ xns" : "Roo.bootstrap",
94                  "items" : [
95                   {
96                    "Number md" : 12,
97                    "xtype" : "Column",
98                    "$ xns" : "Roo.bootstrap",
99                    "items" : [
100                     {
101                      "xtype" : "Row",
102                      "$ xns" : "Roo.bootstrap",
103                      "items" : [
104                       {
105                        "listeners" : {
106                         "render" : "function (_self)\n{\n    this.el.dom.innerHTML = '<b>' + Pman.Login.authUser.name + '</b>';\n    \n}"
107                        },
108                        "Number md" : 12,
109                        "String cls" : "text-primary",
110                        "xtype" : "Column",
111                        "$ xns" : "Roo.bootstrap"
112                       },
113                       {
114                        "listeners" : {
115                         "render" : "function (_self)\n{\n   \n    this.el.dom.innerHTML = Pman.Login.authUser.email;\n    \n}"
116                        },
117                        "Number md" : 12,
118                        "xtype" : "Column",
119                        "$ xns" : "Roo.bootstrap",
120                        "String style" : "color:#777;"
121                       },
122                       {
123                        "Number md" : 12,
124                        "xtype" : "Column",
125                        "$ xns" : "Roo.bootstrap",
126                        "items" : [
127                         {
128                          "listeners" : {
129                           "render" : "function (_self)\n{\n    _this.super_admin_btn = this;\n    \n}",
130                           "click" : "function (_self, e)\n{\n    if(window.location.href.indexOf('_super_admin=1') * 1 != -1) {\n        window.open(baseURL,'_self');\n        return;\n    }\n    \n    window.open(baseURL + '?_super_admin=1','_self');\n}"
131                          },
132                          "String weight" : "link",
133                          "xtype" : "Button",
134                          "$ xns" : "Roo.bootstrap",
135                          "String html" : "Administrator",
136                          "String style" : "padding: 0px;text-decoration: none; color:#777;"
137                         }
138                        ]
139                       }
140                      ]
141                     }
142                    ]
143                   }
144                  ]
145                 }
146                ]
147               },
148               {
149                "listeners" : {
150                 "childrenrendered" : "function (_self)\n{\n    _this.super_admin_btn.hide();\n\n    if(Pman.Login.authUser.groups.indexOf('Administrators') * 1 != -1) {\n        _this.super_admin_btn.show();\n    }\n}"
151                },
152                "String cls" : "user-footer",
153                "Boolean preventDefault" : true,
154                "xtype" : "MenuItem",
155                "$ xns" : "Roo.bootstrap",
156                "Boolean isContainer" : true,
157                "items" : [
158                 {
159                  "xtype" : "Row",
160                  "$ xns" : "Roo.bootstrap",
161                  "items" : [
162                   {
163                    "Number md" : 6,
164                    "xtype" : "Column",
165                    "Number xs" : 6,
166                    "$ xns" : "Roo.bootstrap",
167                    "Number sm" : 6,
168                    "items" : [
169                     {
170                      "listeners" : {
171                       "click" : "function (e)\n{\n\n    var _self = this;\n    \n    Pman.Dialog.BAdminPassword.show({ id : Pman.Login.authUser.id }, function(res) {\n        Roo.bootstrap.MessageBox.alert(_self._change_passwd_success_title, _self._change_passwd_success_body);\n    });\n    \n}"
172                      },
173                      "xtype" : "Button",
174                      "string _change_passwd_success_body" : "Your password has been changed",
175                      "$ xns" : "Roo.bootstrap",
176                      "String html" : "Change Password",
177                      "String style" : "text-transform:none;",
178                      "string _change_passwd_success_title" : "Notice"
179                     }
180                    ]
181                   },
182                   {
183                    "Number md" : 6,
184                    "xtype" : "Column",
185                    "Number xs" : 6,
186                    "$ xns" : "Roo.bootstrap",
187                    "String style" : "text-align: right;",
188                    "Number sm" : 6,
189                    "items" : [
190                     {
191                      "listeners" : {
192                       "click" : "function (e)\n{\n    window.onbeforeunload = false;\n    \n    \n    Roo.Ajax.request({\n            url : baseURL + '/Login',\n            method: 'POST',\n            params : { \n                logout : 1\n            },\n            success : function()\n            {\n                location.href = baseURL;\n            }\n        });\n\n}"
193                      },
194                      "xtype" : "Button",
195                      "$ xns" : "Roo.bootstrap",
196                      "String html" : "Logout",
197                      "String style" : "text-transform:none;"
198                     }
199                    ]
200                   }
201                  ]
202                 }
203                ]
204               }
205              ]
206             }
207            ]
208           }
209          ]
210         }
211        ]
212       }
213      ]
214     }
215    ]
216   }
217  ]
218 }