Sha256: 8bf870ab3ce8fbc4a3afcdf12dda63e40a192635e966e910e4a3fba280eca6b0
Contents?: true
Size: 1.99 KB
Versions: 18
Compression:
Stored size: 1.99 KB
Contents
<div class="row"> <%= form_for(@articles_post, :html => {:multipart => true}) do |f| %> <div class="col-md-3"> <div class="ibox float-e-margins"> <div class="ibox-title"> <h5>Publish Panel</h5> </div> <div class="ibox-content"> <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> </div> <div class="ibox float-e-margins"> <div class="ibox-title"> <h5>Article Images</h5> </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> </div> <div class="ibox float-e-margins"> <div class="ibox-title"> <h5>Article Tags & 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> </div> <div class="col-md-9 "> <div class="ibox float-e-margins"> <div class="ibox-content"> <div class="form-group"> <%= f.label :psttext, "Article Title" %> <%= f.text_field :psttitle, class: "form-control" %> </div> <div class="form-group"> <%= f.label :psttext, "Article Text" %> <%= f.text_area :psttext, class: "post_edit_box form-control" %> </div> </div> </div> </div> <% end %> </div>
Version data entries
18 entries across 18 versions & 1 rubygems