Mercurial > lada > lada-client
diff app/view/Viewport.js @ 383:fe8d6e1b08ff
Added toolbar to the mainwindow.
author | Torsten Irländer <torsten.irlaender@intevation.de> |
---|---|
date | Thu, 29 Aug 2013 14:14:27 +0200 |
parents | cebed9ef8293 |
children | ea424aacd07f |
line wrap: on
line diff
--- a/app/view/Viewport.js Thu Aug 29 10:28:58 2013 +0200 +++ b/app/view/Viewport.js Thu Aug 29 14:14:27 2013 +0200 @@ -42,7 +42,11 @@ var groups = info.get('groups'); var serverVersion = info.get('version'); var info = Ext.getCmp('systeminfo'); - info.update('Nutzer: '+user+' | Gruppe(n): '+groups+' | Server: '+serverVersion+' | Client: '+clientVersion); + var groupinfo = Ext.getCmp('groupinfo'); + var userinfo = Ext.getCmp('userinfo'); + userinfo.update(user); + groupinfo.update(groups); + info.update('Server: '+serverVersion+' | Client: '+clientVersion); info.show(); console.log(info); } @@ -143,10 +147,32 @@ * @private */ initSearch: function() { - this.items = { + this.items = [{ xtype: 'panel', title: '<center>Probenauswahlmaske</center>', bodyPadding: '10 10', + dockedItems: [ + { + xtype: "toolbar", + dock: "top", + items: [{ + xtype: "splitbutton", + text: "Info", + menu: { + items: [{ + text: "About" + }] + } + }, + "->", + "User:", + {xtype: "tbtext", id:"userinfo", text:"test"}, + "Blubb", + "Group:", + {xtype: "tbtext", id:"groupinfo", text:"test"} + ] + } + ], items: [ // Informationen über Nutzer/Gruppe/Version { @@ -198,6 +224,6 @@ hidden: false } ] - }; + }]; } });