Mercurial > lada > lada-client
comparison app/view/orte/List.js @ 513:6de00657cd87
Moved alll list toolbars to bottom and buttons to the right.
author | Raimund Renkert <raimund.renkert@intevation.de> |
---|---|
date | Tue, 16 Dec 2014 13:19:18 +0100 |
parents | 1643d74a40bb |
children | de1acaf21db3 |
comparison
equal
deleted
inserted
replaced
512:8818becb8cde | 513:6de00657cd87 |
---|---|
27 initComponent: function() { | 27 initComponent: function() { |
28 var rowEditing = Ext.create('Ext.grid.plugin.RowEditing', { | 28 var rowEditing = Ext.create('Ext.grid.plugin.RowEditing', { |
29 clicksToMoveEditor: 1, | 29 clicksToMoveEditor: 1, |
30 autoCancel: false | 30 autoCancel: false |
31 }); | 31 }); |
32 | |
33 this.plugins = [rowEditing]; | 32 this.plugins = [rowEditing]; |
34 | |
35 this.store = Ext.data.StoreManager.get('Orte'); | 33 this.store = Ext.data.StoreManager.get('Orte'); |
36 if (!this.store) { | 34 if (!this.store) { |
37 this.store = Ext.create('Lada.store.Orte'); | 35 this.store = Ext.create('Lada.store.Orte'); |
38 } | 36 } |
39 this.dockedItems = [{ | 37 this.dockedItems = [{ |
40 xtype: 'toolbar', | 38 xtype: 'toolbar', |
41 dock: 'top', | 39 dock: 'bottom', |
42 items: [{ | 40 items: ['->', { |
43 text: 'Hinzufügen', | 41 text: 'Hinzufügen', |
44 icon: 'gfx/list-add.png', | 42 icon: 'gfx/list-add.png', |
45 action: 'add', | 43 action: 'add', |
46 probeId: this.probeId | 44 probeId: this.probeId |
47 }, { | 45 }, { |
84 Ext.data.StoreManager.get('staVerwaltungseinheiten'); | 82 Ext.data.StoreManager.get('staVerwaltungseinheiten'); |
85 var record = store.getById(value); | 83 var record = store.getById(value); |
86 var gemid = record.get('gemId'); | 84 var gemid = record.get('gemId'); |
87 var record2 = gemeinden.getById(gemid); | 85 var record2 = gemeinden.getById(gemid); |
88 return record2.get('bezeichnung'); | 86 return record2.get('bezeichnung'); |
89 }, | 87 } |
90 //editor: { | 88 //editor: { |
91 // allowBlank: false | 89 // allowBlank: false |
92 //} | 90 //} |
93 }, { | 91 }, { |
94 header: 'Messpunkt', | 92 header: 'Messpunkt', |
95 dataIndex: 'ortId', | 93 dataIndex: 'ortId', |
96 renderer: function(value) { | 94 renderer: function(value) { |
97 var store = Ext.getStore('staOrte'); | 95 var store = Ext.getStore('staOrte'); |
98 var record = store.getById(value); | 96 var record = store.getById(value); |
99 return record.get('bezeichnung'); | 97 return record.get('bezeichnung'); |
100 }, | 98 } |
101 //editor: { | 99 //editor: { |
102 // allowBlank: false | 100 // allowBlank: false |
103 //} | 101 //} |
104 }]; | 102 }]; |
105 this.callParent(arguments); | 103 this.callParent(arguments); |