%= render :partial => 'admin/shared/contents_sub_menu' %>
<%= t('.new_post') %>
<% if @post.try(:errors).present? %>
<%= render 'shared/error_messages', :target => @post %>
<% end %>
<%= form_for([:admin, @post]) do |f| %>
<%= render "form", :form => f %>
<%= button t("create") %> <%= t('or') %> <%= link_to t('cancel'), collection_url %>
<% end %>