-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Cleanup, start on the advanced search stuff.
- Loading branch information
Showing
13 changed files
with
47 additions
and
87 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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,10 @@ | ||
class AdvancedSearchController < ApplicationController | ||
before_filter :is_admin | ||
|
||
def contacts | ||
end | ||
|
||
def notes | ||
end | ||
|
||
end |
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
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,2 @@ | ||
module AdvancedSearchHelper | ||
end |
This file was deleted.
Oops, something went wrong.
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,23 @@ | ||
<% form_tag contacts_url do %> | ||
<%= text_field_tag :q, params[:q] %> | ||
<%= submit_tag 'Go' %> | ||
<% end %> | ||
|
||
<table border="0" cellpadding="5" cellspacing="0"> | ||
<tr> | ||
<th>all these words:</th> | ||
<td><%= text_field_tag :all_words, params[:all_words], :size => 50 %></td> | ||
</tr> | ||
<tr> | ||
<th>this exact phrase:</th> | ||
<td><%= text_field_tag :exact_phrase, params[:exact_phrase], :size => 50 %></td> | ||
</tr> | ||
<tr> | ||
<th>one or more of these words:</th> | ||
<td> | ||
<%= text_field_tag 'ors[]', (params[:ors] ? params[:ors][0] : ''), :size => 15 %> | ||
<%= text_field_tag 'ors[]', (params[:ors] ? params[:ors][1] : ''), :size => 15 %> | ||
<%= text_field_tag 'ors[]', (params[:ors] ? params[:ors][2] : ''), :size => 15 %> | ||
</td> | ||
</tr> | ||
</table> |
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,2 @@ | ||
<h1>AdvancedSearch#notes</h1> | ||
<p>Find me in app/views/advanced_search/notes.html.erb</p> |
This file was deleted.
Oops, something went wrong.
2 changes: 1 addition & 1 deletion
2
...nal/admin/saved_search_controller_test.rb → ...tional/advanced_search_controller_test.rb
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
require 'test_helper' | ||
|
||
class AdvancedSearchHelperTest < ActionView::TestCase | ||
end |