<%= render 'spree/admin/shared/configuration_menu' %> <% content_for :page_title do %> <%= Spree.t(:tax_rates) %> <% end %> <% content_for :page_actions do %>
  • <%= button_link_to Spree.t(:new_tax_rate), new_object_url, :icon => 'plus' %>
  • <% end %> <% if @tax_rates.any? %> <% @tax_rates.each do |tax_rate|%> <% end %>
    <%= Spree.t(:zone) %> <%= Spree.t(:name) %> <%= Spree.t(:category) %> <%= Spree.t(:amount) %> <%= Spree.t(:included_in_price) %> <%= Spree.t(:show_rate_in_label) %> <%= Spree.t(:calculator) %>
    <%=tax_rate.zone.try(:name) || Spree.t(:not_available) %> <%=tax_rate.name %> <%=tax_rate.tax_category.try(:name) || Spree.t(:not_available) %> <%=tax_rate.amount %> <%=tax_rate.included_in_price? ? Spree.t(:say_yes) : Spree.t(:say_no) %> <%=tax_rate.show_rate_in_label? ? Spree.t(:say_yes) : Spree.t(:say_no) %> <%=tax_rate.calculator.to_s %> <%= link_to_edit tax_rate, :no_text => true %> <%= link_to_delete tax_rate, :no_text => true %>
    <% else %>
    <%= Spree.t(:no_resource_found, resource: I18n.t(:other, scope: 'activerecord.models.spree/tax_rate')) %>, <%= link_to Spree.t(:add_one), spree.new_admin_tax_rate_path %>!
    <% end %>