app/views/phcpress/article/posts/_form.html.erb in phcpress-56.4.0 vs app/views/phcpress/article/posts/_form.html.erb in phcpress-57.0.0
- old
+ new
@@ -7,13 +7,13 @@
<div class="panel panel-inverse">
<div class="panel-heading">
<h4 class="panel-title">Publish Panel</h4>
</div>
<div class="panel-body">
- <div class="form-group field_with_errors">
- <%= form.label :post_status, "Post Status" %>
- <%= form.select( :post_status, [['Draft','draft'],['Published','published'],['Review','review']], {}, {class: "form-control form-control-sm"}) %>
+ <div class="mb-3">
+ <%= form.label :post_status, "Post Status", class: "form-label" %>
+ <%= form.select( :post_status, [["Draft","draft"],["Published","published"],["Review","review"]], {}, {class: "form-control form-control-sm"}) %>
</div>
<div class="actions">
<%= form.submit class: "btn btn-primary" %>
</div>
</div>
@@ -24,12 +24,12 @@
<div class="panel panel-inverse">
<div class="panel-heading">
<h4 class="panel-title">Post Images</h4>
</div>
<div class="panel-body">
- <div class="form-group field_with_errors">
- <%= form.label :post_image, "Featured Image" %>
+ <div class="mb-3">
+ <%= form.label :post_image, "Featured Image", class: "form-label" %>
<%= form.file_field :post_image, class: "form-control" %>
</div>
<% if form.object.post_image? %>
<%= image_tag form.object.post_image_url, class: "img-responsive img-thumbnail" %>
<%= form.label :remove_post_image %>
@@ -55,28 +55,24 @@
</div>
<div class="col-md-9 ">
- <!-- PHCNotifi Render Validation -->
- <%= render 'phcnotifi/default/validations', :object => @article_post %>
- <!-- PHCNotifi Render Validation -->
+ <!-- -PHCDEV- Form Validation -->
+ <%= render "phcdevworks_notifications/bootstrap/validations", :object => @article_post %>
+ <!-- -PHCDEV- Form Validation -->
<div class="panel panel-inverse">
<div class="panel-heading">
- <div class="panel-heading-btn">
- <a href="javascript:;" class="btn btn-xs btn-icon btn-circle btn-default" data-click="panel-expand"><i class="fa fa-expand"></i></a>
- <a href="javascript:;" class="btn btn-xs btn-icon btn-circle btn-success" data-click="panel-reload"><i class="fa fa-redo"></i></a>
- <a href="javascript:;" class="btn btn-xs btn-icon btn-circle btn-warning" data-click="panel-collapse"><i class="fa fa-minus"></i></a>
- </div>
+
<h4 class="panel-title"><%= yield(:phc_title_tagline) %></h4>
</div>
<div class="panel-body ">
- <div class="form-group field_with_errors">
- <%= form.label :post_title, "Article Title" %>
+ <div class="mb-3">
+ <%= form.label :post_title, "Article Title", class: "form-label" %>
<%= form.text_field :post_title, class: "form-control" %>
</div>
- <div class="form-group field_with_errors">
+ <div class="mb-3">
<%= form.text_area :post_text, :class => "ckeditor form-control", :id => "editor1", :rows => 20, :cols => 60 %>
</div>
</div>
</div>