comparison app/view/form/Messprogramm.js @ 1199:0a7f0a09151c

Replace date-time picker with appropriate widget to select day of year. Validity period is not specific for a year. The calender widget was not appropriate here.
author Tom Gottfried <tom@intevation.de>
date Fri, 23 Sep 2016 16:49:26 +0200
parents 1ae5e4f0f2c8
children a24de34d6423
comparison
equal deleted inserted replaced
1198:3b6f40541ac6 1199:0a7f0a09151c
26 'Lada.model.Messprogramm', 26 'Lada.model.Messprogramm',
27 'Lada.model.MmtMessprogramm', 27 'Lada.model.MmtMessprogramm',
28 'Lada.view.widget.Probenintervall', 28 'Lada.view.widget.Probenintervall',
29 'Lada.view.widget.Location', 29 'Lada.view.widget.Location',
30 'Lada.view.widget.ProbenintervallSlider', 30 'Lada.view.widget.ProbenintervallSlider',
31 'Lada.view.widget.base.Datetime', 31 'Lada.view.widget.DayOfYear'
32 'Lada.view.widget.base.DateField'
33 ], 32 ],
34 33
35 model: 'Lada.model.Messprogramm', 34 model: 'Lada.model.Messprogramm',
36 minWidth: 650, 35 minWidth: 650,
37 margin: 5, 36 margin: 5,
260 type: 'hbox', 259 type: 'hbox',
261 align: 'stretch' 260 align: 'stretch'
262 }, 261 },
263 border: 0, 262 border: 0,
264 items: [{ 263 items: [{
265 xtype: 'datetime', 264 xtype: 'dayofyear',
266 allowBlank: false, 265 allowBlank: false,
267 fieldLabel: i18n.getMsg('gueltigVon'), 266 fieldLabel: i18n.getMsg('gueltigVon'),
268 margin: '0, 30, 5, 5', 267 width: '50%',
269 labelWidth: 90, 268 labelWidth: 90,
270 name: 'gueltigVon', 269 name: 'gueltigVon',
271 format: 'd.m.Y', 270 border: false
272 period: 'start'
273 }, { 271 }, {
274 xtype: 'datetime', 272 xtype: 'dayofyear',
275 allowBlank: false, 273 allowBlank: false,
276 fieldLabel: i18n.getMsg('gueltigBis'), 274 fieldLabel: i18n.getMsg('gueltigBis'),
277 margin: '0, 5, 5, 5', 275 width: '50%',
278 labelWidth: 40, 276 labelWidth: 40,
279 name: 'gueltigBis', 277 name: 'gueltigBis',
280 format: 'd.m.Y', 278 border: false
281 period: 'end'
282 }] 279 }]
283 }] 280 }]
284 }, { 281 }, {
285 // Medium 282 // Medium
286 xtype: 'fieldset', 283 xtype: 'fieldset',
626 this.down('cbox[name=probenartId]').clearWarningOrError(); 623 this.down('cbox[name=probenartId]').clearWarningOrError();
627 this.down('cbox[name=netzbetreiberId]').clearWarningOrError(); 624 this.down('cbox[name=netzbetreiberId]').clearWarningOrError();
628 // clear messages in intervall definition 625 // clear messages in intervall definition
629 this.down('fset[name=probenIntervallFieldset]').clearMessages(); 626 this.down('fset[name=probenIntervallFieldset]').clearMessages();
630 this.down('cbox[name=probenintervall]').clearWarningOrError(); 627 this.down('cbox[name=probenintervall]').clearWarningOrError();
631 this.down('fset[name=gueltigPeriodFieldset]').clearMessages();
632 this.down('numfield[name=teilintervallVon]').clearWarningOrError(); 628 this.down('numfield[name=teilintervallVon]').clearWarningOrError();
633 this.down('numfield[name=teilintervallBis]').clearWarningOrError(); 629 this.down('numfield[name=teilintervallBis]').clearWarningOrError();
634 this.down('datetime[name=gueltigVon]').clearWarningOrError(); 630 this.down('dayofyear[name=gueltigVon]').clearWarningOrError();
635 this.down('datetime[name=gueltigBis]').clearWarningOrError(); 631 this.down('dayofyear[name=gueltigBis]').clearWarningOrError();
636 //no clear for probeNehmerId 632 //no clear for probeNehmerId
637 // Deskriptoren are missing 633 // Deskriptoren are missing
638 this.down('cbox[name=umwId]').clearWarningOrError(); 634 this.down('cbox[name=umwId]').clearWarningOrError();
639 this.down('cbox[name=ortId]').clearWarningOrError(); 635 this.down('cbox[name=ortId]').clearWarningOrError();
640 }, 636 },

http://lada.wald.intevation.org