comparison app/view/proben/CreateForm.js @ 121:c05fda928b82

Cleanup part two. Reenabled Proben edit but one use minimum version of the probenedit. Move some stores to the combobox definitons
author Torsten Irländer <torsten.irlaender@intevation.de>
date Fri, 21 Jun 2013 16:55:23 +0200
parents 95b08b96f5c9
children 9b14742a8117
comparison
equal deleted inserted replaced
120:19eab475bbe5 121:c05fda928b82
1 Ext.define('Lada.view.proben.CreateForm', { 1 Ext.define('Lada.view.proben.CreateForm', {
2 extend: 'Lada.view.widgets.LadaForm', 2 extend: 'Lada.view.widgets.LadaForm',
3 requires: [
4 'Lada.view.widgets.Datenbasis',
5 'Lada.view.widgets.Netzbetreiber',
6 'Lada.view.widgets.Betriebsart',
7 'Lada.view.widgets.Testdatensatz',
8 'Lada.view.widgets.Probenart',
9 'Lada.view.widgets.Uwb'
10 ],
3 model: 'Lada.model.Probe', 11 model: 'Lada.model.Probe',
4
5 initComponent: function() { 12 initComponent: function() {
6 this.items = [ 13 this.items = [
7 { 14 {
8 xtype: 'fieldset', 15 xtype: 'fieldset',
9 title: 'Probenangaben', 16 title: 'Probenangaben',
20 { 27 {
21 xtype: 'textfield', 28 xtype: 'textfield',
22 name: 'hauptprobenNr', 29 name: 'hauptprobenNr',
23 fieldLabel: 'Hauptprobennr.' 30 fieldLabel: 'Hauptprobennr.'
24 }, 31 },
25 //{
26 // xtype: 'textfield',
27 // name: 'probeId',
28 // fieldLabel: 'Probe-ID'
29 //},
30 { 32 {
31 xtype: 'fieldset', 33 xtype: 'fieldset',
32 title: 'Erweiterte Probenangaben', 34 title: 'Erweiterte Probenangaben',
33 collapsible: true, 35 collapsible: true,
34 collapsed: false, 36 collapsed: false,
143 name: 'z5' 145 name: 'z5'
144 } 146 }
145 ] 147 ]
146 } 148 }
147 ]; 149 ];
148 //this.buttons = [
149 // {
150 // text: 'Speichern',
151 // handler: this.commit,
152 // scope: this
153 // }
154 //];
155 this.callParent(); 150 this.callParent();
156 }, 151 },
157 buildDescriptors: function() { 152 buildDescriptors: function() {
158 var fields = new Array(); 153 var fields = new Array();
159 for ($i=0; $i<12; $i++) { 154 for ($i=0; $i<12; $i++) {

http://lada.wald.intevation.org