Mercurial > lada > lada-client
annotate app/view/proben/CreateForm.js @ 89:549929d0b72e
Comment out ProbeID. Should be be changed.
author | Torsten Irländer <torsten.irlaender@intevation.de> |
---|---|
date | Tue, 11 Jun 2013 13:21:43 +0200 |
parents | ee1d1305dcff |
children | 95b08b96f5c9 |
rev | line source |
---|---|
67
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
1 Ext.define('Lada.view.proben.CreateForm', { |
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
2 extend: 'Lada.view.widgets.LadaForm', |
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
3 model: 'Lada.model.Probe', |
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
4 |
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
5 initComponent: function() { |
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
6 this.items = [ |
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
7 { |
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
8 xtype: 'fieldset', |
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
9 title: 'Probenangaben', |
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
10 defaults: { |
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
11 labelWidth: 150 |
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
12 }, |
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
13 items: [ |
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
14 { |
82
679dedddb688
Change fieldtype of Messstelle to combobox.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
81
diff
changeset
|
15 xtype: 'mst', |
67
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
16 name: 'mstId', |
80
9dda938db216
Mark field as required.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
79
diff
changeset
|
17 fieldLabel: 'Messstelle', |
9dda938db216
Mark field as required.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
79
diff
changeset
|
18 allowBlank: false |
67
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
19 }, |
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
20 { |
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
21 xtype: 'textfield', |
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
22 name: 'hauptprobenNr', |
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
23 fieldLabel: 'Hauptprobennr.' |
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
24 }, |
78
a8619efdf3ae
Removed ID field from create form as providing a value here seems to trigger a
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
67
diff
changeset
|
25 //{ |
a8619efdf3ae
Removed ID field from create form as providing a value here seems to trigger a
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
67
diff
changeset
|
26 // xtype: 'textfield', |
a8619efdf3ae
Removed ID field from create form as providing a value here seems to trigger a
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
67
diff
changeset
|
27 // name: 'probeId', |
a8619efdf3ae
Removed ID field from create form as providing a value here seems to trigger a
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
67
diff
changeset
|
28 // fieldLabel: 'Probe-ID' |
a8619efdf3ae
Removed ID field from create form as providing a value here seems to trigger a
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
67
diff
changeset
|
29 //}, |
67
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
30 { |
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
31 xtype: 'fieldset', |
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
32 title: 'Erweiterte Probenangaben', |
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
33 collapsible: true, |
81
1279baefd61a
Do not collapse the fields, as required field should be visible on creation.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
80
diff
changeset
|
34 collapsed: false, |
67
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
35 items: [ |
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
36 { |
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
37 xtype: 'datenbasis', |
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
38 id: 'datenbasis', |
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
39 editable: false, |
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
40 name: 'datenbasisId', |
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
41 fieldLabel: 'Datenbasis' |
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
42 }, |
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
43 { |
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
44 xtype: 'betriebsart', |
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
45 name: 'baId', |
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
46 fieldLabel: 'Betriebsart' |
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
47 }, |
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
48 { |
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
49 xtype: 'testdatensatz', |
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
50 name: 'test', |
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
51 fieldLabel: 'Testdatensatz' |
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
52 }, |
79
9eeddf6e40f7
Fixed fieldnaming.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
78
diff
changeset
|
53 { |
9eeddf6e40f7
Fixed fieldnaming.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
78
diff
changeset
|
54 xtype: 'probenart', |
9eeddf6e40f7
Fixed fieldnaming.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
78
diff
changeset
|
55 id: 'probenart', |
9eeddf6e40f7
Fixed fieldnaming.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
78
diff
changeset
|
56 editable: false, |
9eeddf6e40f7
Fixed fieldnaming.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
78
diff
changeset
|
57 name: 'probenartId', |
9eeddf6e40f7
Fixed fieldnaming.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
78
diff
changeset
|
58 fieldLabel: 'Probenart', |
9eeddf6e40f7
Fixed fieldnaming.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
78
diff
changeset
|
59 allowBlank: false |
9eeddf6e40f7
Fixed fieldnaming.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
78
diff
changeset
|
60 }, |
67
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
61 { |
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
62 xtype: 'textfield', |
79
9eeddf6e40f7
Fixed fieldnaming.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
78
diff
changeset
|
63 name: 'probeNehmerId', |
67
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
64 fieldLabel: 'Probennehmer' |
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
65 }, |
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
66 { |
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
67 xtype: 'textfield', |
87
ee1d1305dcff
Added field for netzbetreiber. Is needed because of FK constraints.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
82
diff
changeset
|
68 name: 'netzbetreiberId', |
ee1d1305dcff
Added field for netzbetreiber. Is needed because of FK constraints.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
82
diff
changeset
|
69 fieldLabel: 'Netzbetreiber', |
ee1d1305dcff
Added field for netzbetreiber. Is needed because of FK constraints.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
82
diff
changeset
|
70 allowBlank: false |
ee1d1305dcff
Added field for netzbetreiber. Is needed because of FK constraints.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
82
diff
changeset
|
71 }, |
ee1d1305dcff
Added field for netzbetreiber. Is needed because of FK constraints.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
82
diff
changeset
|
72 { |
ee1d1305dcff
Added field for netzbetreiber. Is needed because of FK constraints.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
82
diff
changeset
|
73 xtype: 'textfield', |
67
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
74 name: 'x11', |
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
75 fieldLabel: 'Datensatzerzeuger' |
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
76 } |
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
77 ] |
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
78 } |
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
79 ] |
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
80 }, |
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
81 // Medium |
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
82 { |
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
83 xtype: 'fieldset', |
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
84 title: 'Medium', |
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
85 defaults: { |
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
86 labelWidth: 150 |
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
87 }, |
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
88 items: [ |
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
89 { |
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
90 xtype: 'uwb', |
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
91 name: 'umwId', |
80
9dda938db216
Mark field as required.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
79
diff
changeset
|
92 fieldLabel: 'Umweltbereich', |
9dda938db216
Mark field as required.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
79
diff
changeset
|
93 allowBlank: false |
67
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
94 }, |
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
95 { |
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
96 xtype: 'textfield', |
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
97 name: 'media', |
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
98 fieldLabel: 'Medienbezeichnung' |
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
99 }, |
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
100 { |
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
101 xtype: 'textfield', |
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
102 name: 'mediaDesk', |
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
103 fieldLabel: 'Deskriptoren' |
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
104 }, |
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
105 { |
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
106 xtype: 'fieldset', |
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
107 title: 'Details Deskriptoren', |
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
108 collapsible: true, |
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
109 collapsed: true, |
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
110 defaultType: 'textfield', |
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
111 items: this.buildDescriptors() |
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
112 } |
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
113 ] |
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
114 }, |
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
115 // Zeit |
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
116 { |
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
117 xtype: 'fieldset', |
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
118 title: 'Zeit', |
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
119 defaultType: 'datefield', |
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
120 defaults: { |
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
121 labelWidth: 150 |
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
122 }, |
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
123 items: [ |
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
124 { |
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
125 fieldLabel: 'Probennahme Beginn', |
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
126 name: 'probeentnahmeBeginn' |
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
127 }, |
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
128 { |
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
129 fieldLabel: 'Probennahme Ende', |
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
130 name: 'probeentnahmeEnde' |
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
131 }, |
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
132 { |
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
133 fieldLabel: 'Sollzeit Von', |
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
134 name: 'solldatumBeginn' |
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
135 }, |
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
136 { |
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
137 fieldLabel: 'Sollzeit Bis', |
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
138 name: 'solldatumEnde' |
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
139 }, |
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
140 { |
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
141 fieldLabel: 'Ursprungszeit', |
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
142 name: 'z5' |
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
143 } |
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
144 ] |
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
145 } |
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
146 ]; |
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
147 //this.buttons = [ |
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
148 // { |
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
149 // text: 'Speichern', |
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
150 // handler: this.commit, |
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
151 // scope: this |
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
152 // } |
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
153 //]; |
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
154 this.callParent(); |
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
155 }, |
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
156 buildDescriptors: function() { |
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
157 var fields = new Array(); |
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
158 for ($i=0; $i<12; $i++) { |
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
159 fields[$i] = {fieldLabel: 'S'+$i, name: 's'+$i}; |
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
160 } |
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
161 return fields; |
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
162 } |
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
163 }); |