Mercurial > lada > lada-client
comparison app/view/orte/Create.js @ 109:2308094f5a8c
Added forms to add Orte
author | Torsten Irländer <torsten.irlaender@intevation.de> |
---|---|
date | Wed, 19 Jun 2013 14:10:25 +0200 |
parents | |
children | 26ac4c99f8c4 |
comparison
equal
deleted
inserted
replaced
108:6c69bbb61c65 | 109:2308094f5a8c |
---|---|
1 Ext.define('Lada.view.orte.Create', { | |
2 extend: 'Ext.window.Window', | |
3 alias: 'widget.ortecreate', | |
4 | |
5 title: 'Maske für Orte', | |
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.orte.CreateForm' | |
16 ], | |
17 initComponent: function() { | |
18 var form = Ext.create('Lada.view.orte.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 }); |