Mercurial > lada > lada-client
annotate app/view/status/CreateForm.js @ 276:dee3e54a61b1
Use datetimepicker for all datefields
author | Torsten Irländer <torsten.irlaender@intevation.de> |
---|---|
date | Wed, 07 Aug 2013 12:02:50 +0200 |
parents | 30ba9a98d627 |
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.CreateForm', { |
30ba9a98d627
Added forms to create a Messstatus
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
2 extend: 'Lada.view.widgets.LadaForm', |
30ba9a98d627
Added forms to create a Messstatus
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
3 requires : [ |
30ba9a98d627
Added forms to create a Messstatus
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
4 'Lada.view.widgets.Mst', |
30ba9a98d627
Added forms to create a Messstatus
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
5 'Lada.view.widgets.Statuswert' |
30ba9a98d627
Added forms to create a Messstatus
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
6 ], |
30ba9a98d627
Added forms to create a Messstatus
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
7 model: 'Lada.model.Status', |
30ba9a98d627
Added forms to create a Messstatus
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
8 initComponent: function() { |
30ba9a98d627
Added forms to create a Messstatus
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
9 this.items = [ |
30ba9a98d627
Added forms to create a Messstatus
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
10 { |
30ba9a98d627
Added forms to create a Messstatus
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
11 xtype: 'mst', |
30ba9a98d627
Added forms to create a Messstatus
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
12 label: 'Erzeuger', |
30ba9a98d627
Added forms to create a Messstatus
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
13 name: 'erzeuger' |
30ba9a98d627
Added forms to create a Messstatus
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
14 }, |
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 xtype: 'statuswert', |
30ba9a98d627
Added forms to create a Messstatus
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
17 label: 'Status', |
30ba9a98d627
Added forms to create a Messstatus
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
18 name: 'status' |
30ba9a98d627
Added forms to create a Messstatus
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
19 }, |
30ba9a98d627
Added forms to create a Messstatus
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
20 { |
276
dee3e54a61b1
Use datetimepicker for all datefields
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
199
diff
changeset
|
21 xtype: 'datetime', |
199
30ba9a98d627
Added forms to create a Messstatus
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
22 label: 'Datum', |
30ba9a98d627
Added forms to create a Messstatus
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
23 name: 'sdatum' |
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 { |
30ba9a98d627
Added forms to create a Messstatus
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
26 xtype: 'textarea', |
30ba9a98d627
Added forms to create a Messstatus
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
27 label: 'Kommentar', |
30ba9a98d627
Added forms to create a Messstatus
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
28 name: 'skommentar' |
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 ]; |
30ba9a98d627
Added forms to create a Messstatus
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
31 this.callParent(); |
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 |