Sha256: 592b44e2ff8281997185ea01203c05e837f605ddc1b573fee9c008e26b23d4d0

Contents?: true

Size: 1011 Bytes

Versions: 2

Compression:

Stored size: 1011 Bytes

Contents

<h4><%= t("add_option_types") %></h4>
<table class="index">
  <tr data-hook="option_type_header">
    <th><%= t("name") %></th>
    <th><%= t("presentation") %></th>
    <th></th>
  </tr>
  <% @available_option_types.each do |ot| %>
  <tr data-hook="option_type_row">
    <td><%=ot.name %></td>
    <td><%=ot.presentation %></td>
    <td class="actions"><%= link_to icon('add') + ' ' + t("select"),
                            url_for(:controller => "admin/option_types",
                                    :id => ot,
                                    :product_id => @product.permalink,
                                    :action => "select",
                                    :option_type_id =>  ot),
                                    :remote => true,
                                    :class => 'iconlink' %>
    </td>
  </tr>
  <% end %>
  <% if @available_option_types.empty? %>
  <tr data-hook="option_type_empty">
    <td colspan="3"><%= t('none_available') %></td>
  </tr>
  <% end %>
</table>

Version data entries

2 entries across 2 versions & 1 rubygems

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