comparison app/view/status/List.js @ 523:6ad453afbc31

Make tables editable for 'Status' See LSB 3.5
author Roland Geider <roland.geider@intevation.de>
date Tue, 16 Dec 2014 16:20:15 +0100
parents 6de00657cd87
children 95bad130be98
comparison
equal deleted inserted replaced
522:de1acaf21db3 523:6ad453afbc31
25 25
26 parentId: null, 26 parentId: null,
27 probeId: null, 27 probeId: null,
28 28
29 initComponent: function() { 29 initComponent: function() {
30 var rowEditing = Ext.create('Ext.grid.plugin.RowEditing', {
31 clicksToMoveEditor: 1,
32 autoCancel: false
33 });
34 this.plugins = [rowEditing];
30 this.dockedItems = [{ 35 this.dockedItems = [{
31 xtype: 'toolbar', 36 xtype: 'toolbar',
32 dock: 'bottom', 37 dock: 'bottom',
33 items: ['->', { 38 items: ['->', {
34 text: 'Hinzufügen', 39 text: 'Hinzufügen',
42 action: 'delete' 47 action: 'delete'
43 }] 48 }]
44 }]; 49 }];
45 this.columns = [{ 50 this.columns = [{
46 header: 'Erzeuger', 51 header: 'Erzeuger',
47 dataIndex: 'erzeuger' 52 dataIndex: 'erzeuger',
53 editor: {
54 allowBlank: false
55 }
48 }, { 56 }, {
49 header: 'Status', 57 header: 'Status',
50 dataIndex: 'status' 58 dataIndex: 'status',
59 editor: {
60 allowBlank: false
61 }
51 }, { 62 }, {
52 header: 'Datum', 63 header: 'Datum',
53 dataIndex: 'datum' 64 dataIndex: 'datum',
65 editor: {
66 xtype: 'datefield',
67 allowBlank: false,
68 format: 'd.m.Y',
69 maxValue: Ext.Date.format(new Date(), 'd.m.Y')
70 }
54 }, { 71 }, {
55 header: 'Text', 72 header: 'Text',
56 dataIndex: 'kommentar', 73 dataIndex: 'kommentar',
57 flex: 1 74 flex: 1,
75 editor: {
76 allowBlank: true
77 }
58 }]; 78 }];
59 this.callParent(arguments); 79 this.callParent(arguments);
60 } 80 }
61 }); 81 });

http://lada.wald.intevation.org