<%- locals = {:f => f} -%> <%= hook :admin_post_form_left, locals do %> <%= 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 :permalink do %> <%= f.label :permalink, t("cms.permalink") %> *
<%= f.text_field :permalink, :class => 'fullwidth title' %> <%= f.error_message_on :permalink %> <% end %> <%= f.field_container :excerpt do %> <%= f.label :excerpt, t("cms.excerpt")%>
<%= f.text_area :excerpt, {:cols => 120, :rows => 3, :class => 'fullwidth'} %> <%= f.error_message_on :excerpt %> <% 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 %> <% end %>
<%= hook :admin_post_form_right, locals do %>

<%= f.label :user_id, t("cms.author")%>
<%= f.collection_select :user_id, User.roles_name_equals("admin"), :id, :display_name, {:prompt => t("cms.select_author")} %> <%= f.error_message_on :user_id %>

<%= f.label :is_active, t("cms.status")%>
<%= f.radio_button :is_active, 1 %><%= t("cms.publish") %> <%= f.radio_button :is_active, 0 %><%= t("cms.draft") %> <%= f.error_message_on :is_active %>

<%= f.label :commentable, t("cms.comment_status") %>: <%= f.radio_button :commentable, 1 %><%= t("cms.open") %> <%= f.radio_button :commentable, 0 %><%= t("cms.closed") %>

<%= f.label :tag_list, "#{t('cms.tags')} (#{t('cms.tags_hint')}):" %>
<%= f.text_field :tag_list %>

<%= t("cms.metadata") %>

<%= hook :admin_page_form_meta, locals do %>

<%= f.label :meta_keywords, t("cms.meta_keywords")%>
<%= f.text_field :meta_keywords, :class => 'fullwidth' %>

<%= f.label :meta_description, t("cms.meta_description")%>
<%= f.text_field :meta_description, :class => 'fullwidth' %>

<% end %> <% end %>