aboutsummaryrefslogtreecommitdiffstats
path: root/app/views/admin/blog/posts/_form.html.erb
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/admin/blog/posts/_form.html.erb')
-rw-r--r--app/views/admin/blog/posts/_form.html.erb14
1 files changed, 8 insertions, 6 deletions
diff --git a/app/views/admin/blog/posts/_form.html.erb b/app/views/admin/blog/posts/_form.html.erb
index 20a8fe1..ffb790d 100644
--- a/app/views/admin/blog/posts/_form.html.erb
+++ b/app/views/admin/blog/posts/_form.html.erb
@@ -14,10 +14,10 @@
<div id='page-tabs' class='clearfix ui-tabs ui-widget ui-widget-content ui-corner-all'>
<ul id='page_parts'>
<li class='ui-state-default ui-state-active'>
- <%= link_to "Body", "#page_part_body" %>
+ <%= link_to t('body', :scope => 'activerecord.attributes.blog_post'), "#page_part_body" %>
</li>
<li class='ui-state-default'>
- <%= link_to "Teaser", "#page_part_teaser" %>
+ <%= link_to t('teaser', :scope => 'activerecord.attributes.blog_post'), "#page_part_teaser" %>
</li>
<% Refinery::Blog.tabs.each_with_index do |tab, tab_index| %>
<li class='ui-state-default' id="custom_<%= tab.name %>_tab">
@@ -38,7 +38,7 @@
:locals => {
:f => f,
:part_index => (part_index += 1),
- } -%>
+ } if f.object.respond_to?(:custom_teaser) -%>
<% Refinery::Blog.tabs.each_with_index do |tab, tab_index| %>
<div class='page_part' id='<%= "custom_tab_#{tab_index}" %>'>
<%= render :partial => tab.partial, :locals => {:f => f} %>
@@ -49,7 +49,7 @@
</div>
<div class='field'>
- <%= f.label :tag_list, "Tags" -%>
+ <%= f.label :tag_list, t('blog.shared.tags.title') -%>
<%= f.text_field :tag_list, :class => 'larger' -%>
</div>
@@ -66,10 +66,12 @@
</div>
<div id='more_options' style="display:none;">
<div class="hemisquare">
- <h3><%= t('admin.blog.submenu.categories.title') %></h3>
+ <h3><%= t('title', :scope => 'admin.blog.submenu.categories') %></h3>
<ul class='blog_categories'>
<% @blog_categories.each do |category| %>
<li>
+ <%= hidden_field_tag 'blog_post[category_ids][]', category.id,
+ :value => 0 %>
<%= check_box_tag 'blog_post[category_ids][]', category.id,
@blog_post.categories.include?(category),
:id => (id="blog_post_category_ids_#{category.id}") %>
@@ -99,7 +101,7 @@
:locals => {
:f => f,
:continue_editing => true,
- :delete_title => t('admin.blog.posts.post.delete')
+ :delete_title => t('delete', :scope => 'admin.blog.posts.post')
} %>
<% end -%>