#2245 add search form
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
<table class="search">
|
<table class="search">
|
||||||
<tbody>
|
<tbody>
|
||||||
<%= form_tag pools_path, :method => :get, :class => "simple_form" do %>
|
<%= form_tag path, :method => :get, :class => "simple_form" do %>
|
||||||
<tr>
|
<tr>
|
||||||
<th><label for="search_name_matches">Name</label></th>
|
<th><label for="search_name_matches">Name</label></th>
|
||||||
<td>
|
<td>
|
||||||
@@ -28,14 +28,16 @@
|
|||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
<tr>
|
<% if path != gallery_pools_path %>
|
||||||
<th><label for="search_category">Category</th>
|
<tr>
|
||||||
<td>
|
<th><label for="search_category">Category</th>
|
||||||
<div class="input">
|
<td>
|
||||||
<%= select "search", "category", [["Series", "series"], ["Collection", "collection"]], :selected => params[:search][:category], :include_blank => true %>
|
<div class="input">
|
||||||
</div>
|
<%= select "search", "category", [["Series", "series"], ["Collection", "collection"]], :selected => params[:search][:category], :include_blank => true %>
|
||||||
</td>
|
</div>
|
||||||
</tr>
|
</td>
|
||||||
|
</tr>
|
||||||
|
<% end %>
|
||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
<th><label for="search_order">Order</th>
|
<th><label for="search_order">Order</th>
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
<div id="c-pools">
|
<div id="c-pools">
|
||||||
<div id="a-gallery">
|
<div id="a-gallery">
|
||||||
|
<%= render "search", :path => gallery_pools_path %>
|
||||||
<section>
|
<section>
|
||||||
<%= @post_set.presenter.post_previews_html(self) %>
|
<%= @post_set.presenter.post_previews_html(self) %>
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
<div id="c-pools">
|
<div id="c-pools">
|
||||||
<div id="a-index">
|
<div id="a-index">
|
||||||
<%= render "search" %>
|
<%= render "search", :path => pools_path %>
|
||||||
<table class="striped" width="100%">
|
<table class="striped" width="100%">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
|
|||||||
Reference in New Issue
Block a user