Mercurial > lada > lada-client
comparison app/view/zusatzwerte/Create.js @ 110:c4f97a5a9939
Added Forms to add Zusatzwerte
author | Torsten Irländer <torsten.irlaender@intevation.de> |
---|---|
date | Wed, 19 Jun 2013 14:10:54 +0200 |
parents | |
children | 70f80c4ef90e |
comparison
equal
deleted
inserted
replaced
109:2308094f5a8c | 110:c4f97a5a9939 |
---|---|
1 Ext.define('Lada.view.zusatzwerte.Create', { | |
2 extend: 'Ext.window.Window', | |
3 alias: 'widget.zusatzwertecreate', | |
4 | |
5 title: 'Maske für Zusatzwerte', | |
6 // Make size of the dialog dependend of the available space. | |
7 // TODO: Handle resizing the browser window. | |
8 width: Ext.getBody().getViewSize().width - 30, | |
9 height: Ext.getBody().getViewSize().height - 30, | |
10 autoShow: true, | |
11 autoScroll: true, | |
12 modal: true, | |
13 | |
14 requires: [ | |
15 'Lada.view.zusatzwerte.CreateForm' | |
16 ], | |
17 initComponent: function() { | |
18 var form = Ext.create('Lada.view.zusatzwerte.CreateForm'); | |
19 this.items = [form]; | |
20 this.buttons = [ | |
21 { | |
22 text: 'Speichern', | |
23 handler: form.commit, | |
24 scope: form | |
25 } | |
26 ]; | |
27 this.callParent(); | |
28 } | |
29 }); |