comparison app/view/form/Messprogramm.js @ 1104:414f7c9908d6

some reorg of filterpanal and messprogramm form
author Michael Stanko <mstanko@bfs.de>
date Wed, 11 May 2016 08:57:40 +0200
parents 61cc583c3649
children 7baaf2cd3f57
comparison
equal deleted inserted replaced
1103:db9297e559ab 1104:414f7c9908d6
205 items: [{ 205 items: [{
206 xtype: 'probenintervall', 206 xtype: 'probenintervall',
207 fieldLabel: i18n.getMsg('probenintervall'), 207 fieldLabel: i18n.getMsg('probenintervall'),
208 margin: '0, 10, 5, 5', 208 margin: '0, 10, 5, 5',
209 labelWidth: 50, 209 labelWidth: 50,
210 // anchor: '100%',
211 width: '40%', 210 width: '40%',
212 name: 'probenintervall' 211 name: 'probenintervall'
213 }, { 212 }, {
214 xtype: 'numberfield', 213 xtype: 'numberfield',
215 fieldLabel: i18n.getMsg('teilintervallVon'), 214 fieldLabel: i18n.getMsg('teilintervallVon'),
216 margin: '0, 10, 5, 10', 215 margin: '0, 10, 5, 10',
217 labelWidth: 90, 216 labelWidth: 90,
218 // anchor: '100%',
219 width: '28%', 217 width: '28%',
220 name: 'teilintervallVon', 218 name: 'teilintervallVon',
221 period: 'start' 219 period: 'start'
222 }, { 220 }, {
223 xtype: 'numberfield', 221 xtype: 'numberfield',
224 fieldLabel: i18n.getMsg('teilintervallBis'), 222 fieldLabel: i18n.getMsg('teilintervallBis'),
225 margin: '0, 15, 5, 5', 223 margin: '0, 15, 5, 5',
226 labelWidth: 18, 224 labelWidth: 18,
227 // anchor: '100%',
228 width: '12%', 225 width: '12%',
229 name: 'teilintervallBis', 226 name: 'teilintervallBis',
230 period: 'end' 227 period: 'end'
231 }, { 228 }, {
232 xtype: 'numberfield', 229 xtype: 'numberfield',
233 margin: '0, 10, 5, 5', 230 margin: '0, 10, 5, 5',
234 fieldLabel: i18n.getMsg('offset'), 231 fieldLabel: i18n.getMsg('offset'),
235 labelWidth: 45, 232 labelWidth: 45,
236 // anchor: '100%',
237 width: '18%', 233 width: '18%',
238 name: 'intervallOffset' 234 name: 'intervallOffset'
239 }] 235 }]
240 }, { 236 }, {
241 xtype: 'probenintervallslider', 237 xtype: 'probenintervallslider',
242 // fieldLabel: i18n.getMsg('intervall'), 238 // fieldLabel: i18n.getMsg('intervall'),
243 // labelWidth: 70, 239 // labelWidth: 70,
244 pack: 'center', 240 pack: 'center',
245 width: '70%', 241 width: '70%',
246 margin: '0, 40, 10, 40', 242 margin: '0, 40, 10, 40',
247 // anchor: '950%',
248 values: [0, 0] 243 values: [0, 0]
249 //this will be overridden 244 //this will be overridden
250 // by setRecord 245 // by setRecord
251 }, { 246 }, {
252 xtype: 'fset', 247 xtype: 'fset',
259 items: [{ 254 items: [{
260 xtype: 'datetime', 255 xtype: 'datetime',
261 fieldLabel: i18n.getMsg('gueltigVon'), 256 fieldLabel: i18n.getMsg('gueltigVon'),
262 margin: '0, 30, 5, 5', 257 margin: '0, 30, 5, 5',
263 labelWidth: 90, 258 labelWidth: 90,
264 // anchor: '100%',
265 name: 'gueltigVon', 259 name: 'gueltigVon',
266 format: 'd.m.Y', 260 format: 'd.m.Y',
267 period: 'start' 261 period: 'start'
268 }, { 262 }, {
269 xtype: 'datetime', 263 xtype: 'datetime',
270 fieldLabel: i18n.getMsg('gueltigBis'), 264 fieldLabel: i18n.getMsg('gueltigBis'),
271 margin: '0, 5, 5, 5', 265 margin: '0, 5, 5, 5',
272 labelWidth: 40, 266 labelWidth: 40,
273 // anchor: '100%',
274 name: 'gueltigBis', 267 name: 'gueltigBis',
275 format: 'd.m.Y', 268 format: 'd.m.Y',
276 period: 'end' 269 period: 'end'
277 }] 270 }]
278 }] 271 }]
356 // Ort 349 // Ort
357 xtype: 'fieldset', 350 xtype: 'fieldset',
358 title: 'Ort', 351 title: 'Ort',
359 layout: { 352 layout: {
360 type: 'hbox', 353 type: 'hbox',
361 // pack: 'center',
362 align: 'stretch' 354 align: 'stretch'
363 }, 355 },
364 width: '100%', 356 width: '100%',
365 items: [{ 357 items: [{
366 xtype: 'location', 358 xtype: 'location',
522 return true; 514 return true;
523 } 515 }
524 }); 516 });
525 this.down('messstellelabor').setValue(items.getAt(0)); 517 this.down('messstellelabor').setValue(items.getAt(0));
526 } 518 }
527 // set media field
528 // this.down('media').setValue('XXXX');
529 }, 519 },
530 520
531 setMediaDesk: function(record) { 521 setMediaDesk: function(record) {
532 var media = record.get('mediaDesk').split(' '); 522 var media = record.get('mediaDesk').split(' ');
533 this.setMediaSN(0, media); 523 this.setMediaSN(0, media);

http://lada.wald.intevation.org