diff app/view/form/Ortszuordnung.js @ 1144:5ceb0381ae73

Set a regex and required for ortszuordnungstyp field.
author Raimund Renkert <raimund.renkert@intevation.de>
date Fri, 27 May 2016 14:51:12 +0200
parents f1d21e6a7449
children 1cf5280bbc45
line wrap: on
line diff
--- a/app/view/form/Ortszuordnung.js	Thu May 26 14:56:41 2016 +0200
+++ b/app/view/form/Ortszuordnung.js	Fri May 27 14:51:12 2016 +0200
@@ -81,7 +81,9 @@
                     }, {
                         xtype: 'tfield',
                         labelWidth: 125,
-                        maxLength: 100,
+                        maxLength: 1,
+                        allowBlank: false,
+                        regex: /[U,E,Z,A]/,
                         name: 'ortszuordnungTyp',
                         fieldLabel: i18n.getMsg('ortszuordnung.form.field.ortszuordnungtyp')
                     }, {

http://lada.wald.intevation.org