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