<%= render 'spree/admin/shared/configuration_menu' %> <% content_for :page_title do %> <%= Spree.t(:listing_tax_categories) %> <% end %> <% 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.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) %> <% 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 %>
<%= Spree.t(:no_resource_found, resource: I18n.t(:other, scope: 'activerecord.models.spree/tax_category')) %> <% if can?(:create, Spree::TaxCategory) %> <%= link_to Spree.t(:add_one), spree.new_admin_tax_category_path %>! <% end %>
<% end %>