Fixes #37: Search function for artists requires all fields to be completed (fixed for all searches)

This commit is contained in:
albert
2011-09-11 14:51:09 -04:00
parent 0c895f892b
commit ff4e3e3ad1
3 changed files with 10 additions and 10 deletions

View File

@@ -4,10 +4,10 @@
<div id="search-form">
<%= simple_form_for(@search) do |f| %>
<%= f.input :name_contains, :label => "Name" %>
<%= f.input :other_names_match, :label => "Other Names" %>
<%= f.input :group_name_contains, :label => "Group Name" %>
<%= f.input :url_match, :label => "URL" %>
<%= 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" %>
<% end %>
</div>

View File

@@ -1,10 +1,10 @@
<div>
<%= simple_form_for @search do |f| %>
<%= hidden_field_tag :folder, params[:folder] %>
<%= f.input :title_contains %>
<%= f.input :body_contains %>
<%= f.input :to_name_equals %>
<%= f.input :from_name_equals %>
<%= f.input :title_contains, :required => false %>
<%= f.input :body_contains, :required => false %>
<%= f.input :to_name_equals, :required => false %>
<%= f.input :from_name_equals, :required => false %>
<%= f.button :submit %>
<% end %>
</div>

View File

@@ -1,8 +1,8 @@
<div id="c-notes">
<div id="a-search">
<%= simple_form_for @search do |f| %>
<%= f.input :body_matches, :label => "Body" %>
<%= f.input :post_tag_match, :label => "Tags" %>
<%= f.input :body_matches, :label => "Body", :required => false %>
<%= f.input :post_tag_match, :label => "Tags", :required => false %>
<%= f.button :submit, "Search" %>
<% end %>
</div>