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

<%= pluralize(@post.errors.count, "error") %> prohibited you from saving this post:

<% end %>
Post Title

<%= f.text_field :title, :class => 'full-width' %>

<%= f.label :content %> <%= f.text_area :content, :class => 'wysiwym tinymce' %>
Categories
<% if Spud::Blog.config.has_custom_fields %>
Custom Fields
    <%= render :partial => '/spud/admin/posts/custom_fields', :locals => {:f => f} %>
<% end %>
Advanced
  1. <%= f.label :published_at, 'Publish Date' %> <%= f.text_field :published_at, :class => 'spud_form_date_picker' %>
  2. <%= f.label :visible %> <%= f.check_box :visible %>
  3. <%= f.label :meta_keywords, 'Keywords' %> <%= f.text_field :meta_keywords %>
  4. <%= f.label :meta_description, 'Description' %> <%= f.text_area :meta_description, :rows => 4, :cols => 75 %>
  5. <% unless @post.is_news %>
  6. <%= f.label :comments_enabled %> <%= f.check_box :comments_enabled %>
  7. <% end %>
<%= f.hidden_field :is_news %> <%= f.hidden_field :spud_user_id %> <%= f.submit 'Save Post', :class => "wymupdate"%> or <%= link_to "cancel",request.referer %>