<%= form_for [refinery, :blog_admin, @post] do |f| -%> <%= render "/refinery/admin/error_messages", :object => f.object, :include_object_name => true %> <%= render '/refinery/admin/locale_picker', :current_locale => Globalize.locale %>
<%= f.label :title -%> <%= f.text_field :title, :class => 'larger widest' -%>
<% part_index = -1 %> <%= render 'form_part', :f => f, :part_index => (part_index += 1) -%> <%= render 'teaser_part', :f => f, :part_index => (part_index += 1) if f.object.respond_to?(:custom_teaser) -%> <% Refinery::Blog.tabs.each_with_index do |tab, tab_index| %>
<%= render tab.partial, :f => f %>
<% end %>
<%= render '/refinery/admin/form_advanced_options_menu', :f => f %>
<%= f.label :tag_list, t('refinery.blog.shared.tags.title') -%> <%= f.text_field :tag_list, value: @post.tag_list.to_s, :class => 'larger' -%>
<%= render "/refinery/admin/form_actions", :f => f, :continue_editing => true, :delete_title => t('delete', :scope => 'refinery.blog.admin.posts.post'), :before_delete_button => (link_to(t('delete_translation', :scope => 'refinery.blog.admin.posts.post'), refinery.delete_translation_blog_admin_post_path(@post, :locale_to_delete => Globalize.locale), :method => :post, :data => { :confirm => t('delete_translation_confirmation', :scope => 'refinery.blog.admin.posts.post') }, :class => "button confirm-delete") if Refinery::I18n.frontend_locales.many? && @post.translations.size > 1) %> <% end -%> <% content_for :stylesheets, stylesheet_link_tag('refinery/blog/backend') %> <% content_for :javascripts, javascript_include_tag('refinery/blog/backend') %> <%= render 'refinery/shared/admin/autocomplete', :dom_id => '#post_tag_list', :url => refinery.tags_blog_admin_posts_url %>