annotate app/view/proben/CreateForm.js @ 120:19eab475bbe5

Clean up part one. Reduced application to the search page. Moved some stores for comoboboxes right to the combobox
author Torsten Irländer <torsten.irlaender@intevation.de>
date Fri, 21 Jun 2013 16:53:39 +0200
parents 95b08b96f5c9
children c05fda928b82
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 {
91
95b08b96f5c9 Added new widget for the netzbetreiber.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 87
diff changeset
67 xtype: 'netzbetreiber',
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',
91
95b08b96f5c9 Added new widget for the netzbetreiber.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 87
diff changeset
70 editable: false,
87
ee1d1305dcff Added field for netzbetreiber. Is needed because of FK constraints.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 82
diff changeset
71 allowBlank: false
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 {
ee1d1305dcff Added field for netzbetreiber. Is needed because of FK constraints.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 82
diff changeset
74 xtype: 'textfield',
67
7ea76e760fc2 Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
75 name: 'x11',
7ea76e760fc2 Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
76 fieldLabel: 'Datensatzerzeuger'
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 },
7ea76e760fc2 Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
82 // Medium
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: 'fieldset',
7ea76e760fc2 Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
85 title: 'Medium',
7ea76e760fc2 Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
86 defaults: {
7ea76e760fc2 Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
87 labelWidth: 150
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 items: [
7ea76e760fc2 Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
90 {
7ea76e760fc2 Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
91 xtype: 'uwb',
7ea76e760fc2 Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
92 name: 'umwId',
80
9dda938db216 Mark field as required.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 79
diff changeset
93 fieldLabel: 'Umweltbereich',
9dda938db216 Mark field as required.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 79
diff changeset
94 allowBlank: false
67
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 {
7ea76e760fc2 Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
97 xtype: 'textfield',
7ea76e760fc2 Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
98 name: 'media',
7ea76e760fc2 Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
99 fieldLabel: 'Medienbezeichnung'
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 {
7ea76e760fc2 Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
102 xtype: 'textfield',
7ea76e760fc2 Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
103 name: 'mediaDesk',
7ea76e760fc2 Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
104 fieldLabel: 'Deskriptoren'
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 {
7ea76e760fc2 Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
107 xtype: 'fieldset',
7ea76e760fc2 Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
108 title: 'Details Deskriptoren',
7ea76e760fc2 Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
109 collapsible: true,
7ea76e760fc2 Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
110 collapsed: true,
7ea76e760fc2 Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
111 defaultType: 'textfield',
7ea76e760fc2 Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
112 items: this.buildDescriptors()
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 },
7ea76e760fc2 Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
116 // Zeit
7ea76e760fc2 Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
117 {
7ea76e760fc2 Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
118 xtype: 'fieldset',
7ea76e760fc2 Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
119 title: 'Zeit',
7ea76e760fc2 Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
120 defaultType: 'datefield',
7ea76e760fc2 Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
121 defaults: {
7ea76e760fc2 Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
122 labelWidth: 150
7ea76e760fc2 Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
123 },
7ea76e760fc2 Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
124 items: [
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 fieldLabel: 'Probennahme Beginn',
7ea76e760fc2 Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
127 name: 'probeentnahmeBeginn'
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 {
7ea76e760fc2 Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
130 fieldLabel: 'Probennahme Ende',
7ea76e760fc2 Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
131 name: 'probeentnahmeEnde'
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 {
7ea76e760fc2 Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
134 fieldLabel: 'Sollzeit Von',
7ea76e760fc2 Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
135 name: 'solldatumBeginn'
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 {
7ea76e760fc2 Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
138 fieldLabel: 'Sollzeit Bis',
7ea76e760fc2 Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
139 name: 'solldatumEnde'
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 {
7ea76e760fc2 Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
142 fieldLabel: 'Ursprungszeit',
7ea76e760fc2 Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
143 name: 'z5'
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 ];
7ea76e760fc2 Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
148 //this.buttons = [
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 // text: 'Speichern',
7ea76e760fc2 Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
151 // handler: this.commit,
7ea76e760fc2 Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
152 // scope: this
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 //];
7ea76e760fc2 Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
155 this.callParent();
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 buildDescriptors: function() {
7ea76e760fc2 Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
158 var fields = new Array();
7ea76e760fc2 Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
159 for ($i=0; $i<12; $i++) {
7ea76e760fc2 Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
160 fields[$i] = {fieldLabel: 'S'+$i, name: 's'+$i};
7ea76e760fc2 Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
161 }
7ea76e760fc2 Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
162 return fields;
7ea76e760fc2 Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
163 }
7ea76e760fc2 Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
164 });

http://lada.wald.intevation.org