<%= form.field_container :title do %> <%= form.label :title, t('content.title') %>
<%= form.text_field :title, :class => "title" %> <%= error_message_on :content, :title %> <% end %> <%= form.field_container :page do %> <%= form.label :page_id, t('content.page') %>
<%= form.select :page_id, @pages.collect{|i| [i.title, i.id]} %> <%= error_message_on :content, :page_id %> <% end %> <%= form.field_container :body do %> <%= form.label :title, t('content.body') %><%= markdown_helper %>
<%= form.text_area :body %> <%= error_message_on :content, :body %> <% end %>

<%= link_to "Optional Fields ".html_safe, "#options", :id => "btn_optional" %>

<% content_for :head do %> <%= stylesheet_link_tag "markitup.css" %> <%= javascript_include_tag 'jquery.markitup.js', 'markdown.set.js' %> <% end %>