merge pool category branch; fixes #1521

This commit is contained in:
Toks
2013-05-26 08:23:46 -04:00
8 changed files with 53 additions and 7 deletions

View File

@@ -28,6 +28,15 @@
</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>
<tr>
<th><label for="search_sort">Order</th>
<td>

View File

@@ -5,6 +5,7 @@
<%= f.input :name, :input_html => { :value => @pool.pretty_name } %>
<%= f.input :description %>
<%= f.input :post_ids, :label => "Posts" %>
<%= f.input :category, :collection => ["series", "collection"], :include_blank => false %>
<%= f.input :is_active %>
<%= f.button :submit %>
<% end %>

View File

@@ -17,7 +17,7 @@
</td>
<td>
<%= link_to h(pool.pretty_name), pool_path(pool) %>
<%= link_to h(pool.pretty_name), pool_path(pool), :class => "pool-category-#{pool.category}" %>
</td>
<td>
<%= link_to_user pool.creator %>

View File

@@ -5,6 +5,7 @@
<%= f.input :name %>
<%= f.input :description %>
<%= f.input :post_ids, :label => "Posts" %>
<%= f.input :category, :collection => ["series", "collection"], :include_blank => false %>
<%= f.input :is_active %>
<%= f.button :submit %>
<% end %>