<%= form_for(@blog_post, :html => {:multipart => true}) do |f| %> <%= render 'phcnotifi/validations', :object => @blog_post %>
Publish Panel
<%= f.label :pststatus, "Post Status" %> <%= f.select( :pststatus, [['Draft','draft'],['Publish','publish'],['Review','review']], {}, {class: "form-control form-control-sm"}) %>
<%= f.label :pstcategory, "Post Category" %> <%= collection_select(:pstcategory, :pstcategory_id, Phcpress::Category.order('catname'), :id, :catname, {}, {class: "form-control form-control-sm"}) %>
<%= f.submit "Publish Blog Article", class: "btn btn-primary btn-sm" %>
Post Images
<%= f.file_field :pstimage, class: "form-control" %>
<%= image_tag(@blog_post.pstimage_url, class: "img-responsive img-thumbnail") %>
Blog Post Publisher
<%= f.text_field :blogpsttitle, class: "form-control" %>
<%= f.text_area :blogpsttext, class: "form-control" %>
<%= f.text_area :blogpstexcerpts, class: "form-control" %>
<% end %>