app/views/phcpress/news/posts/_form.html.erb in phcpress-0.7.11 vs app/views/phcpress/news/posts/_form.html.erb in phcpress-0.9.6

- old
+ new

@@ -1,7 +1,7 @@ <div class="row"> - <%= form_for(@news_post) do |f| %> + <%= form_for(@news_post, :html => {:multipart => true}) do |f| %> <div class="col-md-3"> <div class="panel panel-default"> <div class="panel-heading"> <i class="fa fa-paper-plane-o"></i> Publish Panel </div> @@ -10,9 +10,20 @@ <label><%= f.label :pststatus, "Post Status" %></label> <%= f.select :pststatus, [['Draft','draft'],['Publish','publish'],['Review','review']], class: "form-control" %> </div> <div class="actions"> <%= f.submit "Publish News Article", class: "btn btn-primary btn-sm" %> + </div> + </div> + </div> + <div class="panel panel-default"> + <div class="panel-heading"> + <i class="fa fa-camera-retro"></i> Post Images + </div> + <div class="panel-body"> + <div class="form-group"> + <label><%= f.label :pstimage, "Featured Image" %></label> + <%= f.file_field :pstimage, class: "form-control" %> </div> </div> </div> </div> <div class="col-md-9 ">