Sha256: ecc76b4b46600fa01402fce2d5a111d5fbe5b3e15f2d7c04addac0154ef36121

Contents?: true

Size: 937 Bytes

Versions: 2

Compression:

Stored size: 937 Bytes

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">
    <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

2 entries across 2 versions & 1 rubygems

Version Path
phcdevworks_tutorials-1.1.0 app/views/phcdevworks_tutorials/tutorial/posts/_form.html.erb
phcdevworks_tutorials-1.0.2 app/views/phcdevworks_tutorials/tutorial/posts/_form.html.erb