%= form.field_container :title do %>
<%= form.label :title, t("post.title") %>
<%= form.text_field :title, :class => 'title' %>
<%= error_message_on :post, :title%>
<% end %>
<%= form.field_container :posted_at do %>
<%= form.label :posted_at, t("post.posted_at") %>
<%= form.text_field :posted_at, :class => 'text', :value => (@post.posted_at.to_s(:long) unless @post.new_record?) %>
<%= error_message_on :post, :posted_at %>
<% end %>
<%= form.field_container :body do %>
<%= form.label :body, t("post.body") %><%= markdown_helper %>
<%= form.text_area :body %>
<%= error_message_on :post, :body %>
<% end %>
<%= form.field_container :tag_list do %>
<%= form.label :tag_list, t("post.tags") %>
<%= form.text_field :tag_list, :class => 'text' %>
<%= error_message_on :post, :tag_list %>
<% end %>
<%= form.field_container :live do %>
<%= form.check_box :live %> <%= form.label :live, t("post.live") %>
<% end %>
<% content_for :head do %>
<%= stylesheet_link_tag "markitup.css" %>
<%= javascript_include_tag 'date.js', 'jquery.autodate.js', 'jquery.markitup.js', 'markdown.set.js' %>
<% end %>