mirror of
https://github.com/Growstuff/growstuff.git
synced 2026-03-23 09:11:39 -04:00
Added search form on the places index page.
This commit is contained in:
@@ -458,3 +458,6 @@ DEPENDENCIES
|
||||
unicorn
|
||||
webrat
|
||||
will_paginate (~> 3.0)
|
||||
|
||||
BUNDLED WITH
|
||||
1.10.3
|
||||
|
||||
6
app/views/places/_search_form.html.haml
Normal file
6
app/views/places/_search_form.html.haml
Normal 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,4 +1,4 @@
|
||||
-content_for :title, "#{ENV['GROWSTUFF_SITE_NAME']} Community Map"
|
||||
|
||||
= render partial: 'search_form'
|
||||
%div#placesmap
|
||||
|
||||
|
||||
@@ -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"}
|
||||
|
||||
|
||||
@@ -3,6 +3,7 @@ development:
|
||||
database: growstuff_dev
|
||||
host: localhost
|
||||
user: postgres
|
||||
password: password
|
||||
|
||||
test:
|
||||
adapter: postgresql
|
||||
|
||||
Reference in New Issue
Block a user