Sha256: f30c4c80f75b025b120eb9380702c0802362e83f5051d306c784e3313660729a

Contents?: true

Size: 1.47 KB

Versions: 17

Compression:

Stored size: 1.47 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 :command_item_title, "Command Name" %>
        <%= form.text_field :command_item_title, class: "form-control" %>
    </div>
    
    <div class="form-group">
        <%= form.label :command_item_text, "Command Description" %>
        <%= form.text_area :command_item_text, class: "form-control" %>
    </div>
    
    <div class="form-group">
        <%= form.label :command_item_copy_command, "Copy Command" %>
        <%= form.text_field :command_item_copy_command, class: "form-control" %>
    </div>

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

    <% if form.object.command_item_image.attached? %>
        <%= image_tag main_app.url_for(form.object.command_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

17 entries across 17 versions & 1 rubygems

Version Path
phcdevworks_tutorials-12.1.1 app/views/phcdevworks_tutorials/command/items/_form.html.erb
phcdevworks_tutorials-12.1.0 app/views/phcdevworks_tutorials/command/items/_form.html.erb
phcdevworks_tutorials-12.0.5 app/views/phcdevworks_tutorials/command/items/_form.html.erb
phcdevworks_tutorials-12.0.4 app/views/phcdevworks_tutorials/command/items/_form.html.erb
phcdevworks_tutorials-12.0.3 app/views/phcdevworks_tutorials/command/items/_form.html.erb
phcdevworks_tutorials-12.0.2 app/views/phcdevworks_tutorials/command/items/_form.html.erb
phcdevworks_tutorials-12.0.1 app/views/phcdevworks_tutorials/command/items/_form.html.erb
phcdevworks_tutorials-12.0.0 app/views/phcdevworks_tutorials/command/items/_form.html.erb
phcdevworks_tutorials-11.3.0 app/views/phcdevworks_tutorials/command/items/_form.html.erb
phcdevworks_tutorials-11.2.0 app/views/phcdevworks_tutorials/command/items/_form.html.erb
phcdevworks_tutorials-11.1.0 app/views/phcdevworks_tutorials/command/items/_form.html.erb
phcdevworks_tutorials-11.0.2 app/views/phcdevworks_tutorials/command/items/_form.html.erb
phcdevworks_tutorials-11.0.1 app/views/phcdevworks_tutorials/command/items/_form.html.erb
phcdevworks_tutorials-11.0.0 app/views/phcdevworks_tutorials/command/items/_form.html.erb
phcdevworks_tutorials-10.0.0 app/views/phcdevworks_tutorials/command/items/_form.html.erb
phcdevworks_tutorials-9.0.1 app/views/phcdevworks_tutorials/command/items/_form.html.erb
phcdevworks_tutorials-9.0.0 app/views/phcdevworks_tutorials/command/items/_form.html.erb