comparison app/view/search/List.js @ 254:c2effc4a497b

Added panel with details for the selected query
author Torsten Irländer <torsten.irlaender@intevation.de>
date Wed, 24 Jul 2013 15:26:39 +0200
parents 5a9c6b71bad2
children d5a2f7af695a
comparison
equal deleted inserted replaced
253:424f18da3c64 254:c2effc4a497b
1 Ext.define('Lada.view.search.List' ,{ 1 Ext.define('Lada.view.search.List' ,{
2 extend: 'Ext.form.FieldSet', 2 extend: 'Ext.form.FieldSet',
3 title: 'SQL-Auswahl', 3 title: 'SQL-Auswahl',
4 alias: 'widget.queryselector', 4 alias: 'widget.queryselector',
5 initComponent: function() { 5 initComponent: function() {
6 this.layout = 'column',
6 this.items = [ 7 this.items = [
7 { 8 {
8 id: 'search', 9 id: 'search',
9 xtype: 'combobox', 10 xtype: 'combobox',
10 editable: false, 11 editable: false,
11 store: 'Queries', 12 store: 'Queries',
12 displayField:'name', 13 displayField:'name',
13 valueField:'id', 14 valueField:'id',
14 emptyText:'Wählen Sie eine Abfrage' 15 emptyText:'Wählen Sie eine Abfrage'
16 },
17 {
18 xtype: 'panel',
19 maxWidth: '500',
20 border: false,
21 margin: '0 10',
22 items: [
23 {
24 id: 'sqldesc',
25 xtype: 'displayfield',
26 fieldLabel: 'Beschreibung',
27 value: '-/-'
28 },
29 {
30 id: 'sqlquery',
31 xtype: 'displayfield',
32 fieldLabel: 'Abfrage',
33 value: '-/-'
34 }
35 ]
15 } 36 }
16 ]; 37 ];
17 this.callParent(arguments); 38 this.callParent(arguments);
18 } 39 }
19 }); 40 });

http://lada.wald.intevation.org