Sha256: d8476ac1556c4cf066aaeeac14b9cb457abb33904e7933e3cc718b14be55ce11
Contents?: true
Size: 1.85 KB
Versions: 1
Compression:
Stored size: 1.85 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"> <%= form.label :remove_tutorial_post_images, "Step Image" %> <%= form.file_field :remove_tutorial_post_images, class: "form-control" %> <% if form.object.tutorial_post_images? %> <%= image_tag form.object.tutorial_post_images_url, class: "img-responsive img-thumbnail" %> <%= form.label :remove_tutorial_post_images %> <%= form.check_box :remove_tutorial_post_images %> <% end %> </div> <div class="form-group field_with_errors"> <label>Select a Category</label> <%= form.collection_select :category_id, PhcdevworksTutorials::Tutorial::Category.order(:tutorial_category_name),:id, :tutorial_category_name, {}, {class: "form-control"} %> </div> <!-- Form Input Fields --> <!-- Form Submition Button --> <div class="actions"> <%= form.submit class: "btn btn-primary" %> </div> <!-- For Submition Button --> <% end %>
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
phcdevworks_tutorials-1.1.1 | app/views/phcdevworks_tutorials/tutorial/posts/_form.html.erb |