#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"> <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>

View File

@@ -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) %>

View File

@@ -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>