Icons for the IsValid and IsActive column
authorJoachim Breitner <mail@joachim-breitner.de>
Fri, 26 Jun 2009 09:13:30 +0000 (11:13 +0200)
committerJoachim Breitner <mail@joachim-breitner.de>
Fri, 26 Jun 2009 09:13:30 +0000 (11:13 +0200)
web/php/page/myplants.pg

index aad0120..24008d3 100644 (file)
                                ,width: 50
                                ,sortable: true
                                ,dataIndex: 'IsValid'
+                               ,renderer: function (value, metadata, record, rowindex, colindex, store) {
+                                       if (value) {
+                                               return '<img src="img/icons/accept.png"/>';
+                                       } else {
+                                               return '<img src="img/icons/cross.png"/>';
+                                       }
+                               }
                        },{
                                id: 'IsActive'
                                ,header: 'IsActive'
                                ,width: 50
                                ,sortable: true
                                ,dataIndex: 'IsActive'
+                               ,renderer: function (value, metadata, record, rowindex, colindex, store) {
+                                       if (value) {
+                                               return '<img src="img/icons/award.png"/>';
+                                       } else {
+                                               return '';
+                                       }
+                               }
                        }
                ]
                ,sm: new Ext.grid.RowSelectionModel({