Sha256: 314e4cbc47e8e17835da4202b6d9652dbb8f67b2d264d98560aab1223ff5604f

Contents?: true

Size: 1.39 KB

Versions: 4

Compression:

Stored size: 1.39 KB

Contents

- @page_title = t('tienda.tax_rates.tax_rates')
= content_for :header do
  %p.buttons= link_to t('tienda.tax_rates.back_to_tax_rates'), :tax_rates, :class => 'button grey'
  %h2.tax_rates= t('tienda.tax_rates.tax_rates')

= form_for @tax_rate do |f|
  = f.error_messages
  = field_set_tag t('tienda.tax_rates.rate_details') do
    .splitContainer
      %dl.half
        %dt= f.label :name, t('tienda.tax_rates.name')
        %dd= f.text_field :name, :class => 'focus text'
      %dl.half
        %dt= f.label :rate, t('tienda.tax_rates.rate')
        %dd= f.text_field :rate, :class => 'text'

  = field_set_tag t('tienda.tax_rates.country_restriction') do
    %dl
      %dd
        = f.select :address_type, Tienda::TaxRate::ADDRESS_TYPES.map { |a| [t('tienda.tax_rates.address_type_option', address: t("tienda.tax_rates.#{a}")).html_safe, a]}, {}, :class => 'chosen-basic'
    %dl
      %dd
        = f.collection_select :country_ids, Tienda::Country.ordered, :id, :name, {}, {:class => 'chosen', :multiple => true, :data => {:placeholder => t('tienda.tax_rates.all_countries') }}
  %p.submit
    - unless @tax_rate.new_record?
      %span.right= link_to t('tienda.delete'), @tax_rate, :class => 'button purple', :method => :delete, :data => {:confirm => t('tienda.tax_rates.delete_confirmation') }
    = f.submit t('tienda.submit'), :class => 'button green'
    = link_to t('tienda.cancel'), :tax_rates, :class => 'button'

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
tienda-1.1.2 app/views/tienda/tax_rates/form.html.haml
tienda-1.1.1 app/views/tienda/tax_rates/form.html.haml
tienda-1.1.0 app/views/tienda/tax_rates/form.html.haml
tienda-1.0.0 app/views/tienda/tax_rates/form.html.haml