Sha256: 8b8510c43e572fb8a20630df224017acda33d3513d63e8ac5814b2d3c5f4d50b

Contents?: true

Size: 1.41 KB

Versions: 9

Compression:

Stored size: 1.41 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 %>
    <!-- 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

9 entries across 9 versions & 1 rubygems

Version Path
phcdevworks_tutorials-7.0.0 app/views/phcdevworks_tutorials/command/items/_form.html.erb
phcdevworks_tutorials-6.11.0 app/views/phcdevworks_tutorials/command/items/_form.html.erb
phcdevworks_tutorials-6.10.2 app/views/phcdevworks_tutorials/command/items/_form.html.erb
phcdevworks_tutorials-6.10.1 app/views/phcdevworks_tutorials/command/items/_form.html.erb
phcdevworks_tutorials-6.10.0 app/views/phcdevworks_tutorials/command/items/_form.html.erb
phcdevworks_tutorials-6.9.0 app/views/phcdevworks_tutorials/command/items/_form.html.erb
phcdevworks_tutorials-6.8.0 app/views/phcdevworks_tutorials/command/items/_form.html.erb
phcdevworks_tutorials-6.7.0 app/views/phcdevworks_tutorials/command/items/_form.html.erb
phcdevworks_tutorials-6.6.4 app/views/phcdevworks_tutorials/command/items/_form.html.erb