From 864df410525a2e435ab53cb6516bd0185072e702 Mon Sep 17 00:00:00 2001 From: summerscope Date: Wed, 9 Jul 2014 17:24:10 +1000 Subject: [PATCH] Add filters partial --- app/views/home/_hubs.html.haml | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/app/views/home/_hubs.html.haml b/app/views/home/_hubs.html.haml index f8698989c3..e92eb81147 100644 --- a/app/views/home/_hubs.html.haml +++ b/app/views/home/_hubs.html.haml @@ -14,10 +14,12 @@ / %i.ofn-i_020-search %input{type: :text, "ng-model" => "query", - placeholder: "Search Hub or by Suburb / State", + placeholder: "Search by Hub or Suburb name", "ng-debounce" => "150", "ofn-disable-enter" => true} + = render partial: "home/filters" + .row{bindonce: true} .small-12.columns .active_table @@ -30,6 +32,9 @@ = render partial: 'home/skinny' = render partial: 'home/fat' - .row{"ng-show" => "filteredHubs.length == 0"} - .columns.small-12.text-center - No results + .row{"ng-show" => "filteredHubs.length == 0"} + .columns.small-12 + %p.no-results + Sorry, no results found for + %strong {{query}}. + Try another search?