From c66ed6dd8fb22a49bfa17b8b21ff8d685f116905 Mon Sep 17 00:00:00 2001 From: Paolo Date: Tue, 27 Feb 2018 19:31:36 +0100 Subject: [PATCH] FilterWidget header uses bootstrap CSS now --- application/views/widgets/filter/filter.php | 34 +++++++++++++++++++ .../views/widgets/filter/saveFilter.php | 11 +++--- .../views/widgets/filter/selectFields.php | 5 +-- .../views/widgets/filter/selectFilters.php | 25 +++++++------- 4 files changed, 57 insertions(+), 18 deletions(-) diff --git a/application/views/widgets/filter/filter.php b/application/views/widgets/filter/filter.php index 2b36a5bf5..2830d52e7 100644 --- a/application/views/widgets/filter/filter.php +++ b/application/views/widgets/filter/filter.php @@ -56,6 +56,40 @@ border-right: 2px solid #428bca; } + .select-filter-operation { + display: inline; + width: 130px; + } + + .select-filter-operation-value { + display: inline; + width: 400px; + } + + .select-filter-option { + display: inline; + width: 90px; + } + + #addField { + display: inline; + width: 400px; + } + + #addFilter { + display: inline; + width: 400px; + } + + #selectedFilters { + margin-bottom: 20px; + } + + #customFilterDescription { + display: inline; + width: 400px; + } +
- Filter description: -
-
- + + Filter description: + + + + +
diff --git a/application/views/widgets/filter/selectFields.php b/application/views/widgets/filter/selectFields.php index 6ce678fb8..95dc5ae80 100644 --- a/application/views/widgets/filter/selectFields.php +++ b/application/views/widgets/filter/selectFields.php @@ -145,7 +145,7 @@ $("#filterSelectFieldsDnd").append(strHtml); } - var strDropDown = ''; + var strDropDown = ''; $("#addField").append(strDropDown); for (var i = 0; i < data.allSelectedFields.length; i++) @@ -189,7 +189,8 @@ Add field: + - + diff --git a/application/views/widgets/filter/selectFilters.php b/application/views/widgets/filter/selectFilters.php index 54f7f90fd..5b33352c5 100644 --- a/application/views/widgets/filter/selectFilters.php +++ b/application/views/widgets/filter/selectFilters.php @@ -125,7 +125,7 @@ if (metaData.type.toLowerCase().indexOf("int") >= 0) { html = ''; - html += ' '; html += ' '; html += ' '; html += ' '; @@ -133,37 +133,37 @@ html += ' '; html += ''; html += ''; - html += ' '; + html += ' '; html += ''; } if (metaData.type.toLowerCase().indexOf('varchar') >= 0) { html = ''; - html += ' '; html += ' '; html += ' '; html += ' '; html += ''; html += ''; - html += ' '; + html += ' '; html += ''; } if (metaData.type.toLowerCase().indexOf('bool') >= 0) { html = ''; - html += ' '; html += ' '; html += ' '; html += ' '; html += ''; html += ''; - html += ' '; + html += ' '; html += ''; } if (metaData.type.toLowerCase().indexOf('timestamp') >= 0 || metaData.type.toLowerCase().indexOf('date') >= 0) { - var classOperation = 'select-filter-operation-value'; - var classOption = 'select-filter-option'; + var classOperation = 'select-filter-operation-value form-control'; + var classOption = 'select-filter-option form-control'; var disabled = ""; if (activeFiltersOperation == "set" || activeFiltersOperation == "nset") @@ -174,7 +174,7 @@ } html = ''; - html += ' '; html += ' '; html += ' '; html += ' '; @@ -213,7 +213,7 @@ if (data != null) { - var strDropDown = ''; + var strDropDown = ''; $("#addFilter").append(strDropDown); for (var i = 0; i < data.allSelectedFields.length; i++) @@ -246,7 +246,7 @@ ); selectedFilters += ''; - selectedFilters += ''; + selectedFilters += ''; selectedFilters += ''; selectedFilters += ''; @@ -280,8 +280,9 @@ Add filter: + - +