From c695846a3f313c79fa3df99fbf4f6bea36e6613b Mon Sep 17 00:00:00 2001 From: Seyi Adebajo Date: Fri, 24 Mar 2017 21:54:53 -0700 Subject: [PATCH] Updates seach route template to use filter-rail component and bootstrap grid for layout --- wherehows-web/app/templates/search.hbs | 131 +++++-------------------- 1 file changed, 27 insertions(+), 104 deletions(-) diff --git a/wherehows-web/app/templates/search.hbs b/wherehows-web/app/templates/search.hbs index 43dff7f07c..122d6a2fb7 100644 --- a/wherehows-web/app/templates/search.hbs +++ b/wherehows-web/app/templates/search.hbs @@ -1,107 +1,38 @@ -
-

Filter By:

-
- - -
- - - - -
+
+
+ {{#search/filter-rail as |rail|}} + {{rail.radioGroup + radioOptions=sources + title="Source" + changed=(action "sourceDidChange")}} -
-
-
+ {{!--Api for date range not currently available--}} + {{!--rail.dateRange + startDateChanged=(action 'startDateDidChange') + endDateChanged=(action 'endDateDidChange')--}} + {{/search/filter-rail}} +
+
+
{{#if model.count}}
    {{#unless first}} {{/unless}}
  • - {{ model.count }} results - page {{ model.page }} of {{ model.totalPages }} + {{ model.count }} results - page {{ model.page }} + of {{ model.totalPages }}
  • {{#unless last}} @@ -109,13 +40,6 @@
{{/if}} - {{#if loading}} -
-
- -
-
- {{/if}} {{#if model.count}} {{#if model.isFlowJob}} @@ -131,7 +55,8 @@

{{ flowJob.path }}

source: {{ flowJob.appCode }}

-
+
{{ flowJob.schema }}
@@ -153,7 +78,7 @@ {{/link-to}} {{else}} - {{#link-to 'dataset' dataset.id}} + {{#link-to 'datasets.dataset' dataset.id}} {{{dataset.name}}} {{/link-to}} {{/if}} @@ -166,7 +91,8 @@ {{else}}

source: Metric

{{/if}} -
+
{{{ dataset.schema }}}
@@ -180,9 +106,6 @@

No items found

{{/if}} {{/if}} -
-
- {{outlet}} -
+
\ No newline at end of file