Sha256: 6a8dacbb9dd4031ccc52e84f061123d7840ebaee23d5c5657d2d2c71221e44b4

Contents?: true

Size: 1.35 KB

Versions: 36

Compression:

Stored size: 1.35 KB

Contents

<h2><%= t("selected_option_types") %></h2>
<table class="option-types">
	<thead>
		<tr>
			<th><%= t("name") %></th>
			<th><%= t("display") %></th>
			<th><%= t("action") %></th>
		</tr>
	</thead>
	<tbody>
		<% @product.selected_options.each do |so| %>
			<tr>
				<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 => "jQuery('#select-link').hide(); jQuery('#busy_indicator').show()", 
				                     :complete => "jQuery('#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">
	  <%= 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"></div>

Version data entries

36 entries across 36 versions & 7 rubygems

Version Path
spree-0.11.4 vendor/extensions/theme_default/app/views/admin/products/_option_types.html.erb
apispree_core-0.0.0 app/views/admin/products/_option_types.html.erb
My-Commerce_core-1.1.0 app/views/admin/products/_option_types.html.erb
My-Commerce_core-1.0.0 app/views/admin/products/_option_types.html.erb
MyCommerceapi-1.0.0 core/app/views/admin/products/_option_types.html.erb
MyCommerce-0.0.3 core/app/views/admin/products/_option_types.html.erb
rfcommerce_core-0.0.3 app/views/admin/products/_option_types.html.erb
spree_core-0.60.6 app/views/admin/products/_option_types.html.erb
spree_core-0.60.5 app/views/admin/products/_option_types.html.erb
spree-0.11.3 vendor/extensions/theme_default/app/views/admin/products/_option_types.html.erb
spree_core-0.30.2 app/views/admin/products/_option_types.html.erb
spree_core-0.40.4 app/views/admin/products/_option_types.html.erb
spree_core-0.50.4 app/views/admin/products/_option_types.html.erb
spree_core-0.60.4 app/views/admin/products/_option_types.html.erb
spree_core-0.50.3 app/views/admin/products/_option_types.html.erb
spree_core-0.60.3 app/views/admin/products/_option_types.html.erb
spree_core-0.60.2 app/views/admin/products/_option_types.html.erb
spree_core-0.60.1 app/views/admin/products/_option_types.html.erb
spree_core-0.60.0 app/views/admin/products/_option_types.html.erb
spree_core-0.60.0.RC1 app/views/admin/products/_option_types.html.erb