Sha256: 42b2a0ecc7ae1318b95180321d6b1dc57ac4130b22030fec9348dac713f0c886

Contents?: true

Size: 1.39 KB

Versions: 11

Compression:

Stored size: 1.39 KB

Contents

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

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

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

Version data entries

11 entries across 11 versions & 3 rubygems

Version Path
shoppe-1.1.2 app/views/shoppe/tax_rates/form.html.haml
shoppe-1.1.1 app/views/shoppe/tax_rates/form.html.haml
shoppe-1.1.0 app/views/shoppe/tax_rates/form.html.haml
shoppe-1.0.9 app/views/shoppe/tax_rates/form.html.haml
shoppe-1.0.8 app/views/shoppe/tax_rates/form.html.haml
kylekthompson-shoppe-1.0.7 app/views/shoppe/tax_rates/form.html.haml
shoppe-1.0.7 app/views/shoppe/tax_rates/form.html.haml
shoppe-1.0.6 app/views/shoppe/tax_rates/form.html.haml
shoppe-paypal-1.1.0 vendor/bundle/ruby/2.1.0/gems/shoppe-1.0.5/app/views/shoppe/tax_rates/form.html.haml
shoppe-1.0.5 app/views/shoppe/tax_rates/form.html.haml
shoppe-1.0.3 app/views/shoppe/tax_rates/form.html.haml