Sha256: d7e49d08dc514a195faace288545f0c633d17aa6c382ae46d01ce8596c991a6c
Contents?: true
Size: 1.79 KB
Versions: 2
Compression:
Stored size: 1.79 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> <%= 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.2.1 | app/views/phcdevworks_tutorials/tutorial/posts/_form.html.erb |
phcdevworks_tutorials-1.2.0 | app/views/phcdevworks_tutorials/tutorial/posts/_form.html.erb |