app/views/phcpresspro/article/posts/_form.html.erb in phcpresspro-54.0.0 vs app/views/phcpresspro/article/posts/_form.html.erb in phcpresspro-55.0.0

- old
+ new

@@ -1,76 +1,79 @@ <%= form_for(@article_post, :html => {:multipart => true}) do |f| %> - <div class="row"> +<div class="row"> + <div class="col-md-3"> - <div class="col-md-3"> - <div class="ibox float-e-margins"> - - <div class="ibox-title"> - <h5>Publish Panel</h5> + <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"> + <%= f.label :pststatus, "Post Status" %> + <%= f.select( :pststatus, [['Draft','draft'],['Published','published'],['Review','review']], {}, {class: "form-control form-control-sm"}) %> </div> - - <div class="ibox-content"> - <div class="form-group"> - <%= f.label :pststatus, "Post Status" %> - <%= f.select( :pststatus, [['Draft','draft'],['Published','published'],['Review','review']], {}, {class: "form-control form-control-sm"}) %> - </div> - <div class="actions"> - <%= f.submit class: "btn btn-primary btn-sm" %> - </div> + <div class="actions"> + <%= f.submit class: "btn btn-primary waves-effect" %> </div> </div> + </div> - <div class="ibox float-e-margins"> - <div class="ibox-title"> - <h5>Post Images</h5> + <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"> + <%= f.label :pstimage, "Featured Image" %> + <%= f.file_field :pstimage, class: "form-control" %> </div> - <div class="ibox-content"> - <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 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> + </div> - <div class="ibox float-e-margins"> - <div class="ibox-title"> - <h5>Post Categories</h5> - </div> - <div class="ibox-content"> - <div class="form-group"> - <%= f.collection_check_boxes :category_ids, Phcpresspro::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"> + <%= f.collection_check_boxes :category_ids, Phcpresspro::Modules::Category.all, :id, :catname do |post_category| %> + <%= post_category.check_box %> + <%= post_category.label %></br> + <% end %> + </div> </div> - <div class="col-md-9 "> - <div class="ibox float-e-margins"> - <div class="ibox-content"> + </div> + <div class="col-md-9 "> - <%= render 'phcnotifi/validations', :object => @article_post %> + <!-- PHCNotifi Render Validation --> + <%= render 'phcnotifi/validations', :object => @article_post %> + <!-- PHCNotifi Render Validation --> - <div class="form-group"> - <%= f.label :psttext, "News Post Title" %> - <%= f.text_field :psttitle, class: "form-control" %> - </div> - <div class="form-group"> - <%= f.label :psttext, "News Post Text" %> - <%= f.text_area :psttext, :class => "tinymce form-control", :rows => 20, :cols => 60 %> - </div> - </div> + <div class="form-group"> + <%= f.label :psttitle, "Article Title" %> + <%= f.text_field :psttitle, class: "form-control" %> + </div> + <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 panel-form"> + <div class="form-group"> + <%= f.text_area :psttext, :class => "ckeditor form-control", :id => "editor1", :rows => 20, :cols => 60 %> + </div> + </div> </div> </div> +</div> <% end %> - -<%= tinymce %>