<% admin_breadcrumb(link_to plural_resource_name(Spree::Product), spree.admin_products_path) %> <% admin_breadcrumb(plural_resource_name(Spree::OptionType)) %> <% content_for :page_actions do %> <% if can?(:create, Spree::OptionType) %> <% end %> <% end %>
<% if @option_types.any? %> <% @option_types.each do |option_type| %> <% end %>
<%= Spree::OptionType.human_attribute_name(:name) %> <%= Spree::OptionType.human_attribute_name(:presentation) %>
<%= option_type.name %> <%= option_type.presentation %> <% if can?(:update, option_type) %> <%= link_to_edit(option_type, :class => 'admin_edit_option_type', :no_text => true) %> <% end %> <% if can?(:destroy, option_type) %> <%= link_to_delete(option_type, :no_text => true) %> <% end %>
<% else %>
<%= render 'spree/admin/shared/no_objects_found', resource: Spree::OptionType, new_resource_url: new_object_url %>
<% end %>