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   "0323de4f66a1700e2173e9bcdce02715" : "Logout",
10   "617114bd6ef10884239510062dffa933" : "Your password has been changed",
11   "8f1e77e0d2be21da93cd4d9a939148f7" : "Change Password",
12   "24efa7ee4511563b16144f39706d594f" : "Notice"
13  },
14  "items" : [
15   {
16    "xtype" : "Border",
17    "$ el" : "document.body",
18    "$ xns" : "Roo.bootstrap.layout",
19    "bool is_root" : true,
20    "items" : [
21     {
22      "String tabPosition" : "top",
23      "xtype" : "Region",
24      "$ xns" : "Roo.bootstrap.layout",
25      "Boolean alwaysShowTabs" : true,
26      "* prop" : "center"
27     },
28     {
29      "xtype" : "Region",
30      "Boolean hideTabs" : true,
31      "Number height" : 50,
32      "$ xns" : "Roo.bootstrap.layout",
33      "* prop" : "north",
34      "String overflow" : "visible"
35     },
36     {
37      "Boolean fitContainer" : true,
38      "xtype" : "Content",
39      "$ xns" : "Roo.bootstrap.panel",
40      "String region" : "north",
41      "items" : [
42       {
43        "String position" : "fixed-top",
44        "String cls" : "headroom animated slideDown  no-srButton",
45        "Boolean srButton" : true,
46        "bool autohide" : true,
47        "xtype" : "NavHeaderbar",
48        "Boolean inverse" : false,
49        "Boolean desktopCenter" : false,
50        "$ String brand" : "'<img   cls=\"header-logo\" src=\"' +    Roo.BLANK_IMAGE_URL + '\">'",
51        "$ xns" : "Roo.bootstrap",
52        "String style" : "padding-bottom:0px;",
53        "items" : [
54         {
55          "String type" : "nav",
56          "xtype" : "NavGroup",
57          "String align" : "right",
58          "$ xns" : "Roo.bootstrap",
59          "String style" : "margin-top:0px;margin-bottom:0px;",
60          "items" : [
61           {
62            "listeners" : {
63             "render" : "function (_self)\n{\n    this.el.setVisibilityMode(Roo.Element.DISPLAY);\n    \n    this.el.show();\n}"
64            },
65            "Boolean preventDefault" : true,
66            "xtype" : "NavItem",
67            "$ html" : "Pman.Login.authUser.name + '<span class=\"badge\">42</span>'",
68            "$ xns" : "Roo.bootstrap",
69            "String icon" : "fa fa-user",
70            "items" : [
71             {
72              "listeners" : {
73               "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}"
74              },
75              "Boolean allowDomMove" : false,
76              "String cls" : "user-menu",
77              "xtype" : "Menu",
78              "$ xns" : "Roo.bootstrap",
79              "* prop" : "menu",
80              "items" : [
81               {
82                "String cls" : "user-body",
83                "Boolean preventDefault" : true,
84                "xtype" : "MenuItem",
85                "$ xns" : "Roo.bootstrap",
86                "Boolean isContainer" : true,
87                "items" : [
88                 {
89                  "xtype" : "Row",
90                  "$ xns" : "Roo.bootstrap",
91                  "items" : [
92                   {
93                    "Number md" : 9,
94                    "Number mdoff" : 3,
95                    "xtype" : "Column",
96                    "$ xns" : "Roo.bootstrap",
97                    "items" : [
98                     {
99                      "xtype" : "Row",
100                      "$ xns" : "Roo.bootstrap",
101                      "items" : [
102                       {
103                        "listeners" : {
104                         "render" : "function (_self)\n{\n \n    this.el.dom.innerHTML = '<b>' + Pman.Login.authUser.name + '</b>';\n    \n}"
105                        },
106                        "Number md" : 12,
107                        "xtype" : "Column",
108                        "$ xns" : "Roo.bootstrap",
109                        "String style" : "color:#333;text-align:right"
110                       },
111                       {
112                        "listeners" : {
113                         "render" : "function (_self)\n{\n   \n    this.el.dom.innerHTML = Pman.Login.authUser.email;\n    \n}"
114                        },
115                        "Number md" : 12,
116                        "xtype" : "Column",
117                        "$ xns" : "Roo.bootstrap",
118                        "String style" : "color:#333;text-align:right"
119                       }
120                      ]
121                     }
122                    ]
123                   }
124                  ]
125                 }
126                ]
127               },
128               {
129                "String cls" : "user-footer",
130                "Boolean preventDefault" : true,
131                "xtype" : "MenuItem",
132                "$ xns" : "Roo.bootstrap",
133                "Boolean isContainer" : true,
134                "items" : [
135                 {
136                  "xtype" : "Row",
137                  "$ xns" : "Roo.bootstrap",
138                  "items" : [
139                   {
140                    "Number md" : 6,
141                    "xtype" : "Column",
142                    "Number xs" : 6,
143                    "$ xns" : "Roo.bootstrap",
144                    "Number sm" : 6,
145                    "items" : [
146                     {
147                      "listeners" : {
148                       "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}"
149                      },
150                      "xtype" : "Button",
151                      "string _change_passwd_success_body" : "Your password has been changed",
152                      "$ xns" : "Roo.bootstrap",
153                      "String html" : "Change Password",
154                      "String style" : "text-transform:none;",
155                      "string _change_passwd_success_title" : "Notice"
156                     }
157                    ]
158                   },
159                   {
160                    "Number md" : 6,
161                    "xtype" : "Column",
162                    "Number xs" : 6,
163                    "$ xns" : "Roo.bootstrap",
164                    "String style" : "text-align: right;",
165                    "Number sm" : 6,
166                    "items" : [
167                     {
168                      "listeners" : {
169                       "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}"
170                      },
171                      "xtype" : "Button",
172                      "$ xns" : "Roo.bootstrap",
173                      "String html" : "Logout",
174                      "String style" : "text-transform:none;"
175                     }
176                    ]
177                   }
178                  ]
179                 }
180                ]
181               }
182              ]
183             }
184            ]
185           }
186          ]
187         }
188        ]
189       }
190      ]
191     }
192    ]
193   }
194  ]
195 }