Sha256: 4f2a041a064736fb1ce696bb3aa10cf41942aa933ce117a4b00421361845a9b6
Contents?: true
Size: 1.97 KB
Versions: 7
Compression:
Stored size: 1.97 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'],['Published','published'],['Review','review']], {}, {class: "form-control form-control-sm"}) %> </div> <div class="actions"> <%= f.submit class: "btn btn-primary btn-sm" %> </div> </div> </div> <div class="ibox float-e-margins"> <div class="ibox-title"> <h5>Post 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>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> </div> <div class="col-md-9 "> <div class="ibox float-e-margins"> <div class="ibox-content"> <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: "post_edit_box form-control" %> </div> </div> </div> </div> <% end %> </div>
Version data entries
7 entries across 7 versions & 1 rubygems