comparison app/view/orte/CreateOrt.js @ 446:b3e806045a5a

New view to create ort details.
author Raimund Renkert <raimund.renkert@intevation.de>
date Thu, 05 Dec 2013 09:56:50 +0100
parents
children e228fecd1577
comparison
equal deleted inserted replaced
445:a122424f2f0f 446:b3e806045a5a
1 /**
2 *
3 */
4 Ext.define('Lada.view.orte.CreateOrt', {
5 extend: 'Ext.window.Window',
6 alias: 'widget.createortdetail',
7 title: 'Neuer Ort',
8
9 /**
10 * @private
11 * Initialize the view.
12 */
13 initComponent: function() {
14 var me = this;
15
16 var form = Ext.create('Ext.form.Panel', {
17 items: [{
18 xtype: 'textfield',
19 maxLength: 100,
20 name: 'ort_beschreibung',
21 fieldLabel: 'Beschreibung'
22 },
23 {
24 xtype: 'staat',
25 name: 'ort_staatId',
26 fieldLabel: 'Staat'
27 },
28 {
29 xtype: 'verwaltungseinheiten',
30 name: 'ort_gemId',
31 fieldLabel: 'Gemeinde'
32 },
33 {
34 xtype: 'numberfield',
35 name: 'ort_latitude',
36 fieldLabel: 'Lat'
37 },
38 {
39 xtype: 'numberfield',
40 name: 'ort_longitude',
41 fieldLabel: 'Lon'
42 },
43 {
44 xtype: 'numberfield',
45 name: 'ort_hoeheLand',
46 fieldLabel: 'Höhe'
47 }]
48 });
49
50 me.items = [form];
51 this.buttons = [
52 {
53 text: 'Speichern',
54 scope: form,
55 action: 'save'
56 },
57 {
58 text: 'Abbrechen',
59 scope: this,
60 handler: this.close
61 }
62 ];
63 this.callParent(arguments);
64 }
65 });
66

http://lada.wald.intevation.org