Mercurial > lada > lada-client
annotate app/view/proben/CreateForm.js @ 81:1279baefd61a
Do not collapse the fields, as required field should be visible on creation.
author | Torsten Irländer <torsten.irlaender@intevation.de> |
---|---|
date | Tue, 11 Jun 2013 09:58:40 +0200 |
parents | 9dda938db216 |
children | 679dedddb688 |
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 { |
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
15 xtype: 'textfield', |
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', |
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
68 name: 'x11', |
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
69 fieldLabel: 'Datensatzerzeuger' |
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
70 } |
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
71 ] |
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
72 } |
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
73 ] |
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
74 }, |
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
75 // Medium |
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 xtype: 'fieldset', |
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
78 title: 'Medium', |
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
79 defaults: { |
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
80 labelWidth: 150 |
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
81 }, |
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
82 items: [ |
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
83 { |
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
84 xtype: 'uwb', |
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
85 name: 'umwId', |
80
9dda938db216
Mark field as required.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
79
diff
changeset
|
86 fieldLabel: 'Umweltbereich', |
9dda938db216
Mark field as required.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
79
diff
changeset
|
87 allowBlank: false |
67
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
88 }, |
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: 'textfield', |
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
91 name: 'media', |
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
92 fieldLabel: 'Medienbezeichnung' |
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
93 }, |
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 xtype: 'textfield', |
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
96 name: 'mediaDesk', |
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
97 fieldLabel: 'Deskriptoren' |
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
98 }, |
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 xtype: 'fieldset', |
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
101 title: 'Details Deskriptoren', |
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
102 collapsible: true, |
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
103 collapsed: true, |
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
104 defaultType: 'textfield', |
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
105 items: this.buildDescriptors() |
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
106 } |
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
107 ] |
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
108 }, |
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
109 // Zeit |
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
110 { |
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
111 xtype: 'fieldset', |
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
112 title: 'Zeit', |
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
113 defaultType: 'datefield', |
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
114 defaults: { |
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
115 labelWidth: 150 |
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 items: [ |
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
118 { |
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
119 fieldLabel: 'Probennahme Beginn', |
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
120 name: 'probeentnahmeBeginn' |
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
121 }, |
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 fieldLabel: 'Probennahme Ende', |
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
124 name: 'probeentnahmeEnde' |
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
125 }, |
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
126 { |
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
127 fieldLabel: 'Sollzeit Von', |
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
128 name: 'solldatumBeginn' |
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
129 }, |
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
130 { |
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
131 fieldLabel: 'Sollzeit Bis', |
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
132 name: 'solldatumEnde' |
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
133 }, |
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
134 { |
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
135 fieldLabel: 'Ursprungszeit', |
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
136 name: 'z5' |
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
137 } |
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
138 ] |
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 //this.buttons = [ |
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
142 // { |
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
143 // text: 'Speichern', |
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
144 // handler: this.commit, |
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
145 // scope: this |
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 //]; |
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
148 this.callParent(); |
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
149 }, |
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
150 buildDescriptors: function() { |
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
151 var fields = new Array(); |
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
152 for ($i=0; $i<12; $i++) { |
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
153 fields[$i] = {fieldLabel: 'S'+$i, name: 's'+$i}; |
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
154 } |
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
155 return fields; |
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
156 } |
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
157 }); |