Sha256: 22f219fc080c9e98f7ad2fd4805172986a55d37f1c6c87eecb59528ce08e685f
Contents?: true
Size: 1.9 KB
Versions: 5
Compression:
Stored size: 1.9 KB
Contents
<%= form_with(model: tutorial_post, local: true) do |form| %> <!-- PHCNotifi Render Validation --> <%= render "phcdevworks_notifications/bootstrap/validations", :object => @tutorial_post %> <!-- PHCNotifi Render Validation --> <!-- Form Input Fields --> <div class="form-group field_with_errors"> <%= form.label :tutorial_post_title, "Tutorial Title" %> <%= form.text_field :tutorial_post_title, placeholder: "Tutorial Title", class: "form-control" %> </div> <div class="form-group field_with_errors"> <%= form.label :tutorial_post_description, "Tutorial Description" %> <%= form.text_area :tutorial_post_description, class: "form-control", rows: "10" %> </div> <div class="form-group field_with_errors"> <%= form.label :tutorial_post_status, "Tutorial Status" %> <%= form.select( :tutorial_post_status, [['Draft','draft'],['Published','published'],['Review','review']], {}, {class: "form-control form-control"}) %> </div> <div class="form-group field_with_errors"> <div class="form-group field_with_errors"> <%= form.label :tutorial_post_image, "Featured Image" %> <%= form.file_field :tutorial_post_image, class: "form-control" %> </div> <% if form.object.tutorial_post_image.attached? %> <%= image_tag main_app.url_for(form.object.tutorial_post_image), class: "img-responsive img-thumbnail" %> <% end %> </div> <div class="form-group field_with_errors"> <label>Select a Category</label> <div class="panel-body"> <%= form.collection_check_boxes :category_ids, PhcdevworksTutorials::Tutorial::Category.order(:tutorial_category_name), :id, :tutorial_category_name do |post_category| %> <%= post_category.check_box %> <%= post_category.label %><br> <% end %> </div> </div> <!-- Form Input Fields --> <!-- Form Submition Button --> <div class="actions"> <%= form.submit class: "btn btn-primary" %> </div> <!-- For Submition Button --> <% end %>
Version data entries
5 entries across 5 versions & 1 rubygems