<%= form_for(@article_post, :html => {:multipart => true}) do |f| %>

Publish Panel

<%= f.label :pststatus, "Post Status" %> <%= f.select( :pststatus, [['Draft','draft'],['Published','published'],['Review','review']], {}, {class: "form-control form-control-sm"}) %>
<%= f.submit class: "btn btn-primary waves-effect" %>

Post Images

<%= f.label :pstimage, "Featured Image" %> <%= f.file_field :pstimage, class: "form-control" %>
<% if f.object.pstimage? %> <%= image_tag f.object.pstimage_url, class: "img-responsive img-thumbnail" %> <%= f.label :remove_pstimage %> <%= f.check_box :remove_pstimage %> <% end %>

Post Categories

<%= f.collection_check_boxes :category_ids, Phcpresspro::Modules::Category.all, :id, :catname do |post_category| %> <%= post_category.check_box %> <%= post_category.label %>
<% end %>
<%= render 'phcnotifi/validations', :object => @article_post %>
<%= f.label :psttitle, "Article Title" %> <%= f.text_field :psttitle, class: "form-control" %>

<%= yield(:phc_title_tagline) %>

<%= f.text_area :psttext, :class => "ckeditor form-control", :id => "editor1", :rows => 20, :cols => 60 %>
<% end %>