comparison app/view/grid/Orte.js @ 1325:35bbbfbe130c

Changed ort grid editors from custom to default comboboxes.
author Raimund Renkert <raimund.renkert@intevation.de>
date Fri, 03 Feb 2017 15:09:24 +0100
parents 46093e6f45d2
children da98f0e7c288
comparison
equal deleted inserted replaced
1324:09d121acda6c 1325:35bbbfbe130c
121 }, 121 },
122 dataIndex: 'nutsCode' 122 dataIndex: 'nutsCode'
123 }, { 123 }, {
124 header: i18n.getMsg('orte.anlageId'), 124 header: i18n.getMsg('orte.anlageId'),
125 editor: { 125 editor: {
126 xtype: 'kta' 126 xtype: 'combobox',
127 store: Ext.data.StoreManager.get('ktas'),
128 displayField: 'code',
129 valueField: 'id'
127 }, 130 },
128 renderer: function(value) { 131 renderer: function(value) {
129 if (value === undefined || 132 if (value === undefined ||
130 value === null || 133 value === null ||
131 value === '' 134 value === ''
185 header: i18n.getMsg('orte.kdaId'), 188 header: i18n.getMsg('orte.kdaId'),
186 filter: { 189 filter: {
187 type: 'string' 190 type: 'string'
188 }, 191 },
189 editor: { 192 editor: {
190 xtype: 'koordinatenart', 193 xtype: 'combobox',
191 allowBlank: false 194 store: Ext.data.StoreManager.get('koordinatenart'),
195 displayField: 'koordinatenart',
196 valueField: 'id'
192 }, 197 },
193 renderer: function(value) { 198 renderer: function(value) {
194 if (value === undefined || value === '') { 199 if (value === undefined || value === '') {
195 return ''; 200 return '';
196 } 201 }
203 header: i18n.getMsg('orte.ozId'), 208 header: i18n.getMsg('orte.ozId'),
204 filter: { 209 filter: {
205 type: 'string' 210 type: 'string'
206 }, 211 },
207 editor: { 212 editor: {
208 xtype: 'ortszusatz', 213 xtype: 'combobox',
214 store: Ext.data.StoreManager.get('ortszusatz'),
215 displayField: 'ozsId',
216 valueField: 'ozsId'
209 }, 217 },
210 renderer: function(value) { 218 renderer: function(value) {
211 if (value === undefined || 219 if (value === undefined ||
212 value === null || 220 value === null ||
213 value === '' 221 value === ''
223 header: i18n.getMsg('orte.ortTyp'), 231 header: i18n.getMsg('orte.ortTyp'),
224 filter: { 232 filter: {
225 type: 'string' 233 type: 'string'
226 }, 234 },
227 editor: { 235 editor: {
228 xtype: 'orttyp', 236 xtype: 'combobox',
237 store: Ext.data.StoreManager.get('orttyp'),
238 displayField: 'code',
239 valueField: 'id'
229 }, 240 },
230 renderer: function(value) { 241 renderer: function(value) {
231 if (value === undefined || 242 if (value === undefined ||
232 value === null || 243 value === null ||
233 value === '' 244 value === ''

http://lada.wald.intevation.org