<%= form_for(@articles_post, :html => {:multipart => true}) do |f| %>
Article Publish Panel
<%= f.label :pststatus, "Post Status" %> <%= f.select( :pststatus, [['Draft','draft'],['Publish','publish'],['Review','review']], {}, {class: "form-control form-control-sm"}) %>
<%= f.submit "Publish", class: "btn btn-primary btn-sm" %>
Article 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 %>
Article Tags & Categories
<%= f.collection_check_boxes :category_ids, Phcpresspro::Modules::Category.all, :id, :catname do |post_category| %> <%= post_category.check_box %> <%= post_category.label %>
<% end %>
Article Publisher
<%= f.label :psttitle, "Title" %> <%= f.text_field :psttitle, class: "form-control" %>
<%= f.label :psttext, "Text" %> <%= f.text_area :psttext, class: "summernote form-control" %>
<%= f.label :pstexcerpts, "Excerpts/Text Leads" %> <%= f.text_area :pstexcerpts, class: "form-control" %>
<% end %>