<%= render :partial => 'admin/shared/product_tabs', :locals => {:current => "Option Types"} %>
<%= t("name") %> |
<%= t("presentation") %> |
|
<% @option_types.each do |option_type| %>
<%= option_type.name %> |
<%= option_type.presentation %> |
<%= link_to_with_icon 'delete', t("remove"), remove_admin_product_option_type_url(@product, option_type) %>
|
<% end %>
<% if @option_types.empty? %>
None. |
<% end %>
<%= image_tag "spinner.gif", :style => "display:none", :id => 'busy_indicator' %>
<%= link_to_remote icon('add') + ' ' + t("add_option_type"),
{:url => available_admin_product_option_types_url(@product),
:method => :get,
:update => "option-types",
:before => "$('new_opt_link').hide();$('busy_indicator').show()",
:complete => "Element.hide('busy_indicator')"}, :class => 'iconlink' %>