<%= 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, class: "img-responsive img-thumbnail" %> <%= f.label :remove_pstimage %> <%= f.check_box :remove_pstimage %> <% end %>
Post Categories & Tags
<%= f.collection_check_boxes :category_ids, Phcpresspro::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.label :psttext, "Text" %> <%= f.text_area :psttext, class: "form-control" %>
<%= f.label :pstexcerpts, "Excerpts/Text Leads" %> <%= f.text_area :pstexcerpts, class: "form-control" %>
<% end %>