annotate app/view/status/Create.js @ 280:1afccc0cab90

Issue55: Added ignoreFields parameter to the setReadonly function to be able to ignore some fields when setting the form into read only state.
author Torsten Irländer <torsten.irlaender@intevation.de>
date Thu, 08 Aug 2013 11:11:55 +0200
parents 11f8a2c1b610
children b7c419a2b476
rev   line source
199
30ba9a98d627 Added forms to create a Messstatus
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
1 Ext.define('Lada.view.status.Create', {
30ba9a98d627 Added forms to create a Messstatus
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
2 extend: 'Ext.window.Window',
30ba9a98d627 Added forms to create a Messstatus
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
3 alias: 'widget.statuscreate',
30ba9a98d627 Added forms to create a Messstatus
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
4
30ba9a98d627 Added forms to create a Messstatus
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
5 title: 'Maske für den Messstatus',
30ba9a98d627 Added forms to create a Messstatus
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
6 autoShow: true,
30ba9a98d627 Added forms to create a Messstatus
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
7 autoScroll: true,
30ba9a98d627 Added forms to create a Messstatus
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
8 modal: true,
30ba9a98d627 Added forms to create a Messstatus
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
9
30ba9a98d627 Added forms to create a Messstatus
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
10 initComponent: function() {
30ba9a98d627 Added forms to create a Messstatus
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
11 this.buttons = [
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 text: 'Speichern',
30ba9a98d627 Added forms to create a Messstatus
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
14 scope: form,
30ba9a98d627 Added forms to create a Messstatus
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
15 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
16 },
11f8a2c1b610 Added Cancel Button to all Windows. Changed order howthe form is initialized.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 199
diff changeset
17 {
11f8a2c1b610 Added Cancel Button to all Windows. Changed order howthe form is initialized.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 199
diff changeset
18 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
19 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
20 handler: this.close,
199
30ba9a98d627 Added forms to create a Messstatus
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
21 }
30ba9a98d627 Added forms to create a Messstatus
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
22 ];
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
23 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
24 this.items = [form];
199
30ba9a98d627 Added forms to create a Messstatus
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
25 this.callParent();
30ba9a98d627 Added forms to create a Messstatus
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
26 }
30ba9a98d627 Added forms to create a Messstatus
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
27 });

http://lada.wald.intevation.org