% content_for :page_title do %> <%= plural_resource_name(Spree::OptionType) %> <% end %> <% content_for :page_actions do %> <%= button_link_to Spree.t(:new_option_type), new_object_url, { class: "btn-primary", icon: 'add.svg', id: 'new_option_type_link' } %> <% end if can?(:create, Spree::OptionType) %>
<% if @option_types.any? %><%= Spree.t(:name) %> | <%= Spree.t(:presentation) %> | <%= Spree.t(:filterable) %> | ||
---|---|---|---|---|
<%= svg_icon name: "grip-vertical.svg", width: '14', height: '14' %> | <%= option_type.name %> | <%= option_type.presentation %> | <%= active_badge(option_type.filterable) %> | <%= link_to_edit(option_type, class: 'admin_edit_option_type', no_text: true) if can?(:edit, option_type) %> <%= link_to_delete(option_type, no_text: true) if can?(:delete, option_type) %> |