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

http://lada.wald.intevation.org