Sha256: 6565cf91dcffa444d580cb6aef0328acbc5bade662b0bd7cb8336d9ce9474394
Contents?: true
Size: 1.45 KB
Versions: 1
Compression:
Stored size: 1.45 KB
Contents
<%= form_with(model: [ @tutorial_post, @tutorial_step], url: form_url, local: true) do |form| %> <!-- PHCNotifi Render Validation --> <%= render "phcdevworks_notifications/bootstrap/validations", :object => @tutorial_step %> <!-- PHCNotifi Render Validation --> <!-- Form Input Fields --> <div class="form-group field_with_errors"> <%= form.label :tutorial_step_number, "Tutorial Step" %> <%= form.select( :tutorial_step_number, [["1","1"],["2","2"],["3","3"],["4","4"],["5","5"],["6","6"],["7","7"],["8","8"],["9","9"],["10","10"],["11","11"],["12","12"],["13","13"],["14","14"]], {}, {class: "form-control"}) %> </div> <div class="form-group field_with_errors"> <%= form.label :tutorial_step_body, "Step Text" %> <%= form.text_area :tutorial_step_body, class: "form-control", rows: "10" %> </div> <div class="form-group field_with_errors"> <%= form.label :remove_tutorial_step_images, "Step Image" %> <%= form.file_field :remove_tutorial_step_images, class: "form-control" %> <% if form.object.tutorial_step_images? %> <%= image_tag form.object.tutorial_step_images_url, class: "img-responsive img-thumbnail" %> <%= form.label :remove_tutorial_step_images %> <%= form.check_box :remove_tutorial_step_images %> <% end %> </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/steps/_form.html.erb |