[Lada-commits] [PATCH] Added more search filters
Wald Commits
scm-commit at wald.intevation.org
Fri Aug 23 10:16:05 CEST 2013
# HG changeset patch
# User Torsten Irländer <torsten.irlaender at intevation.de>
# Date 1377245676 -7200
# Node ID 1327dd6ec246cf13e7031434e4dc1275d69a9404
# Parent 832e3c8f919198ce9a87085663ef194bbaef0aad
Added more search filters.
diff -r 832e3c8f9191 -r 1327dd6ec246 app/controller/Sql.js
--- a/app/controller/Sql.js Tue Aug 20 16:50:47 2013 +0200
+++ b/app/controller/Sql.js Fri Aug 23 10:14:36 2013 +0200
@@ -68,8 +68,12 @@
// * text
// * number
// * datetime
+ // * bool
// * listmst
// * listumw
+ // * listver
+ // * listdbasis
+ // * listnetz
//
// Iterate over all configured filters and add filters dynamically
//
@@ -91,12 +95,24 @@
} else if (type == "datetime") {
console.log("Found datetime filter");
field = Ext.create('Lada.view.widgets.Datetime', { name: name, fieldLabel: label });
+ } else if (type == "bool") {
+ console.log("Found bool filter");
+ field = Ext.create('Lada.view.widgets.Testdatensatz', { name: name, fieldLabel: label, emptyText: '' });
} else if (type == "listmst") {
console.log("Found listmst filter");
- field = Ext.create('Lada.view.widgets.Mst', { name: name, fieldLabel: label });
+ field = Ext.create('Lada.view.widgets.Mst', { name: name, fieldLabel: label, multiSelect: true });
} else if (type == "listumw") {
console.log("Found listumw filter");
- field = Ext.create('Lada.view.widgets.Uwb', { name: name, fieldLabel: label });
+ field = Ext.create('Lada.view.widgets.Uwb', { name: name, fieldLabel: label, multiSelect: true });
+ } else if (type == "listdbasis") {
+ console.log("Found listdbasis filter");
+ field = Ext.create('Lada.view.widgets.Datenbasis', { name: name, fieldLabel: label, multiSelect: true });
+ } else if (type == "listver") {
+ console.log("Found listver filter");
+ field = Ext.create('Lada.view.widgets.Verwaltungseinheit', { name: name, fieldLabel: label, multiSelect: true });
+ } else if (type == "listnetz") {
+ console.log("Found listnetz filter");
+ field = Ext.create('Lada.view.widgets.Netzbetreiber', { name: name, fieldLabel: label, multiSelect: true });
}
if (field) {
console.log("Pushing field to filters");
More information about the Lada-commits
mailing list