refactored search
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user