Sha256: 217111578297a13038f4b9077789c84de84991a578c24ad16b0021b75a253f59

Contents?: true

Size: 1.11 KB

Versions: 4

Compression:

Stored size: 1.11 KB

Contents

<tr class="option_value fields" id="spree_<%= dom_id(f.object) %>" data-hook="option_value">
  <td class="move-handle text-center">
    <%= svg_icon name: "grip-vertical.svg", width: '14', height: '14' %>
    <%= f.hidden_field :id %>
  </td>
  <td class="name"><%= f.text_field :name, class: "form-control", required: true %></td>
  <td class="presentation"><%= f.text_field :presentation, class: "form-control", required: true %></td>
  <td class="actions">

    <span class="d-flex justify-content-end">
      <% unless f.object.id.nil? -%>
        <%= link_to_with_icon 'translate.svg',
                               '',
                               spree.translations_admin_option_type_option_value_path(f.object.option_type.id, f.object.id),
                               class: 'btn btn-sm btn-light',
                               data: {
                                 action: 'translate'
                               },
                               title: Spree.t(:translations),
                               no_text: true %>
      <% end %>
      <%= link_to_icon_remove_fields f %>
    </span>
  </td>
</tr>

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
spree_backend-4.8.4 app/views/spree/admin/option_types/_option_value_fields.html.erb
spree_backend-4.8.3 app/views/spree/admin/option_types/_option_value_fields.html.erb
spree_backend-4.8.2 app/views/spree/admin/option_types/_option_value_fields.html.erb
spree_backend-4.8.1 app/views/spree/admin/option_types/_option_value_fields.html.erb