Mercurial > lada > lada-client
annotate app/view/status/Create.js @ 404:9caedffa5c7b
Added tag 0.5 for changeset e3e4adb00f32
author | Raimund Renkert <rrenkert@intevation.de> |
---|---|
date | Wed, 11 Sep 2013 11:16:13 +0200 |
parents | b7c419a2b476 |
children | f9bb1ecf6462 |
rev | line source |
---|---|
350
b7c419a2b476
Added documentation
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
271
diff
changeset
|
1 /* |
b7c419a2b476
Added documentation
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
271
diff
changeset
|
2 * Window to create and edit a Status |
b7c419a2b476
Added documentation
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
271
diff
changeset
|
3 */ |
199
30ba9a98d627
Added forms to create a Messstatus
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
4 Ext.define('Lada.view.status.Create', { |
30ba9a98d627
Added forms to create a Messstatus
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
5 extend: 'Ext.window.Window', |
30ba9a98d627
Added forms to create a Messstatus
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
6 alias: 'widget.statuscreate', |
30ba9a98d627
Added forms to create a Messstatus
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
7 |
30ba9a98d627
Added forms to create a Messstatus
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
8 title: 'Maske für den Messstatus', |
30ba9a98d627
Added forms to create a Messstatus
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
9 autoShow: true, |
30ba9a98d627
Added forms to create a Messstatus
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
10 autoScroll: true, |
30ba9a98d627
Added forms to create a Messstatus
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
11 modal: true, |
30ba9a98d627
Added forms to create a Messstatus
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
12 |
30ba9a98d627
Added forms to create a Messstatus
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
13 initComponent: function() { |
30ba9a98d627
Added forms to create a Messstatus
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
14 this.buttons = [ |
30ba9a98d627
Added forms to create a Messstatus
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
15 { |
30ba9a98d627
Added forms to create a Messstatus
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
16 text: 'Speichern', |
30ba9a98d627
Added forms to create a Messstatus
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
17 scope: form, |
30ba9a98d627
Added forms to create a Messstatus
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
18 action: 'save' |
271
11f8a2c1b610
Added Cancel Button to all Windows. Changed order howthe form is initialized.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
199
diff
changeset
|
19 }, |
11f8a2c1b610
Added Cancel Button to all Windows. Changed order howthe form is initialized.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
199
diff
changeset
|
20 { |
11f8a2c1b610
Added Cancel Button to all Windows. Changed order howthe form is initialized.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
199
diff
changeset
|
21 text: 'Abbrechen', |
11f8a2c1b610
Added Cancel Button to all Windows. Changed order howthe form is initialized.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
199
diff
changeset
|
22 scope: this, |
11f8a2c1b610
Added Cancel Button to all Windows. Changed order howthe form is initialized.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
199
diff
changeset
|
23 handler: this.close, |
199
30ba9a98d627
Added forms to create a Messstatus
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
24 } |
30ba9a98d627
Added forms to create a Messstatus
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
25 ]; |
271
11f8a2c1b610
Added Cancel Button to all Windows. Changed order howthe form is initialized.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
199
diff
changeset
|
26 var form = Ext.create('Lada.view.status.CreateForm', this.initialConfig); |
11f8a2c1b610
Added Cancel Button to all Windows. Changed order howthe form is initialized.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
199
diff
changeset
|
27 this.items = [form]; |
199
30ba9a98d627
Added forms to create a Messstatus
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
28 this.callParent(); |
30ba9a98d627
Added forms to create a Messstatus
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
29 } |
30ba9a98d627
Added forms to create a Messstatus
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
30 }); |