This commit is contained in:
Harry Bomrah 2014-12-01 18:16:39 +08:00
parent 4d8c331b67
commit f68ee92d5a
1 changed files with 1 additions and 1 deletions

View File

@ -24,7 +24,7 @@
<td><%= format_value page.page_contexts.last.updated_at rescue nil %></td> <td><%= format_value page.page_contexts.last.updated_at rescue nil %></td>
<td><%= User.find(page.page_contexts.last.update_user_id).user_name rescue nil %></td> <td><%= User.find(page.page_contexts.last.update_user_id).user_name rescue nil %></td>
<td> <td>
<%= select_tag("category_id",options_for_select(@categories, (page.category_id.to_s rescue "")), prompt: "Select a category", class: "category_select") %> <%= select_tag("category_id",options_for_select(@categories, (page.category_id.to_s rescue "")), prompt: "Select a category", class: "category_select", style: "margin-bottom:0;") %>
<button <%= !page.category_id.nil? ? "data-page-category-id=#{page.category_id.to_s}" : "" %> data-page-id="<%= page.id.to_s %>" id="save_category" class="btn btn-primary hide">Save</button> <button <%= !page.category_id.nil? ? "data-page-category-id=#{page.category_id.to_s}" : "" %> data-page-id="<%= page.id.to_s %>" id="save_category" class="btn btn-primary hide">Save</button>
</td> </td>
</tr> </tr>