<% content_for :page_title do %> <%= Spree::TaxCategory.model_name.human(count: :many) %> <% end %> <% content_for :page_actions do %> <%= button_link_to Spree.t(:new_tax_category), new_object_url, :class => "btn-success", :icon => 'add', :id => 'admin_new_tax_categories_link' %> <% 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) %> <%= link_to_edit tax_category, :no_text => true %> <%= link_to_delete tax_category, :no_text => true %>
<% else %>
<%= Spree.t(:no_resource_found, resource: Spree::TaxCategory.model_name.human(count: :many)) %>, <%= link_to Spree.t(:add_one), new_object_url %>!
<% end %>