Sha256: 62e4f989a2b7267b20383218723b72088c49b79528659a715701f0f8fb0aedee

Contents?: true

Size: 1.95 KB

Versions: 2

Compression:

Stored size: 1.95 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">
        <%= form.label :step_number, "Tutorial Step" %>
        <%= form.select( :step_number, [["01","01"],["02","02"],["03","03"],["04","04"],["05","05"],["06","06"],["07","07"],["08","08"],["09","09"],["10","10"],["11","11"],["12","12"],["13","13"],["14","14"],["15","15"],["16","16"],["17","17"],["18","18"],["19","19"],["20","20"]], {}, {class: "form-control"}) %>
    </div>

    <div class="form-group">
        <%= form.label :step_title, placeholder: "Step Title" %>
        <%= form.text_field :step_title, class: "form-control" %>
    </div>

    <div class="form-group">
        <%= form.label :step_description, "Step Text" %>
        <%= form.text_area :step_description, class: "form-control", class: "editor", rows: "10" %>
        <div id="word-count" class="mt-3"></div>
    </div>

    <div class="form-group">
        <%= form.label :step_copy_instruction, "Step Instructions (to Copy)" %>
        <%= form.text_area :step_copy_instruction, class: "form-control" %>
    </div>

    <div class="form-group">
        <%= form.label :step_image, "Step Image" %>
        <%= form.file_field :step_image, class: "form-control" %>
    </div>

	<div class="form-group">
		<label>Attach SEO Data</label>
		<%= collection_select(:tutorial_step, :optimization_id, PhcdevworksCoreModules::Marketing::Optimization.order("seo_title"), :id, :seo_title, {}, {class: "form-control"}) %>
	</div>
    <!-- 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-8.0.1 app/views/phcdevworks_tutorials/tutorial/steps/_form.html.erb
phcdevworks_tutorials-8.0.0 app/views/phcdevworks_tutorials/tutorial/steps/_form.html.erb