Sha256: f474a73a9623eeba4c1b7eb1384083921588cc4aa39034fbfda1ee936fd39b21

Contents?: true

Size: 1.52 KB

Versions: 29

Compression:

Stored size: 1.52 KB

Contents

<h2><%= t(:selected_option_types) %></h2>
<table class="option-types" data-hook="option_types">
  <thead>
    <tr data-hook="option_types_header">
      <th><%= t(:name) %></th>
      <th><%= t(:display) %></th>
      <th><%= t(:action) %></th>
    </tr>
  </thead>
  <tbody>
    <% @product.selected_options.each do |so| %>
      <tr data-hook="option_types_row">
        <td><%= so.option_type.name%></td>
        <td><%= so.option_type.presentation%></td>
        <td>
          <%= link_to_remote t(:remove),
                             :url => {:action => 'remove_option_type', :id => @product, :product_option_type_id => so},
                             :before => "$('#select-link').hide(); $('#busy_indicator').show()", 
                             :complete => "$('#busy_indicator').hide()",
                             :update => 'option-type-listing' %>
        </td>
      </tr>
    <% end %>
    <% if @product.selected_options.empty? %>
      <tr>
        <td colspan="3"><%= t(:none) %></td>
      </tr>
    <% end %>
  </tbody>
</table>
<% unless @product.new_record? %>
  <span id="select-link" data-hook>
    <%= link_to_remote icon('delete') + ' ' + t(:select_option_type), {
                       :url => {:controller => 'option_types', :action => 'select', :id => @product},
                       :update => 'new-option-type'}, :class => 'iconlink' %>
  </span>
  <%= image_tag 'spinner.gif', :plugin => 'spree', :style => 'display:none;', :id => 'busy_indicator' %>
<% end %>
<br />
<div id="new-option-type" data-hook></div>

Version data entries

29 entries across 29 versions & 1 rubygems

Version Path
spree_core-1.1.6 app/views/spree/admin/products/_option_types.html.erb
spree_core-1.1.5 app/views/spree/admin/products/_option_types.html.erb
spree_core-1.0.7 app/views/spree/admin/products/_option_types.html.erb
spree_core-1.1.4 app/views/spree/admin/products/_option_types.html.erb
spree_core-1.1.3 app/views/spree/admin/products/_option_types.html.erb
spree_core-1.0.6 app/views/spree/admin/products/_option_types.html.erb
spree_core-0.70.7 app/views/admin/products/_option_types.html.erb
spree_core-0.70.6 app/views/admin/products/_option_types.html.erb
spree_core-1.1.2 app/views/spree/admin/products/_option_types.html.erb
spree_core-1.1.2.rc1 app/views/spree/admin/products/_option_types.html.erb
spree_core-1.1.1 app/views/spree/admin/products/_option_types.html.erb
spree_core-1.1.0 app/views/spree/admin/products/_option_types.html.erb
spree_core-1.0.4 app/views/spree/admin/products/_option_types.html.erb
spree_core-1.1.0.rc2 app/views/spree/admin/products/_option_types.html.erb
spree_core-1.1.0.rc1 app/views/spree/admin/products/_option_types.html.erb
spree_core-1.0.3 app/views/spree/admin/products/_option_types.html.erb
spree_core-1.0.2 app/views/spree/admin/products/_option_types.html.erb
spree_core-0.70.5 app/views/admin/products/_option_types.html.erb
spree_core-1.0.1 app/views/spree/admin/products/_option_types.html.erb
spree_core-0.70.4 app/views/admin/products/_option_types.html.erb