Added search form on the places index page.

This commit is contained in:
gabrielsandoval committed 2015-06-21 15:24:07 +08:00
1 parent 5bb04dc1a4
commit 0e2a5fd205
5 files changed
+12 -7

No files matched your search

+3
View File
@@ -458,3 +458,6 @@ DEPENDENCIES
unicorn
webrat
will_paginate (~> 3.0)
BUNDLED WITH
1.10.3
+6
View File
@@ -0,0 +1,6 @@
%form{:action => search_places_path, :method => :get, :class => 'form-inline', :role => 'form'}
.form-group
= label_tag :new_place, "Change location:", :class => 'sr-only'
= text_field_tag :new_place, '', :class => 'form-control', :placeholder => "New location..."
= submit_tag "Search", :class => 'btn btn-primary'
%br/
+1 -1
View File
@@ -1,4 +1,4 @@
-content_for :title, "#{ENV['GROWSTUFF_SITE_NAME']} Community Map"
= render partial: 'search_form'
%div#placesmap
+1 -6
View File
@@ -1,11 +1,6 @@
-content_for :title, "#{ENV['GROWSTUFF_SITE_NAME']} members near #{@place}"
%form{:action => search_places_path, :method => :get, :class => 'form-inline', :role => 'form'}
.form-group
= label_tag :new_place, "Change location:", :class => 'sr-only'
= text_field_tag :new_place, '', :class => 'form-control', :placeholder => "New location..."
= submit_tag "Search", :class => 'btn btn-primary'
%br/
= render partial: 'search_form'
%div#placesmap{ :style => "height:300px"}
+1
View File
@@ -3,6 +3,7 @@ development:
database: growstuff_dev
host: localhost
user: postgres
password: password
test:
adapter: postgresql