<%= tb_form_errors(@post)%>
<%= f.label :title, :required => true,:class=> "control-label" %> <%= f.text_field :title, :class=>'form-control spud-post-title', :placeholder => "Enter title here" %>
<%= f.label :content %> <%= f.text_area :content, :class => 'tinymce form-control' %>

Advanced

<% if @current_user.super_admin %>
<%= f.label :spud_user_id, 'Author', :class => "col-sm-2 control-label" %>
<%= f.select :spud_user_id, options_for_select(SpudUser.ordered.collect{|user| [user.full_name, user.id]}, @post.spud_user_id), {}, :class => 'form-control' %>
<% else %> <%= f.hidden_field :spud_user_id %> <% end %>
<%= f.label :custom_author, 'Custom Author Display', :class => "col-sm-2 control-label" %>
<%= f.text_field :custom_author, :class=>'form-control', :placeholder => 'Author Display' %>
<%= f.label :visible, :class => 'col-sm-2 control-label' %>
<%= f.label :comments_enabled, 'Enable Comments', :class => 'col-sm-2 control-label' %>
<%= f.label :published_at, 'Publish Date', :class => 'col-sm-2 control-label' %>
<%= f.datetime_select :published_at, {:ampm => true, :minute_step => 5, :order => [:month, :day, :year, :hour, :minute]}, {:class => 'form-control post-published-at-picker'} %>
<%= label_tag :categories, 'Categories', :class => "col-sm-2 control-label" %>
<%= link_to 'Add Category', new_admin_post_category_path, :class => 'btn btn-xs btn-primary spud-post-add-category' %>
<%= render :partial => '/admin/posts/custom_fields', :locals => {:f => f} %>

Meta Data

<%= f.label :url_name, :required => true, :class=> "col-sm-2 control-label" %>
<%= f.text_field :url_name, :class=>'form-control spud-post-url-name', :placeholder => 'Optional' %>
<%= f.label :meta_keywords, :required => true, :class=> "col-sm-2 control-label" %>
<%= f.text_field :meta_keywords, :class=>'form-control', :placeholder => 'Optional' %>
<%= f.label :meta_description, :required => true, :class=> "col-sm-2 control-label" %>
<%= f.text_field :meta_description, :class=>'form-control', :placeholder => 'Optional' %>
<%= f.submit "Save Post", :class => "btn btn-primary", "data-loading-text" => "Saving..." %> <%= link_to "Cancel", request.referer, :class => "btn btn-default" %>