%= render 'spree/admin/shared/taxes_tabs' %> <% admin_breadcrumb(Spree.t(:settings)) %> <% admin_breadcrumb(Spree.t('admin.tab.taxes')) %> <% admin_breadcrumb(plural_resource_name(Spree::TaxRate)) %> <% content_for :page_actions do %> <% if can?(:create, Spree::TaxRate) %>
<%= Spree::TaxRate.human_attribute_name(:zone) %> | <%= Spree::TaxRate.human_attribute_name(:name) %> | <%= Spree::TaxRate.human_attribute_name(:tax_categories) %> | <%= Spree::TaxRate.human_attribute_name(:amount) %> | <%= Spree::TaxRate.human_attribute_name(:included_in_price) %> | <%= Spree::TaxRate.human_attribute_name(:show_rate_in_label) %> | <%= Spree::TaxRate.human_attribute_name(:expires_at) %> | <%= Spree::Calculator.model_name.human %> | |
---|---|---|---|---|---|---|---|---|
<%=tax_rate.zone.try(:name) || Spree.t(:not_available) %> | <%=tax_rate.name %> | <% if tax_rate.tax_categories.any? %> <%= tax_rate.tax_categories.map(&:name).join(", ") %> <% else %> <%= Spree.t(:not_available) %> <% end %> | <%=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.expires_at.to_date.to_s(:short_date) if tax_rate.expires_at %> | <%=tax_rate.calculator.to_s %> | <% if can?(:update, tax_rate) %> <%= link_to_edit tax_rate, no_text: true %> <% end %> <% if can?(:destroy, tax_rate) %> <%= link_to_delete tax_rate, no_text: true %> <% end %> |