Pman.Tab.bjs
[Pman.BAdmin] / Pman.Tab.bjs
1 {
2  "name" : "Pman.Tab",
3  "parent" : "",
4  "title" : "",
5  "path" : "/home/edward/gitlive/Pman.BAdmin/Pman.Tab.bjs",
6  "permname" : "",
7  "modOrder" : "001",
8  "strings" : {
9   "e3afed0047b08059d0fada10f400c1e5" : "Admin",
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",
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        "String style" : "padding-bottom:0px;",
57        "items" : [
58         {
59          "String type" : "nav",
60          "xtype" : "NavGroup",
61          "String align" : "right",
62          "$ xns" : "Roo.bootstrap",
63          "String style" : "margin-top:0px;margin-bottom:0px;",
64          "items" : [
65           {
66            "listeners" : {
67             "render" : "function (_self)\n{\n    _this.user_box = this;\n    \n    this.el.setVisibilityMode(Roo.Element.DISPLAY);\n    \n    this.el.show();\n}"
68            },
69            "Boolean preventDefault" : true,
70            "| function updateBadge" : "function() { }",
71            "xtype" : "NavItem",
72            "$ html" : "Pman.Login.authUser.name + '<span style=\"margin-left: 5px;\" class=\"badge badge-primary\"></span>'",
73            "$ xns" : "Roo.bootstrap",
74            "String icon" : "fa fa-user",
75            "items" : [
76             {
77              "listeners" : {
78               "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}"
79              },
80              "Boolean allowDomMove" : false,
81              "String cls" : "user-menu",
82              "xtype" : "Menu",
83              "$ xns" : "Roo.bootstrap",
84              "* prop" : "menu",
85              "items" : [
86               {
87                "String cls" : "user-body",
88                "Boolean preventDefault" : true,
89                "xtype" : "MenuItem",
90                "$ xns" : "Roo.bootstrap",
91                "Boolean isContainer" : true,
92                "items" : [
93                 {
94                  "xtype" : "Row",
95                  "$ xns" : "Roo.bootstrap",
96                  "items" : [
97                   {
98                    "Number md" : 9,
99                    "Number mdoff" : 3,
100                    "xtype" : "Column",
101                    "$ xns" : "Roo.bootstrap",
102                    "items" : [
103                     {
104                      "xtype" : "Row",
105                      "$ xns" : "Roo.bootstrap",
106                      "items" : [
107                       {
108                        "listeners" : {
109                         "render" : "function (_self)\n{\n    this.el.dom.innerHTML = '<b>' + Pman.Login.authUser.name + '</b>';\n    \n}"
110                        },
111                        "Number md" : 12,
112                        "xtype" : "Column",
113                        "$ xns" : "Roo.bootstrap",
114                        "String style" : "color:#333;text-align:right"
115                       },
116                       {
117                        "listeners" : {
118                         "render" : "function (_self)\n{\n   \n    this.el.dom.innerHTML = Pman.Login.authUser.email;\n    \n}"
119                        },
120                        "Number md" : 12,
121                        "xtype" : "Column",
122                        "$ xns" : "Roo.bootstrap",
123                        "String style" : "color:#333;text-align:right"
124                       }
125                      ]
126                     }
127                    ]
128                   }
129                  ]
130                 }
131                ]
132               },
133               {
134                "listeners" : {
135                 "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}"
136                },
137                "String cls" : "user-footer",
138                "Boolean preventDefault" : true,
139                "xtype" : "MenuItem",
140                "$ xns" : "Roo.bootstrap",
141                "Boolean isContainer" : true,
142                "items" : [
143                 {
144                  "xtype" : "Row",
145                  "$ xns" : "Roo.bootstrap",
146                  "items" : [
147                   {
148                    "Number md" : 12,
149                    "xtype" : "Column",
150                    "$ xns" : "Roo.bootstrap",
151                    "items" : [
152                     {
153                      "listeners" : {
154                       "render" : "function (_self)\n{\n    _this.super_admin_btn = this;\n}",
155                       "click" : "function (_self, e)\n{\n    window.open(baseURL + '?_super_admin=1','_self');\n}"
156                      },
157                      "String weight" : "link",
158                      "xtype" : "Button",
159                      "$ xns" : "Roo.bootstrap",
160                      "String html" : "Admin",
161                      "String style" : "float: right; padding-top: 0px; padding-right: 0px;"
162                     }
163                    ]
164                   }
165                  ]
166                 },
167                 {
168                  "xtype" : "Row",
169                  "$ xns" : "Roo.bootstrap",
170                  "items" : [
171                   {
172                    "Number md" : 6,
173                    "xtype" : "Column",
174                    "Number xs" : 6,
175                    "$ xns" : "Roo.bootstrap",
176                    "Number sm" : 6,
177                    "items" : [
178                     {
179                      "listeners" : {
180                       "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}"
181                      },
182                      "xtype" : "Button",
183                      "string _change_passwd_success_body" : "Your password has been changed",
184                      "$ xns" : "Roo.bootstrap",
185                      "String html" : "Change Password",
186                      "String style" : "text-transform:none;",
187                      "string _change_passwd_success_title" : "Notice"
188                     }
189                    ]
190                   },
191                   {
192                    "Number md" : 6,
193                    "xtype" : "Column",
194                    "Number xs" : 6,
195                    "$ xns" : "Roo.bootstrap",
196                    "String style" : "text-align: right;",
197                    "Number sm" : 6,
198                    "items" : [
199                     {
200                      "listeners" : {
201                       "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}"
202                      },
203                      "xtype" : "Button",
204                      "$ xns" : "Roo.bootstrap",
205                      "String html" : "Logout",
206                      "String style" : "text-transform:none;"
207                     }
208                    ]
209                   }
210                  ]
211                 }
212                ]
213               }
214              ]
215             }
216            ]
217           }
218          ]
219         }
220        ]
221       }
222      ]
223     }
224    ]
225   }
226  ]
227 }