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

Publish Panel

<%= form.label :post_status, "Post Status", class: "form-label" %> <%= 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", class: "form-label" %> <%= 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 "phcdevworks_notifications/bootstrap/validations", :object => @article_post %>

<%= yield(:phc_title_tagline) %>

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