<%= 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.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.attached? %> <%= image_tag main_app.url_for(form.object.post_image), class: "img-responsive img-thumbnail" %> <% end %>

Post Categories

<%= form.collection_check_boxes :category_ids, PhcdevworksPress::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" %> <%= form.text_field :post_title, class: "form-control" %>
<%= form.text_area :post_text, class: "form-control", class: "editor", rows: "10" %>
<% end %>