<%= form_for(@articles_post, :html => {:multipart => true}) do |f| %> <%= render 'phcnotifi/validations', :object => @articles_post %>
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" %>
Post 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 %>
Post Categories & Tags
<%= f.collection_check_boxes :category_ids, Phcpress::Modules::Category.all, :id, :catname do |post_category| %> <%= post_category.check_box %> <%= post_category.label %>
<% end %>
Blog Post Publisher
<%= f.label :psttitle, "Title" %> <%= f.text_field :psttitle, class: "form-control" %>
<%= f.text_area :psttext, class: "post_edit_box form-control" %>
<% end %>