<%= render :partial => 'sub_menu' %> <%= error_messages_for :post %> <% form_for(:post, :url => collection_url, :html => { :multipart => true }) do |f| %>
<% f.field_container :title do %> <%= f.label :title, t("cms.title") %> *
<%= f.text_field :title, :class => 'fullwidth title' %> <%= f.error_message_on :title %> <% end %>
<% f.field_container :body_raw do %> <%= f.label :body_raw, t("cms.body")%> *
<%= f.text_area :body_raw, {:cols => 120, :rows => 4, :class => 'fullwidth'} %> <%= f.error_message_on :body_raw %> <% end %>

<%= f.label :user_id, t("cms.author") %> <%= f.collection_select :user_id, User.all, :id, :display_name, {:include_blank => false} %>

<% f.field_container :permalink do %> <%= f.label :permalink, t("cms.permalink") %>
<%= f.text_field :permalink, :class => 'fullwidth title' %> <%= f.error_message_on :permalink %> <% end %>
<%= render :partial => 'admin/shared/new_resource_links' %>
<% end %>