Sha256: 750a2cd8e751a37c0eabb45940e7221f3a3f264f87d26f5cff5ec609c0032822
Contents?: true
Size: 1.7 KB
Versions: 2
Compression:
Stored size: 1.7 KB
Contents
<!-- Form - Tutorial - Posts --> <%= 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_title, placeholder: "Step Title" %> <%= form.text_field :tutorial_step_title, class: "form-control", rows: "10" %> </div> <div class="form-group field_with_errors"> <%= form.label :tutorial_step_description, "Step Text" %> <%= form.text_area :tutorial_step_description, class: "form-control", rows: "10" %> </div> <div class="form-group field_with_errors"> <%= form.label :tutorial_step_image, "Step Image" %> <%= form.file_field :tutorial_step_image, class: "form-control" %> </div> <% if form.object.tutorial_step_image.attached? %> <%= image_tag main_app.url_for(form.object.tutorial_step_image), class: "img-responsive img-thumbnail" %> <% end %> <!-- Form Input Fields --> <!-- Form Submition Button --> <div class="actions"> <%= form.submit class: "btn btn-primary" %> </div> <!-- For Submition Button --> <% end %> <!-- Form - Tutorial - Posts -->
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
phcdevworks_tutorials-2.1.1 | app/views/phcdevworks_tutorials/tutorial/steps/_form.html.erb |
phcdevworks_tutorials-2.1.0 | app/views/phcdevworks_tutorials/tutorial/steps/_form.html.erb |