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

Publish Panel

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

Post Images

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

Post Categories

<%= form.collection_check_boxes :category_ids, Phcpresspro::Article::Category.all, :id, :category_name do |post_category| %> <%= post_category.check_box %> <%= post_category.label %>
<% end %>
<%= render 'phcnotifi/default/validations', :object => @article_post %>

<%= yield(:phc_title_tagline) %>

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