Mercurial > lada > lada-client
comparison app/view/form/Messprogramm.js @ 1168:40a07eb873bf
Add numberfield with error/warning functionality and use for Messprogramm form.
author | Tom Gottfried <tom@intevation.de> |
---|---|
date | Fri, 01 Jul 2016 14:01:02 +0200 |
parents | e9bf88db2bbb |
children | e552e82ceb8a |
comparison
equal
deleted
inserted
replaced
1167:e9bf88db2bbb | 1168:40a07eb873bf |
---|---|
19 'Lada.view.widget.Netzbetreiber', | 19 'Lada.view.widget.Netzbetreiber', |
20 'Lada.view.widget.Betriebsart', | 20 'Lada.view.widget.Betriebsart', |
21 'Lada.view.widget.Probenart', | 21 'Lada.view.widget.Probenart', |
22 'Lada.view.widget.Umwelt', | 22 'Lada.view.widget.Umwelt', |
23 'Lada.view.widget.base.TextField', | 23 'Lada.view.widget.base.TextField', |
24 'Lada.view.widget.base.NumberField', | |
24 'Lada.view.widget.base.FieldSet', | 25 'Lada.view.widget.base.FieldSet', |
25 'Lada.model.Messprogramm', | 26 'Lada.model.Messprogramm', |
26 'Lada.model.MmtMessprogramm', | 27 'Lada.model.MmtMessprogramm', |
27 'Lada.view.widget.Probenintervall', | 28 'Lada.view.widget.Probenintervall', |
28 'Lada.view.widget.Location', | 29 'Lada.view.widget.Location', |
210 margin: '0, 10, 5, 5', | 211 margin: '0, 10, 5, 5', |
211 labelWidth: 50, | 212 labelWidth: 50, |
212 width: '40%', | 213 width: '40%', |
213 name: 'probenintervall' | 214 name: 'probenintervall' |
214 }, { | 215 }, { |
215 xtype: 'numberfield', | 216 xtype: 'numfield', |
216 fieldLabel: i18n.getMsg('teilintervallVon'), | 217 fieldLabel: i18n.getMsg('teilintervallVon'), |
217 margin: '0, 10, 5, 10', | 218 margin: '0, 10, 5, 10', |
218 labelWidth: 90, | 219 labelWidth: 90, |
219 width: '28%', | 220 width: '28%', |
220 name: 'teilintervallVon', | 221 name: 'teilintervallVon', |
221 period: 'start' | 222 period: 'start' |
222 }, { | 223 }, { |
223 xtype: 'numberfield', | 224 xtype: 'numfield', |
224 fieldLabel: i18n.getMsg('teilintervallBis'), | 225 fieldLabel: i18n.getMsg('teilintervallBis'), |
225 margin: '0, 15, 5, 5', | 226 margin: '0, 15, 5, 5', |
226 labelWidth: 18, | 227 labelWidth: 18, |
227 width: '15%', | 228 width: '15%', |
228 name: 'teilintervallBis', | 229 name: 'teilintervallBis', |
229 period: 'end' | 230 period: 'end' |
230 }, { | 231 }, { |
231 xtype: 'numberfield', | 232 xtype: 'numfield', |
232 margin: '0, 10, 5, 5', | 233 margin: '0, 10, 5, 5', |
233 fieldLabel: i18n.getMsg('offset'), | 234 fieldLabel: i18n.getMsg('offset'), |
234 labelWidth: 45, | 235 labelWidth: 45, |
235 width: '17%', | 236 width: '17%', |
236 name: 'intervallOffset' | 237 name: 'intervallOffset' |
618 this.down('cbox[name=netzbetreiberId]').clearWarningOrError(); | 619 this.down('cbox[name=netzbetreiberId]').clearWarningOrError(); |
619 // clear messages in intervall definition | 620 // clear messages in intervall definition |
620 this.down('fset[name=probenIntervallFieldset]').clearMessages(); | 621 this.down('fset[name=probenIntervallFieldset]').clearMessages(); |
621 this.down('cbox[name=probenintervall]').clearWarningOrError(); | 622 this.down('cbox[name=probenintervall]').clearWarningOrError(); |
622 this.down('fset[name=gueltigPeriodFieldset]').clearMessages(); | 623 this.down('fset[name=gueltigPeriodFieldset]').clearMessages(); |
624 this.down('numfield[name=teilintervallVon]').clearWarningOrError(); | |
625 this.down('numfield[name=teilintervallBis]').clearWarningOrError(); | |
623 this.down('datetime[name=gueltigVon]').clearWarningOrError(); | 626 this.down('datetime[name=gueltigVon]').clearWarningOrError(); |
624 this.down('datetime[name=gueltigBis]').clearWarningOrError(); | 627 this.down('datetime[name=gueltigBis]').clearWarningOrError(); |
625 //no clear for probeNehmerId | 628 //no clear for probeNehmerId |
626 // Deskriptoren are missing | 629 // Deskriptoren are missing |
627 this.down('cbox[name=umwId]').clearWarningOrError(); | 630 this.down('cbox[name=umwId]').clearWarningOrError(); |