comparison app/view/Viewport.js @ 800:4b9b1d3ad9f1

Added about window, There are still some todos when retrieving the server version, the asynchronous request seems to fail and does not evaluate in time
author Dustin Demuth <dustin@intevation.de>
date Thu, 21 May 2015 17:59:48 +0200
parents 56f91254cd23
children fb99332bb48e
comparison
equal deleted inserted replaced
799:ad24af3fcf89 800:4b9b1d3ad9f1
20 'Lada.view.FilterPanel', 20 'Lada.view.FilterPanel',
21 'Lada.view.grid.FilterResult' 21 'Lada.view.grid.FilterResult'
22 ], 22 ],
23 layout: 'fit', 23 layout: 'fit',
24 initComponent: function() { 24 initComponent: function() {
25 var i18n = Lada.getApplication().bundle;
25 this.items = [{ 26 this.items = [{
26 title: '<center>Labordatenerfassung</center>', 27 title: '<center>Labordatenerfassung</center>',
27 layout: 'border', 28 layout: 'border',
28 name: 'main', 29 name: 'main',
29 items: [{ 30 items: [{
41 items: [{ 42 items: [{
42 xtype: 'splitbutton', 43 xtype: 'splitbutton',
43 text: 'Info', 44 text: 'Info',
44 menu: { 45 menu: {
45 items: [{ 46 items: [{
46 text: 'About', 47 text: i18n.getMsg('about.button.title'),
47 action: 'about' 48 action: 'about'
48 }, {
49 text: 'Anmeldeinformationen',
50 handler: function(){
51 logintime = new Date(Lada.logintime);
52 Ext.Msg.alert("Anmeldeinformationen",
53 "<p>"
54 + "Sie sind angemeldet mit der Kennung:"
55 + "<br />"
56 + Lada.username
57 + "</p>"
58 + "<p>"
59 + "Sie sind Mitglied der folgenden "
60 + "Gruppen:"
61 + "<br />"
62 + Lada.userroles
63 + "</p>"
64 + "<p>"
65 + "<br/>"
66 + "Die Anmeldung wurde durchgeführt um:"
67 + "<br />"
68 + Ext.Date.format(logintime, 'd.m.Y H:i:s P')
69 + "</p>"
70 );
71 }
72 } 49 }
73 ] 50 ]
74 } 51 }
75 }, '->', { 52 }, '->', {
76 xtype: 'tbtext', 53 xtype: 'tbtext',

http://lada.wald.intevation.org