This repository has been archived by the owner on Jan 24, 2024. It is now read-only.
forked from Growstuff/growstuff
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added search form on the places index page.
- Loading branch information
1 parent
5bb04dc
commit 0e2a5fd
Showing
5 changed files
with
12 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -458,3 +458,6 @@ DEPENDENCIES | |
unicorn | ||
webrat | ||
will_paginate (~> 3.0) | ||
|
||
BUNDLED WITH | ||
1.10.3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
-content_for :title, "#{ENV['GROWSTUFF_SITE_NAME']} Community Map" | ||
|
||
= render partial: 'search_form' | ||
%div#placesmap | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters