% content_for :page_title do %> <%= plural_resource_name(Spree::TaxCategory) %> <% end %> <% content_for :page_actions do %> <%= button_link_to Spree.t(:new_tax_category), new_object_url, class: "btn-success", icon: 'add.svg', id: 'admin_new_tax_categories_link' %> <% end if can? :create, Spree::TaxCategory %> <% if @tax_categories.any? %>
<%= Spree.t(:name) %> | <%= Spree.t(:tax_code) %> | <%= Spree.t(:description) %> | <%= Spree.t(:default) %> | |
---|---|---|---|---|
<%= tax_category.name %> | <%= tax_category.tax_code %> | <%= tax_category.description %> | <%= tax_category.is_default? ? Spree.t(:say_yes) : Spree.t(:say_no) %> | <%= link_to_edit(tax_category, no_text: true) if can? :edit, tax_category %> <%= link_to_delete(tax_category, no_text: true) if can? :delete, tax_category %> |