changeset 1098:9bfbcad128a3

Set and enforce max text length for stammdaten fields.
author Raimund Renkert <raimund.renkert@intevation.de>
date Tue, 10 May 2016 16:01:25 +0200
parents 677fc5e62055
children 7a71723fda83
files app/view/grid/DatensatzErzeuger.js app/view/grid/MessprogrammKategorie.js app/view/grid/Probenehmer.js
diffstat 3 files changed, 29 insertions(+), 9 deletions(-) [+]
line wrap: on
line diff
--- a/app/view/grid/DatensatzErzeuger.js	Tue May 10 15:10:21 2016 +0200
+++ b/app/view/grid/DatensatzErzeuger.js	Tue May 10 16:01:25 2016 +0200
@@ -115,7 +115,9 @@
             dataIndex: 'bezeichnung',
             editor: {
                 allowBlank: false,
-                xtype: 'textfield'
+                xtype: 'textfield',
+                maxLength: 120,
+                enforceMaxLength: true
             }
         }, {
             header: i18n.getMsg('mstId'),
--- a/app/view/grid/MessprogrammKategorie.js	Tue May 10 15:10:21 2016 +0200
+++ b/app/view/grid/MessprogrammKategorie.js	Tue May 10 16:01:25 2016 +0200
@@ -116,6 +116,8 @@
             dataIndex: 'bezeichnung',
             editor: {
                 xtype: 'textfield',
+                maxLength: 120,
+                enforceMaxLength: true,
                 allowBlank: false
             }
         }, {
--- a/app/view/grid/Probenehmer.js	Tue May 10 15:10:21 2016 +0200
+++ b/app/view/grid/Probenehmer.js	Tue May 10 16:01:25 2016 +0200
@@ -106,7 +106,9 @@
             header: i18n.getMsg('bearbeiter'),
             dataIndex: 'bearbeiter',
             editor: {
-                xtype: 'textfield'
+                xtype: 'textfield',
+                maxLength: 25,
+                enforceMaxLength: true
             }
         }, {
             header: i18n.getMsg('prnId'),
@@ -122,20 +124,26 @@
             dataIndex: 'bemerkung',
             editor: {
                 allowBlank: false,
-                xtype: 'textfield'
+                xtype: 'textfield',
+                maxLength: 60,
+                enforceMaxLength: true
             }
         }, {
             header: i18n.getMsg('kurzBezeichnung'),
             dataIndex: 'kurzBezeichnung',
             editor: {
                 allowBlank: false,
-                xtype: 'textfield'
+                xtype: 'textfield',
+                maxLength: 10,
+                enforceMaxLength: true
             }
         }, {
             header: i18n.getMsg('ort'),
             dataIndex: 'ort',
             editor: {
-                xtype: 'textfield'
+                xtype: 'textfield',
+                maxLength: 20,
+                enforceMaxLength: true
             }
         }, {
             header: i18n.getMsg('plz'),
@@ -147,25 +155,33 @@
             header: i18n.getMsg('strasse'),
             dataIndex: 'strasse',
             editor: {
-                xtype: 'textfield'
+                xtype: 'textfield',
+                maxLength: 30,
+                enforceMaxLength: true
             }
         }, {
             header: i18n.getMsg('telefon'),
             dataIndex: 'telefon',
             editor: {
-                xtype: 'textfield'
+                xtype: 'textfield',
+                maxLength: 20,
+                enforceMaxLength: true
             }
         }, {
             header: i18n.getMsg('tp'),
             dataIndex: 'tp',
             editor: {
-                xtype: 'textfield'
+                xtype: 'textfield',
+                maxLength: 3,
+                enforceMaxLength: true
             }
         }, {
             header: i18n.getMsg('typ'),
             dataIndex: 'typ',
             editor: {
-                xtype: 'textfield'
+                xtype: 'textfield',
+                maxLength: 1,
+                enforceMaxLength: true
             }
         }, {
             header: i18n.getMsg('letzteAenderung'),

http://lada.wald.intevation.org