comparison app/view/form/Probe.js @ 926:c75f13578315

Changed 'Solldatum' fields to readonly fields without default value.
author Raimund Renkert <raimund.renkert@intevation.de>
date Fri, 11 Sep 2015 14:18:52 +0200
parents 9265637fe6c0
children e2a26f9733ee
comparison
equal deleted inserted replaced
925:81e7c847cb58 926:c75f13578315
191 layout: { 191 layout: {
192 type: 'hbox', 192 type: 'hbox',
193 }, 193 },
194 items: [{ 194 items: [{
195 xtype: 'datetime', 195 xtype: 'datetime',
196 emptyText: ' ',
196 fieldLabel: 'Sollzeitraum von', 197 fieldLabel: 'Sollzeitraum von',
197 labelWidth: 120, 198 labelWidth: 120,
198 margin: '0, 5, 5, 5', 199 margin: '0, 5, 5, 5',
199 name: 'solldatumBeginn', 200 name: 'solldatumBeginn',
200 format: 'd.m.Y H:i', 201 format: 'd.m.Y H:i',
201 period: 'start' 202 period: 'start',
203 readOnly: true
202 }, { 204 }, {
203 xtype: 'datetime', 205 xtype: 'datetime',
206 emptyText: ' ',
204 fieldLabel: 'bis', 207 fieldLabel: 'bis',
205 labelWidth: 10, 208 labelWidth: 10,
206 margin: '0, 5, 5, 5', 209 margin: '0, 5, 5, 5',
207 name: 'solldatumEnde', 210 name: 'solldatumEnde',
208 format: 'd.m.Y H:i', 211 format: 'd.m.Y H:i',
209 period: 'end' 212 period: 'end',
213 readOnly: true
210 }] 214 }]
211 }, { 215 }, {
212 xtype: 'fset', 216 xtype: 'fset',
213 name: 'entnahmePeriod', 217 name: 'entnahmePeriod',
214 width: '100%', 218 width: '100%',
425 this.down('textfield[name=media]').setReadOnly(value); 429 this.down('textfield[name=media]').setReadOnly(value);
426 this.down('tfield[name=mediaDesk]').setReadOnly(value); 430 this.down('tfield[name=mediaDesk]').setReadOnly(value);
427 this.down('cbox[name=umwId]').setReadOnly(value); 431 this.down('cbox[name=umwId]').setReadOnly(value);
428 this.down('datetime[name=probeentnahmeBeginn]').setReadOnly(value); 432 this.down('datetime[name=probeentnahmeBeginn]').setReadOnly(value);
429 this.down('datetime[name=probeentnahmeEnde]').setReadOnly(value); 433 this.down('datetime[name=probeentnahmeEnde]').setReadOnly(value);
430 this.down('datetime[name=solldatumBeginn]').setReadOnly(value);
431 this.down('datetime[name=solldatumEnde]').setReadOnly(value);
432 this.down('numberfield[name=probeNehmerId]').setReadOnly(value); 434 this.down('numberfield[name=probeNehmerId]').setReadOnly(value);
433 435
434 //Deskriptoren 436 //Deskriptoren
435 for (var i = 0; i < 12; i++) { 437 for (var i = 0; i < 12; i++) {
436 this.down('deskriptor[layer='+i+']').setReadOnly(value); 438 this.down('deskriptor[layer='+i+']').setReadOnly(value);

http://lada.wald.intevation.org