<%= form_for(@news_post, :html => {:multipart => true}) do |f| %> <%= render 'phcnotifi/validations', :object => @news_post %>
Publish Panel
<%= f.label :pststatus, "Post Status" %> <%= f.select( :pststatus, [['Draft','draft'],['Publish','publish'],['Review','review']], {}, {class: "form-control form-control-sm"}) %>
<%= f.label :pstcategory, "Post Category" %> <%= collection_select(:pstcategory, :pstcategory_id, Phcpresspro::Category.order('catname'), :id, :catname, {}, {class: "form-control form-control-sm"}) %>
<%= f.submit "Publish News Article", class: "btn btn-primary btn-sm" %>
Post Images
<%= f.label :pstimage, "Featured Image" %> <%= f.file_field :pstimage, class: "form-control" %>
<%= image_tag(@news_post.pstimage_url, class: "img-responsive img-thumbnail") %>
News Post Publisher
<%= f.label :newspsttitle, "Post Name" %> <%= f.text_field :newspsttitle, class: "form-control" %>
<%= f.label :newspsttext, "Post Text" %> <%= f.text_area :newspsttext, class: "form-control" %>
<%= f.label :newspstexcerpts, "Excerpts/Text Leads" %> <%= f.text_area :newspstexcerpts, class: "form-control" %>
<% end %>