[Lada-commits] [PATCH 2 of 2] Make it a bit easier to create a valid new Ort

Wald Commits scm-commit at wald.intevation.org
Fri Nov 18 13:27:38 CET 2016


# HG changeset patch
# User Tom Gottfried <tom at intevation.de>
# Date 1479472020 -3600
# Node ID 6321530e640ecc1138562ee462065761d74e3679
# Parent  2caaaa690e17f8b47d85374705edf04dc6548f6c
Make it a bit easier to create a valid new Ort.

Values for maxLength are taken from the database schema of the server.

diff -r 2caaaa690e17 -r 6321530e640e app/view/grid/Orte.js
--- a/app/view/grid/Orte.js	Fri Nov 18 13:25:12 2016 +0100
+++ b/app/view/grid/Orte.js	Fri Nov 18 13:27:00 2016 +0100
@@ -80,13 +80,15 @@
             header: i18n.getMsg('orte.ortId'),
             editor: {
                 xtype: 'textfield',
+                maxLength: 10,
                 allowBlank: false
             },
             dataIndex: 'ortId'
         }, {
             header: i18n.getMsg('orte.nutsCode'),
             editor: {
-                xtype: 'textfield'
+                xtype: 'textfield',
+                maxLength: 10
             },
             dataIndex: 'nutsCode'
         }, {
@@ -149,37 +151,43 @@
         }, {
             header: i18n.getMsg('orte.mpArt'),
             editor: {
-                xtype: 'textfield'
+                xtype: 'textfield',
+                maxLength: 10
             },
             dataIndex: 'mpArt'
         }, {
             header: i18n.getMsg('orte.zone'),
             editor: {
-                xtype: 'textfield'
+                xtype: 'textfield',
+                maxLength: 1
             },
             dataIndex: 'zone'
         }, {
             header: i18n.getMsg('orte.sektor'),
             editor: {
-                xtype: 'textfield'
+                xtype: 'textfield',
+                maxLength: 2
             },
             dataIndex: 'sektor'
         }, {
             header: i18n.getMsg('orte.zustaendigkeit'),
             editor: {
-                xtype: 'textfield'
+                xtype: 'textfield',
+                maxLength: 10
             },
             dataIndex: 'zustaendigkeit'
         }, {
             header: i18n.getMsg('orte.berichtstext'),
             editor: {
-                xtype: 'textfield'
+                xtype: 'textfield',
+                maxLength: 70
             },
             dataIndex: 'berichtstext'
         }, {
             header: i18n.getMsg('orte.kurztext'),
             editor: {
                 xtype: 'textfield',
+                maxLength: 15,
                 allowBlank: false
             },
             dataIndex: 'kurztext'
@@ -187,6 +195,7 @@
             header: i18n.getMsg('orte.langtext'),
             editor: {
                 xtype: 'textfield',
+                maxLength: 100,
                 allowBlank: false
             },
             dataIndex: 'langtext'
@@ -206,6 +215,7 @@
             header: i18n.getMsg('orte.koordXExtern'),
             editor: {
                 xtype: 'textfield',
+                maxLength: 22,
                 allowBlank: false
             },
             dataIndex: 'koordXExtern'
@@ -213,6 +223,7 @@
             header: i18n.getMsg('orte.koordYExtern'),
             editor: {
                 xtype: 'textfield',
+                maxLength: 22,
                 allowBlank: false
             },
             dataIndex: 'koordYExtern'


More information about the Lada-commits mailing list