diff app/view/Viewport.js @ 31:897e3100c6da

Changed logic of the Probenauswahl. Now logic works like the BFS version.
author Torsten Irländer <torsten.irlaender@intevation.de>
date Tue, 21 May 2013 17:53:51 +0200
parents 4d60b9ebce15
children 4040d384d6b3
line wrap: on
line diff
--- a/app/view/Viewport.js	Thu May 16 18:26:05 2013 +0200
+++ b/app/view/Viewport.js	Tue May 21 17:53:51 2013 +0200
@@ -2,7 +2,8 @@
     extend: 'Ext.container.Viewport',
     requires: [
         'Lada.view.search.List',
-        'Lada.view.search.Variables',
+        'Lada.view.search.Query1',
+        'Lada.view.search.Query2',
         'Lada.view.proben.List'
     ],
     initComponent: function() {
@@ -12,19 +13,50 @@
             title: '<center>Probenauswahlmaske</center>',
             bodyPadding: '10 10',
             items: [
+                // Auswahl einer Abfrage.
                 {
                     xtype: 'queryselector',
                     margin: '0 0 10 0'
                 },
                 // Variables settings for the current selected sql statement.
-                //{
-                //    id: 'variables',
-                //    xtype: 'variables'
-                //},
+                {
+                    id: 'query1',
+                    xtype: 'query1',
+                    hidden: true
+                },
+                {
+                    id: 'query2',
+                    xtype: 'query2',
+                    hidden: true
+
+                },
+                {
+                    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: true
+
+                },
+                // Buttons to trigger the search.
                 // Resultlist for the query.
                 {
                     id: 'result',
-                    xtype: 'probenlist'
+                    xtype: 'probenlist',
+                    hidden: true
                 }
             ]
         };

http://lada.wald.intevation.org