<% if @page.errors.any? %>

<%= pluralize(@page.errors.count, 'error') %> prohibited this post from being saved:

<% end %> <%= hidden_field_tag 'user_textfilter', current_user.text_filter_name %>
<%= link_to(t('.cancel'), { action: 'index' }, { class: 'btn btn-default' }) %>
<%= error_messages_for 'page' %>
<%= text_field 'page', 'title', class: 'form-control', placeholder: t('.title') %>
<%= text_area('page', 'body', class: 'form-control ', style: 'height: 360px', rows: '20', placeholder: t('.type_your_post')) %>