changeset 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 424f18da3c64
children 82118c01bc52
files app/view/search/List.js
diffstat 1 files changed, 21 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/app/view/search/List.js	Wed Jul 24 15:25:05 2013 +0200
+++ b/app/view/search/List.js	Wed Jul 24 15:26:39 2013 +0200
@@ -3,6 +3,7 @@
     title: 'SQL-Auswahl',
     alias: 'widget.queryselector',
     initComponent: function() {
+        this.layout = 'column',
         this.items = [
             {
                 id: 'search',
@@ -12,6 +13,26 @@
                 displayField:'name',
                 valueField:'id',
                 emptyText:'Wählen Sie eine Abfrage'
+            },
+            {
+                xtype: 'panel',
+                maxWidth: '500',
+                border: false,
+                margin: '0 10',
+                items: [
+                    {
+                        id: 'sqldesc',
+                        xtype: 'displayfield',
+                        fieldLabel: 'Beschreibung',
+                        value: '-/-'
+                    },
+                    {
+                        id: 'sqlquery',
+                        xtype: 'displayfield',
+                        fieldLabel: 'Abfrage',
+                        value: '-/-'
+                    }
+                ]
             }
         ];
         this.callParent(arguments);

http://lada.wald.intevation.org