diff app/view/search/List.js @ 520:16fbbad55589

Updated viewport layout.
author Raimund Renkert <raimund.renkert@intevation.de>
date Tue, 16 Dec 2014 18:16:25 +0100
parents c1b77fb96b01
children 9545adcfceeb
line wrap: on
line diff
--- a/app/view/search/List.js	Tue Dec 16 16:56:46 2014 +0100
+++ b/app/view/search/List.js	Tue Dec 16 18:16:25 2014 +0100
@@ -19,7 +19,10 @@
 
     title: 'SQL-Auswahl',
     initComponent: function() {
-        this.layout = 'column';
+        this.layout = {
+            type: 'vbox',
+            align: 'stretch'
+        };
         this.items = [{
             id: 'search',
             xtype: 'combobox',
@@ -29,6 +32,23 @@
             valueField: 'id',
             emptyText: 'Wählen Sie eine Abfrage'
         }, {
+        // Buttons to trigger the search.
+            id: 'SearchBtnPanel',
+            xtype: 'panel',
+            border: false,
+            margin: '0 0 10 0',
+            items: [{
+                id: 'SearchBtn',
+                text: 'Suchen',
+                xtype: 'button',
+                margin: '0 10 0 0'
+            }, {
+                id: 'ResetBtn',
+                text: 'Zurücksetzen',
+                xtype: 'button'
+            }],
+            hidden: false
+        }, {
             xtype: 'panel',
             maxWidth: '500',
             border: false,
@@ -37,6 +57,7 @@
                 id: 'sqldesc',
                 xtype: 'displayfield',
                 fieldLabel: 'Beschreibung',
+                shrinkWrap: 3,
                 value: '-/-'
             }, {
                 id: 'sqlquery',

http://lada.wald.intevation.org