<%= form_with(model: article_post, local: true) do |form| %>

Publish Panel

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

Post Images

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

Post Categories

<%= form.collection_check_boxes :category_ids, Phcpresspro::Article::Category.where(org_id: current_user.org_id), :id, :catname do |post_category| %> <%= post_category.check_box %> <%= post_category.label %>
<% end %>
<%= render 'phcnotifi/validations', :object => @article_post %>

<%= yield(:phc_title_tagline) %>

<%= form.label :psttittle, "Article Title" %> <%= form.text_field :psttittle, class: "form-control" %>
<%= form.text_area :psttext, :class => "ckeditor form-control", :id => "editor1", :rows => 20, :cols => 60 %>
<% end %>