app/views/phcpress/news/posts/_form.html.erb in phcpress-3.7.0 vs app/views/phcpress/news/posts/_form.html.erb in phcpress-3.7.5
- old
+ new
@@ -9,11 +9,15 @@
<div class="panel-heading">
<i class="fa fa-paper-plane-o"></i> Publish Panel
</div>
<div class="panel-body">
<div class="form-group">
- <label><%= f.label :pststatus, "Post Status" %></label>
- <%= f.select :pststatus, [['Draft','draft'],['Publish','publish'],['Review','review']], class: "form-control" %>
+ <%= f.label :pststatus, "Post Status" %>
+ <%= f.select( :pststatus, [['Draft','draft'],['Publish','publish'],['Review','review']], {class: "form-control form-control-sm"}) %>
+ </div>
+ <div class="form-group">
+ <%= f.label :pstcategory, "Post Category" %>
+ <%= collection_select(:pstcategory, :pstcategory_id, Phcpress::News::Post.order('newspsttitle'), :id, :newspsttitle, {}, {class: "form-control form-control-sm"}) %>
</div>
<div class="actions">
<%= f.submit "Publish News Article", class: "btn btn-primary btn-sm" %>
</div>
</div>