comparison app/view/grid/Orte.js @ 1141:e5e4eb249d9c

merged.
author Raimund Renkert <raimund.renkert@intevation.de>
date Thu, 26 May 2016 14:06:30 +0200
parents 450368f67858 53d108efab0b
children 6321530e640e
comparison
equal deleted inserted replaced
1140:450368f67858 1141:e5e4eb249d9c
47 text: 'RW', 47 text: 'RW',
48 dataIndex: 'readonly', 48 dataIndex: 'readonly',
49 sortable: false, 49 sortable: false,
50 width: 30, 50 width: 30,
51 getClass: function (val, meta, rec) { 51 getClass: function (val, meta, rec) {
52 console.log(rec.get('statusEdit'));
53 if (rec.get('readonly') === false) { 52 if (rec.get('readonly') === false) {
54 return 'edit'; 53 return 'edit';
55 } 54 }
56 return 'noedit'; 55 return 'noedit';
57 } 56 }
58 }, { 57 }, {
59 header: i18n.getMsg('netzbetreiber'), 58 header: i18n.getMsg('netzbetreiberId'),
60 renderer: function(value) { 59 renderer: function(value) {
61 var r = ''; 60 var r = '';
62 if (!value || value === '') { 61 if (!value || value === '') {
63 r = 'Error'; 62 r = 'Error';
64 } 63 }
228 editor: { 227 editor: {
229 xtype: 'numberfield' 228 xtype: 'numberfield'
230 }, 229 },
231 dataIndex: 'latitude' 230 dataIndex: 'latitude'
232 }, { 231 }, {
233 header: i18n.getMsg('orte.letzteAenderung'), 232 header: i18n.getMsg('letzteAenderung'),
233 xtype: 'datecolumn',
234 format: 'd.m.Y H:i',
234 dataIndex: 'letzteAenderung' 235 dataIndex: 'letzteAenderung'
235 }]; 236 }];
236 this.callParent(arguments); 237 this.callParent(arguments);
237 }, 238 },
238 239

http://lada.wald.intevation.org