diff app/view/grid/Orte.js @ 1081:5e9a674d7bb4

Added Icon-column to stammdaten grid showing RW-status.
author Raimund Renkert <raimund.renkert@intevation.de>
date Wed, 13 Apr 2016 18:41:47 +0200
parents e0b5e64928c9
children e4952906634d
line wrap: on
line diff
--- a/app/view/grid/Orte.js	Wed Apr 13 16:10:25 2016 +0200
+++ b/app/view/grid/Orte.js	Wed Apr 13 18:41:47 2016 +0200
@@ -43,6 +43,19 @@
         }
 
         this.columns = [{
+            xtype: 'actioncolumn',
+            text: 'RW',
+            dataIndex: 'readonly',
+            sortable: false,
+            width: 30,
+            getClass: function (val, meta, rec) {
+                console.log(rec.get('statusEdit'));
+                if (rec.get('readonly') === false) {
+                        return 'edit';
+                }
+                return 'noedit';
+            }
+        }, {
             header: i18n.getMsg('orte.ortId'),
             dataIndex: 'ortId'
         }, {

http://lada.wald.intevation.org