aboutsummaryrefslogtreecommitdiffstats
path: root/app/views/admin
diff options
context:
space:
mode:
authorPhilip Arndt <parndt@gmail.com>2010-08-25 17:44:12 +1200
committerPhilip Arndt <parndt@gmail.com>2010-08-25 17:44:12 +1200
commit747a1b3a4e9f9dd93fb364671371e503be2e17db (patch)
treeee50da0d48d936762c04805b736942b85c82e985 /app/views/admin
parent11f16cd66e86396bda09e3bdede88fd08f35bc1c (diff)
downloadrefinerycms-blog-747a1b3a4e9f9dd93fb364671371e503be2e17db.tar.gz
refinerycms-blog-747a1b3a4e9f9dd93fb364671371e503be2e17db.tar.bz2
refinerycms-blog-747a1b3a4e9f9dd93fb364671371e503be2e17db.zip
In theory categories should save correctly.
Diffstat (limited to 'app/views/admin')
-rw-r--r--app/views/admin/blog/categories/_category.html.erb9
-rw-r--r--app/views/admin/blog/posts/_form.html.erb12
2 files changed, 10 insertions, 11 deletions
diff --git a/app/views/admin/blog/categories/_category.html.erb b/app/views/admin/blog/categories/_category.html.erb
index 109f4e6..20c5c35 100644
--- a/app/views/admin/blog/categories/_category.html.erb
+++ b/app/views/admin/blog/categories/_category.html.erb
@@ -4,10 +4,11 @@
<span class="preview">&nbsp;</span>
</span>
<span class='actions'>
- <%= link_to refinery_icon_tag("application_edit.png"), edit_admin_blog_category_path(category),
- :title => t('.edit') %>
+ <%= link_to refinery_icon_tag("application_edit.png"),
+ edit_admin_blog_category_path(category, :dialog => true, :height => 325),
+ :title => t('.edit') %>
<%= link_to refinery_icon_tag("delete.png"), admin_blog_category_path(category),
- :class => "cancel confirm-delete",
- :title => t('.delete') %>
+ :class => "cancel confirm-delete",
+ :title => t('.delete') %>
</span>
</li>
diff --git a/app/views/admin/blog/posts/_form.html.erb b/app/views/admin/blog/posts/_form.html.erb
index da3f132..22f7385 100644
--- a/app/views/admin/blog/posts/_form.html.erb
+++ b/app/views/admin/blog/posts/_form.html.erb
@@ -25,13 +25,11 @@
<div class="hemisquare">
<h3><%= t('admin.blog.submenu.categories.title') %></h3>
<ul class='blog_categories'>
- <% f.fields_for :categories do |c| %>
- <% @blog_categories.each do |category| %>
- <li>
- <%= c.check_box :id, :value => category.id %>
- <%= c.label :id, category.title, :class => 'stripped' %>
- </li>
- <% end %>
+ <% @blog_categories.each do |category| %>
+ <li>
+ <%= check_box_tag 'blog_post[category_ids][]', category.id, {}, :id => (id="blog_post_category_ids_#{category.id}") %>
+ <%= label_tag 'blog_post[category_ids][]', category.title, {:class => 'stripped', :for => id} %>
+ </li>
<% end %>
</ul>
</div>