#2245 add search form

This commit is contained in:
Toks
2014-09-24 13:14:03 -04:00
parent 4db0c3c0e5
commit 6b9e0fca12
3 changed files with 13 additions and 10 deletions

View File

@@ -1,6 +1,6 @@
<table class="search">
<tbody>
<%= form_tag pools_path, :method => :get, :class => "simple_form" do %>
<%= form_tag path, :method => :get, :class => "simple_form" do %>
<tr>
<th><label for="search_name_matches">Name</label></th>
<td>
@@ -28,14 +28,16 @@
</td>
</tr>
<tr>
<th><label for="search_category">Category</th>
<td>
<div class="input">
<%= select "search", "category", [["Series", "series"], ["Collection", "collection"]], :selected => params[:search][:category], :include_blank => true %>
</div>
</td>
</tr>
<% if path != gallery_pools_path %>
<tr>
<th><label for="search_category">Category</th>
<td>
<div class="input">
<%= select "search", "category", [["Series", "series"], ["Collection", "collection"]], :selected => params[:search][:category], :include_blank => true %>
</div>
</td>
</tr>
<% end %>
<tr>
<th><label for="search_order">Order</th>

View File

@@ -1,5 +1,6 @@
<div id="c-pools">
<div id="a-gallery">
<%= render "search", :path => gallery_pools_path %>
<section>
<%= @post_set.presenter.post_previews_html(self) %>

View File

@@ -1,6 +1,6 @@
<div id="c-pools">
<div id="a-index">
<%= render "search" %>
<%= render "search", :path => pools_path %>
<table class="striped" width="100%">
<thead>
<tr>