Sha256: 37663a00839e65676a5074be244f08398bdce697916486e6ff05619072060f3b

Contents?: true

Size: 1.65 KB

Versions: 2

Compression:

Stored size: 1.65 KB

Contents

<!-- Form - Command - Item -->
<%= form_with(model: [@command_post, @command_item], url: form_url, local: true) do |form| %>

    <!-- PHCNotifi Render Validation -->
    <%= render "phcdevworks_notifications/bootstrap/validations", :object => @command_item %>
    <!-- PHCNotifi Render Validation -->

    <!-- Form Input Fields -->
    <div class="form-group">
        <%= form.label :item_title, "Command Name" %>
        <%= form.text_field :item_title, class: "form-control" %>
    </div>
    
    <div class="form-group">
        <%= form.label :item_description, "Command Description" %>
        <%= form.text_area :item_description, class: "form-control" %>
    </div>
    
    <div class="form-group">
        <%= form.label :item_copy_command, "Copy Command" %>
        <%= form.text_field :item_copy_command, class: "form-control" %>
    </div>

    <div class="form-group field_with_errors">
        <%= form.label :item_image, "Featured Image" %>
        <%= form.file_field :item_image, class: "form-control" %>
    </div>

    <% if form.object.item_image.attached? %>
        <%= image_tag main_app.url_for(form.object.item_image), class: "img-responsive img-thumbnail" %>
    <% end %>
    
	<div class="form-group">
		<label>Attach SEO Data</label>
		<%= collection_select(:command_item, :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 - Command - Item -->

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
phcdevworks_tutorials-8.0.1 app/views/phcdevworks_tutorials/command/items/_form.html.erb
phcdevworks_tutorials-8.0.0 app/views/phcdevworks_tutorials/command/items/_form.html.erb