changeset 1310:9b50bf4c218b

Set textfield lengths according to database schema.
author Tom Gottfried <tom@intevation.de>
date Thu, 02 Feb 2017 19:04:02 +0100
parents 1bcc3a62e909
children 2d92be45df9e
files app/view/form/Ortserstellung.js
diffstat 1 files changed, 11 insertions(+), 9 deletions(-) [+]
line wrap: on
line diff
--- a/app/view/form/Ortserstellung.js	Thu Feb 02 16:59:25 2017 +0100
+++ b/app/view/form/Ortserstellung.js	Thu Feb 02 19:04:02 2017 +0100
@@ -85,7 +85,7 @@
             name: 'koordXExtern',
             allowDecimals: true,
             decimalPrecision: 5,
-            maxLength: 10,
+            maxLength: 22,
             listeners: {
                 change: {
                     fn: function() { me.checkCommitEnabled() }
@@ -98,7 +98,7 @@
             name: 'koordYExtern',
             allowDecimals: true,
             decimalPrecision: 5,
-            maxLength: 10,
+            maxLength: 22,
             listeners: {
                 change: {
                     fn: function() { me.checkCommitEnabled() }
@@ -114,17 +114,19 @@
         }, {
             xtype: 'tfield',
             labelWidth: 125,
-            maxLength: 100,
+            maxLength: 15,
             name: 'kurztext',
             fieldLabel: i18n.getMsg('orte.kurztext')
         },{
             xtype: 'tfield',
             labelWidth: 125,
+            maxLength: 100,
             fieldLabel: i18n.getMsg('orte.langtext'),
             name: 'langtext'
         },{
             xtype: 'tfield',
             labelWidth: 125,
+            maxLength: 70,
             fieldLabel: i18n.getMsg('orte.berichtstext'),
             name: 'berichtstext'
         }, {
@@ -136,13 +138,13 @@
         }, {
             xtype: 'tfield',
             labelWidth: 125,
-            maxLength: 100,
+            maxLength: 1,
             name: 'zone',
             fieldLabel: i18n.getMsg('orte.zone')
         },{
             xtype: 'tfield',
             labelWidth: 125,
-            maxLength: 100,
+            maxLength: 2,
             name: 'sektor',
             fieldLabel: i18n.getMsg('orte.sektor')
         },{
@@ -154,25 +156,25 @@
         },{
             xtype: 'tfield',
             labelWidth: 125,
-            maxLength: 100,
+            maxLength: 10,
             name: 'zustaendigkeit',
             fieldLabel: i18n.getMsg('orte.zustaendigkeit')
         },{
             xtype: 'tfield',
             labelWidth: 125,
-            maxLength: 100,
+            maxLength: 10,
             name: 'mpArt',
             fieldLabel: i18n.getMsg('orte.mpArt')
         },{
             xtype: 'tfield',
             labelWidth: 125,
-            maxLength: 100,
+            maxLength: 10,
             name: 'nutsCode',
             fieldLabel: i18n.getMsg('orte.nutsCode')
         },{
             xtype: 'tfield',
             labelWidth: 125,
-            maxLength: 100,
+            maxLength: 7,
             name: 'ozId',
             fieldLabel: i18n.getMsg('orte.ozId')
         }];

http://lada.wald.intevation.org