app/views/phcpress/article/posts/_form.html.erb in phcpress-42.0.0 vs app/views/phcpress/article/posts/_form.html.erb in phcpress-43.0.0
- old
+ new
@@ -1,80 +1,85 @@
+<%= form_for(@article_post, :html => {:multipart => true}) do |phc_press_article_post| %>
<div class="row">
- <%= form_for(@article_post, :html => {:multipart => true}) do |f| %>
+ <div class="col-md-3">
- <!-- PHC-Notifi Render Validation -->
- <%= render 'phcnotifi/validations', :object => @article_post %>
-
- <div class="col-md-3">
-
- <div class="panel panel-primary">
- <div class="panel-heading">
- <i class="fa fa-paper-plane-o"></i> Publish Panel
+ <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">
+ <%= phc_press_article_post.label :pststatus, "Post Status" %>
+ <%= phc_press_article_post.select( :pststatus, [['Draft','draft'],['Published','published'],['Review','review']], {}, {class: "form-control form-control-sm"}) %>
</div>
- <div class="panel-body">
- <div class="form-group">
- <%= f.label :pststatus, "Post Status" %>
- <%= f.select( :pststatus, [['Draft','draft'],['Publish','publish'],['Review','review']], {}, {class: "form-control form-control-sm"}) %>
- </div>
- <div class="actions">
- <%= f.submit "Publish", class: "btn btn-primary btn-sm" %>
- </div>
+ <div class="actions">
+ <%= phc_press_article_post.submit class: "btn btn-primary waves-effect" %>
</div>
</div>
+ </div>
- <div class="panel panel-primary">
- <div class="panel-heading">
- <i class="fa fa-camera-retro"></i> Post Images
+ <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">
+ <%= phc_press_article_post.label :pstimage, "Featured Image" %>
+ <%= phc_press_article_post.file_field :pstimage, class: "form-control" %>
</div>
- <div class="panel-body">
- <div class="form-group">
- <%= f.label :pstimage, "Featured Image" %>
- <%= f.file_field :pstimage, class: "form-control" %>
- </div>
- <% if f.object.pstimage? %>
- <%= image_tag f.object.pstimage_url, class: "img-responsive img-thumbnail" %>
- <%= f.label :remove_pstimage %>
- <%= f.check_box :remove_pstimage %>
- <% end %>
- </div>
+ <% if phc_press_article_post.object.pstimage? %>
+ <%= image_tag phc_press_article_post.object.pstimage_url, class: "img-responsive img-thumbnail" %>
+ <%= phc_press_article_post.label :remove_pstimage %>
+ <%= phc_press_article_post.check_box :remove_pstimage %>
+ <% end %>
</div>
+ </div>
- <div class="panel panel-primary">
- <div class="panel-heading">
- <i class="fa fa-sitemap"></i> Post Categories & Tags
- </div>
- <div class="panel-body">
- <div class="form-group">
- <%= f.collection_check_boxes :category_ids, Phcpress::Modules::Category.all, :id, :catname do |post_category| %>
- <%= post_category.check_box %>
- <%= post_category.label %></br>
- <% end %>
- </div>
- </div>
+ <div class="panel panel-inverse">
+ <div class="panel-heading">
+ <h4 class="panel-title">Post Categories</h4>
</div>
+ <div class="panel-body">
+ <%= phc_press_article_post.collection_check_boxes :category_ids, Phcpress::Modules::Category.all, :id, :catname do |post_category| %>
+ <%= post_category.check_box %>
+ <%= post_category.label %></br>
+ <% end %>
+ </div>
+ </div>
+ </div>
+ <div class="col-md-9 ">
+
+ <!-- PHCNotifi Render Validation -->
+ <%= render 'phcnotifi/validations', :object => @article_post %>
+ <!-- PHCNotifi Render Validation -->
+ <div class="panel panel-inverse">
+ <div class="panel-heading">
+ <h4 class="panel-title">Article TItle</h4>
+ </div>
+ <div class="panel-body">
+ <div class="form-group">
+ <%= phc_press_article_post.label :psttitle, "Article Title" %>
+ <%= phc_press_article_post.text_field :psttitle, class: "form-control" %>
+ </div>
+ </div>
</div>
- <div class="col-md-9 ">
- <div class="panel panel-primary">
- <div class="panel-heading">
- <i class="fa fa-pencil-square-o"></i> Blog Post Publisher
+ <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>
- <div class="panel-body">
- <%= render 'phcnotifi/validations', :object => @article_post %>
- <div class="form-group">
- <%= f.label :psttext, "Post Title" %>
- <%= f.text_field :psttitle, class: "form-control" %>
- </div>
- <div class="form-group">
- <%= f.label :psttext, "Post Text" %>
- <%= f.text_area :psttext, :class => "tinymce form-control", :rows => 20, :cols => 60 %>
- </div>
+ <h4 class="panel-title"><%= yield(:phc_title_tagline) %></h4>
+ </div>
+ <div class="panel-body panel-form">
+ <div class="form-group">
+ <%= phc_press_article_post.text_area :psttext, :class => "ckeditor form-control", :id => "editor1", :rows => 20, :cols => 60 %>
</div>
</div>
-
</div>
- <% end %>
-</div>
-<!-- Tinymce Javascript -->
-<%= tinymce %>
+ </div>
+</div>
+<% end %>