%= render 'spree/admin/shared/taxes_tabs' %> <% admin_breadcrumb(t('spree.settings')) %> <% admin_breadcrumb(t('spree.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) || t('spree.not_available') %> | <%=tax_rate.name %> | <% if tax_rate.tax_categories.any? %> <%= tax_rate.tax_categories.map(&:name).join(", ") %> <% else %> <%= t('spree.not_available') %> <% end %> | <%=tax_rate.amount %> | <%=tax_rate.included_in_price? ? t('spree.say_yes') : t('spree.say_no') %> | <%=tax_rate.show_rate_in_label? ? t('spree.say_yes') : t('spree.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 %> |