Mercurial > lada > lada-client
annotate app/view/status/CreateForm.js @ 405:85238577adc9
Show warnings when saving a new Probe.
author | Raimund Renkert <rrenkert@intevation.de> |
---|---|
date | Thu, 12 Sep 2013 12:31:27 +0200 |
parents | b7c419a2b476 |
children | debfcc7713e3 |
rev | line source |
---|---|
350
b7c419a2b476
Added documentation
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
276
diff
changeset
|
1 /* |
b7c419a2b476
Added documentation
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
276
diff
changeset
|
2 * Formular to create and edit a Status |
b7c419a2b476
Added documentation
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
276
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.CreateForm', { |
30ba9a98d627
Added forms to create a Messstatus
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
5 extend: 'Lada.view.widgets.LadaForm', |
30ba9a98d627
Added forms to create a Messstatus
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
6 requires : [ |
30ba9a98d627
Added forms to create a Messstatus
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
7 'Lada.view.widgets.Mst', |
30ba9a98d627
Added forms to create a Messstatus
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
8 'Lada.view.widgets.Statuswert' |
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 model: 'Lada.model.Status', |
30ba9a98d627
Added forms to create a Messstatus
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
11 initComponent: function() { |
30ba9a98d627
Added forms to create a Messstatus
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
12 this.items = [ |
30ba9a98d627
Added forms to create a Messstatus
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
13 { |
30ba9a98d627
Added forms to create a Messstatus
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
14 xtype: 'mst', |
30ba9a98d627
Added forms to create a Messstatus
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
15 label: 'Erzeuger', |
30ba9a98d627
Added forms to create a Messstatus
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
16 name: 'erzeuger' |
30ba9a98d627
Added forms to create a Messstatus
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
17 }, |
30ba9a98d627
Added forms to create a Messstatus
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
18 { |
30ba9a98d627
Added forms to create a Messstatus
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
19 xtype: 'statuswert', |
30ba9a98d627
Added forms to create a Messstatus
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
20 label: 'Status', |
30ba9a98d627
Added forms to create a Messstatus
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
21 name: 'status' |
30ba9a98d627
Added forms to create a Messstatus
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
22 }, |
30ba9a98d627
Added forms to create a Messstatus
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
23 { |
276
dee3e54a61b1
Use datetimepicker for all datefields
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
199
diff
changeset
|
24 xtype: 'datetime', |
199
30ba9a98d627
Added forms to create a Messstatus
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
25 label: 'Datum', |
30ba9a98d627
Added forms to create a Messstatus
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
26 name: 'sdatum' |
30ba9a98d627
Added forms to create a Messstatus
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
27 }, |
30ba9a98d627
Added forms to create a Messstatus
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
28 { |
30ba9a98d627
Added forms to create a Messstatus
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
29 xtype: 'textarea', |
30ba9a98d627
Added forms to create a Messstatus
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
30 label: 'Kommentar', |
30ba9a98d627
Added forms to create a Messstatus
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
31 name: 'skommentar' |
30ba9a98d627
Added forms to create a Messstatus
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
32 } |
30ba9a98d627
Added forms to create a Messstatus
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
33 ]; |
30ba9a98d627
Added forms to create a Messstatus
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
34 this.callParent(); |
30ba9a98d627
Added forms to create a Messstatus
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
35 } |
30ba9a98d627
Added forms to create a Messstatus
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
36 }); |
30ba9a98d627
Added forms to create a Messstatus
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
37 |