<%=error_messages_for(f.object)%>
<%=f.label :title, :required=>true,:style =>"display:none;", :class=>"control-label"%> <%=f.text_field :title, :class => "full-width",:placeholder=>"Enter title here"%>
<%= f.text_area :content,:style => "width:100%;", :class => 'tinymce full-width' %>
Categories
<% if Spud::Blog.config.has_custom_fields %>
Custom Fields <%= render :partial => '/spud/admin/posts/custom_fields', :locals => {:f => f} %>
<% end %>
Advanced
<%= f.label :published_at, 'Publish Date', :class=>"control-label" %>
<%= f.text_field :published_at, :class => 'spud_form_date_picker' %>
<%if @current_user.super_admin%>
<%= f.label :spud_user_id, 'Author', :class=>"control-label" %>
<%=f.select :spud_user_id,options_for_select(SpudUser.order(:first_name,:last_name,:login).all.collect{|user| [user.full_name,user.id]},f.object.spud_user_id)%>
<%else%> <%= f.hidden_field :spud_user_id %> <%end%>
<%= f.label :visible, :class=>"control-label" %>
<%= f.check_box :visible %>
<%= f.label :meta_keywords, 'Keywords', :class=>"control-label" %>
<%= f.text_field :meta_keywords ,:style=>"width:600px;" %> A Comma seperated list of keywords for search engines. Keep it short (no more than 10 keywords)
<%= f.label :meta_description, 'Description', :class=>"control-label" %>
<%= f.text_area :meta_description, :style =>"width:600px;height:40px;"%> A short description of the article. This is what appears on a search engines search result page.
<% unless @post.is_news %>
<%= f.label :comments_enabled,"Comments Enabled", :class=>"control-label" %>
<%= f.check_box :comments_enabled %>
<% end %>
<%= f.hidden_field :is_news %>
<%=f.submit "Save Post", :class=>"btn btn-primary form-btn","data-loading-text"=>"Saving..."%> or <%=link_to "cancel",request.referer,:class => "btn"%>