refactored search

This commit is contained in:
albert
2013-01-10 17:45:52 -05:00
parent 13271e9bf5
commit 8749c43b3e
85 changed files with 946 additions and 304 deletions

View File

@@ -8,7 +8,7 @@
<% if @artist && !@artist.new_record? %>
<li>|</li>
<li><%= link_to "Edit", edit_artist_path(@artist) %></li>
<li><%= link_to "History", artist_versions_path(:search => {:artist_id_eq => @artist.id}) %></li>
<li><%= link_to "History", artist_versions_path(:search => {:artist_id => @artist.id}) %></li>
<li><%= link_to "Show", artist_path(@artist) %></li>
<% end %>
</menu>

View File

@@ -3,12 +3,9 @@
<h1>Search Artists</h1>
<div id="search-form">
<%= simple_form_for(@search) do |f| %>
<%= f.input :name_contains, :label => "Name", :required => false %>
<%= f.input :other_names_match, :label => "Other Names", :required => false %>
<%= f.input :group_name_contains, :label => "Group Name", :required => false %>
<%= f.input :url_match, :label => "URL", :required => false %>
<%= f.button :submit, "Search" %>
<%= form_tag(artists_path, :method => :get, :class => "simple_form") do %>
<%= search_field "name" %>
<%= submit_tag "Search" %>
<% end %>
</div>
</div>