Sha256: 175f5576b121ada6825e3957578bc96ac8661dc92fbccb3a41304087854fd0b6

Contents?: true

Size: 911 Bytes

Versions: 2

Compression:

Stored size: 911 Bytes

Contents

<table class="index">
  <tr data-hook="selected_head">
    <th><%= t("name") %></th>
    <th><%= t("presentation") %></th>
    <th>&nbsp;</th>
  </tr>
  <% @option_types.each do |option_type| %>
    <tr data-hook="selected_row">
      <td><%= option_type.name %></td>
      <td><%= option_type.presentation %></td>
      <td class="actions">
      <%= link_to_with_icon 'delete',  t("remove"), remove_admin_product_option_type_url(@product, option_type) %>
      </td>
    </tr>
  <% end %>
  <% if @option_types.empty? %>
   <tr data-hook="selected_none"><td colspan="3"><%= t(:none) %></td></tr>
  <% end %>
</table>

<div id="option-types" data-hook></div>
<% if @product.variants.empty? %>
  <span id="new_opt_link" data-hook="links">
    <%= link_to icon('add') + ' ' + t("add_option_type"), available_admin_product_option_types_url(@product), :remote => :true, :class => 'iconlink' %>
  </span>
<% end %>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
spree_core-0.70.0.rc2 app/views/admin/option_types/_selected.html.erb
spree_core-0.70.RC1 app/views/admin/option_types/_selected.html.erb