Mercurial > lada > lada-client
annotate app/view/status/CreateForm.js @ 488:f7446ebfe5d0
Added and updated models.
author | Raimund Renkert <raimund.renkert@intevation.de> |
---|---|
date | Fri, 31 Oct 2014 21:10:35 +0100 |
parents | debfcc7713e3 |
children | 446e99cfd425 |
rev | line source |
---|---|
472
debfcc7713e3
Added license header to each file.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
350
diff
changeset
|
1 /* Copyright (C) 2013 by Bundesamt fuer Strahlenschutz |
debfcc7713e3
Added license header to each file.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
350
diff
changeset
|
2 * Software engineering by Intevation GmbH |
debfcc7713e3
Added license header to each file.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
350
diff
changeset
|
3 * |
debfcc7713e3
Added license header to each file.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
350
diff
changeset
|
4 * This file is Free Software under the GNU GPL (v>=3) |
debfcc7713e3
Added license header to each file.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
350
diff
changeset
|
5 * and comes with ABSOLUTELY NO WARRANTY! Check out |
debfcc7713e3
Added license header to each file.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
350
diff
changeset
|
6 * the documentation coming with IMIS-Labordaten-Application for details. |
debfcc7713e3
Added license header to each file.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
350
diff
changeset
|
7 */ |
debfcc7713e3
Added license header to each file.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
350
diff
changeset
|
8 |
350
b7c419a2b476
Added documentation
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
276
diff
changeset
|
9 /* |
b7c419a2b476
Added documentation
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
276
diff
changeset
|
10 * Formular to create and edit a Status |
b7c419a2b476
Added documentation
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
276
diff
changeset
|
11 */ |
199
30ba9a98d627
Added forms to create a Messstatus
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
12 Ext.define('Lada.view.status.CreateForm', { |
30ba9a98d627
Added forms to create a Messstatus
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
13 extend: 'Lada.view.widgets.LadaForm', |
30ba9a98d627
Added forms to create a Messstatus
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
14 requires : [ |
30ba9a98d627
Added forms to create a Messstatus
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
15 'Lada.view.widgets.Mst', |
30ba9a98d627
Added forms to create a Messstatus
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
16 'Lada.view.widgets.Statuswert' |
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 model: 'Lada.model.Status', |
30ba9a98d627
Added forms to create a Messstatus
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
19 initComponent: function() { |
30ba9a98d627
Added forms to create a Messstatus
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
20 this.items = [ |
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 xtype: 'mst', |
30ba9a98d627
Added forms to create a Messstatus
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
23 label: 'Erzeuger', |
30ba9a98d627
Added forms to create a Messstatus
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
24 name: 'erzeuger' |
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 { |
30ba9a98d627
Added forms to create a Messstatus
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
27 xtype: 'statuswert', |
30ba9a98d627
Added forms to create a Messstatus
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
28 label: 'Status', |
30ba9a98d627
Added forms to create a Messstatus
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
29 name: 'status' |
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 { |
276
dee3e54a61b1
Use datetimepicker for all datefields
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
199
diff
changeset
|
32 xtype: 'datetime', |
199
30ba9a98d627
Added forms to create a Messstatus
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
33 label: 'Datum', |
30ba9a98d627
Added forms to create a Messstatus
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
34 name: 'sdatum' |
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 xtype: 'textarea', |
30ba9a98d627
Added forms to create a Messstatus
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
38 label: 'Kommentar', |
30ba9a98d627
Added forms to create a Messstatus
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
39 name: 'skommentar' |
30ba9a98d627
Added forms to create a Messstatus
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
40 } |
30ba9a98d627
Added forms to create a Messstatus
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
41 ]; |
30ba9a98d627
Added forms to create a Messstatus
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
42 this.callParent(); |
30ba9a98d627
Added forms to create a Messstatus
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
43 } |
30ba9a98d627
Added forms to create a Messstatus
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
44 }); |
30ba9a98d627
Added forms to create a Messstatus
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
45 |