<%= @tax_rate.new_record? ? t('plugins.ecommerce.new_tax_rate') : "#{t('plugins.ecommerce.edit_tax_rate')}: #{@tax_rate.name}" %>

<%= form_for @tax_rate, url:{action: @tax_rate.new_record? ? :create : :update}, html: {class: 'validate-tax_rate', id: 'form-tax_rate'} do |f| %>
<%= render partial: 'layouts/camaleon_cms/admin/form_error', locals: {data: @tax_rate} %>
<%= f.label t('camaleon_cms.admin.table.name') %>
<%= f.text_field :name, :class => "form-control required" %>
<% options = params[:options].present? ? params[:options] : @tax_rate.options rescue {} %>
(%)
<%= number_field_tag "options[rate]", options[:rate] || '', :class => "form-control required" %>
<% end %>