%= form_for [:admin, @blog_post] do |f| -%>
<%= render :partial => "/shared/admin/error_messages",
:locals => {
:object => f.object,
:include_object_name => true
} %>
<%= f.label :title -%>
<%= f.text_field :title, :class => 'larger widest' -%>
<%= f.label :body -%>
<%= f.text_area :body, :rows => 20, :class => 'wymeditor widest' -%>
<%= f.label :tag_list, "Tags" -%>
<%= f.text_field :tag_list, :class => 'larger' -%>
<%= link_to t('.advanced_options'), "#",
:id => 'toggle_advanced_options',
:title => t('.toggle_advanced_options') %>
<%= f.check_box :draft %>
<%= f.label :draft, t('.save_as_draft'), :class => "stripped" %>
<%= t('admin.blog.submenu.categories.title') %>
<% @blog_categories.each do |category| %>
-
<%= check_box_tag 'blog_post[category_ids][]', category.id,
@blog_post.categories.include?(category),
:id => (id="blog_post_category_ids_#{category.id}") %>
<%= label_tag 'blog_post[category_ids][]', category.title,
:class => 'stripped',
:for => id %>
<% end %>
<%= t('.published_at') %>
<%= f.datetime_select :published_at %>
<%= render :partial => '/seo_meta/form', :locals => {:form => f} %>
<%= render :partial => "/shared/admin/form_actions",
:locals => {
:f => f,
:continue_editing => true,
:delete_title => t('admin.blog.posts.post.delete')
} %>
<% end -%>
<% if Refinery.version < '0.9.9' %>
<% content_for :head do %>
<%= render :partial => 'form.css' %>
<%= render :partial => 'form.js' %>
<% end %>
<% else %>
<% content_for :stylesheets, render(:partial => 'form.css') -%>
<% content_for :javascripts, render(:partial => 'form.js') -%>
<% end %>