move pool search to index (#636)
This commit is contained in:
45
app/views/pools/_search.html.erb
Normal file
45
app/views/pools/_search.html.erb
Normal 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>
|
||||
Reference in New Issue
Block a user