move pool search to index (#636)

This commit is contained in:
Toks
2013-04-23 15:20:09 -04:00
parent 8b56fd7ae7
commit 3c88053c42
5 changed files with 46 additions and 26 deletions

View File

@@ -0,0 +1,45 @@
<table class="search">
<tbody>
<%= form_tag pools_path, :method => :get, :class => "simple_form" do %>
<tr>
<th><label for="search_name_matches">Name</label></th>
<td>
<div class="input">
<%= text_field "search", "name_matches" %>
</div>
</td>
</tr>
<tr>
<th><label for="search_description_matches">Description</label></th>
<td>
<div class="input">
<%= text_field "search", "description_matches" %>
</div>
</td>
</tr>
<tr>
<th><label for="search_creator_name">Creator</th>
<td>
<div class="input">
<%= text_field "search", "creator_name" %>
</div>
</td>
</tr>
<tr>
<th><label for="search_sort">Order</th>
<td>
<div class="input">
<%= select "search", "sort", [["Last updated", "updated_at"], ["Name", "name"]] %>
</div>
</td>
</tr>
<tr>
<td><%= submit_tag "Search" %></td>
</tr>
<% end %>
</tbody>
</table>