Mercurial > lada > lada-client
diff 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 |
line wrap: on
line diff
--- a/app/view/form/Messprogramm.js Fri Jul 01 13:55:09 2016 +0200 +++ b/app/view/form/Messprogramm.js Fri Jul 01 14:01:02 2016 +0200 @@ -21,6 +21,7 @@ 'Lada.view.widget.Probenart', 'Lada.view.widget.Umwelt', 'Lada.view.widget.base.TextField', + 'Lada.view.widget.base.NumberField', 'Lada.view.widget.base.FieldSet', 'Lada.model.Messprogramm', 'Lada.model.MmtMessprogramm', @@ -212,7 +213,7 @@ width: '40%', name: 'probenintervall' }, { - xtype: 'numberfield', + xtype: 'numfield', fieldLabel: i18n.getMsg('teilintervallVon'), margin: '0, 10, 5, 10', labelWidth: 90, @@ -220,7 +221,7 @@ name: 'teilintervallVon', period: 'start' }, { - xtype: 'numberfield', + xtype: 'numfield', fieldLabel: i18n.getMsg('teilintervallBis'), margin: '0, 15, 5, 5', labelWidth: 18, @@ -228,7 +229,7 @@ name: 'teilintervallBis', period: 'end' }, { - xtype: 'numberfield', + xtype: 'numfield', margin: '0, 10, 5, 5', fieldLabel: i18n.getMsg('offset'), labelWidth: 45, @@ -620,6 +621,8 @@ this.down('fset[name=probenIntervallFieldset]').clearMessages(); this.down('cbox[name=probenintervall]').clearWarningOrError(); this.down('fset[name=gueltigPeriodFieldset]').clearMessages(); + this.down('numfield[name=teilintervallVon]').clearWarningOrError(); + this.down('numfield[name=teilintervallBis]').clearWarningOrError(); this.down('datetime[name=gueltigVon]').clearWarningOrError(); this.down('datetime[name=gueltigBis]').clearWarningOrError(); //no clear for probeNehmerId