changeset 663:1c5a4b419149

Field Validity in Status Grid
author Dustin Demuth <dustin@intevation.de>
date Thu, 19 Mar 2015 11:23:24 +0100
parents 7ede89336dbe
children 6fe3cef53e74
files app/view/grid/Status.js
diffstat 1 files changed, 9 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/app/view/grid/Status.js	Thu Mar 19 11:15:30 2015 +0100
+++ b/app/view/grid/Status.js	Thu Mar 19 11:23:24 2015 +0100
@@ -73,7 +73,8 @@
                 store: Ext.data.StoreManager.get('messstellen'),
                 displayField: 'messStelle',
                 valueField: 'id',
-                allowBlank: false
+                allowBlank: false,
+                editable: false
             }
         }, {
             header: 'Status',
@@ -89,17 +90,18 @@
                 store: statusStore,
                 displayField: 'display',
                 valueField: 'id',
-                allowBlank: false
+                allowBlank: false,
+                editable: false
             }
         }, {
             header: 'Datum',
             dataIndex: 'sdatum',
             xtype: 'datecolumn',
-            format: 'd.m.Y H:i',
+            format: 'd.m.Y',
             editor: {
                 xtype: 'datefield',
                 allowBlank: false,
-                format: 'd.m.Y H:i',
+                format: 'd.m.Y',
                 maxValue: Ext.Date.format(new Date(), 'd.m.Y')
             }
         }, {
@@ -107,7 +109,9 @@
             dataIndex: 'skommentar',
             flex: 1,
             editor: {
-                allowBlank: true
+                allowBlank: true,
+                maxLength: 1000,
+                enforceMaxLength: true
             }
         }];
         this.initData();

http://lada.wald.intevation.org