Mercurial > lada > lada-client
diff app/view/grid/Orte.js @ 1254:6321530e640e
Make it a bit easier to create a valid new Ort.
Values for maxLength are taken from the database schema of the server.
author | Tom Gottfried <tom@intevation.de> |
---|---|
date | Fri, 18 Nov 2016 13:27:00 +0100 |
parents | e5e4eb249d9c |
children | 16a80ca16732 |
line wrap: on
line diff
--- 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'