<%= render 'spree/admin/shared/taxes_tabs' %> <% admin_breadcrumb(t('spree.settings') ) %> <% admin_breadcrumb(t('spree.admin.tab.taxes')) %> <% admin_breadcrumb(plural_resource_name(Spree::TaxCategory)) %> <% content_for :page_actions do %> <% end %> <% if @tax_categories.any? %> <% @tax_categories.each do |tax_category| @edit_url = edit_admin_tax_category_path(tax_category) @delete_url = admin_tax_category_path(tax_category) %> <% end %>
<%= Spree::TaxCategory.human_attribute_name(:name) %> <%= Spree::TaxCategory.human_attribute_name(:tax_code) %> <%= Spree::TaxCategory.human_attribute_name(:description) %> <%= Spree::TaxCategory.human_attribute_name(:is_default) %>
<%= tax_category.name %> <%= tax_category.tax_code %> <%= tax_category.description %> <%= tax_category.is_default? ? t('spree.say_yes') : t('spree.say_no') %> <% if can?(:update, tax_category) %> <%= link_to_edit tax_category, no_text: true %> <% end %> <% if can?(:destroy, tax_category) %> <%= link_to_delete tax_category, no_text: true %> <% end %>
<% else %>
<%= render 'spree/admin/shared/no_objects_found', resource: Spree::TaxCategory, new_resource_url: new_object_url %>
<% end %>