Sha256: 6b9e93c173f0e50ea354e23f711f621ce444bdaf503d40a966fad6890cc2260f

Contents?: true

Size: 1.45 KB

Versions: 9

Compression:

Stored size: 1.45 KB

Contents

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

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

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

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
kkt_shoppe-2.0.2 app/views/kkt_shoppe/tax_rates/form.html.haml
kkt_shoppe-2.0.1 app/views/kkt_shoppe/tax_rates/form.html.haml
kkt_shoppe-2.0.0 app/views/kkt_shoppe/tax_rates/form.html.haml
kkt_shoppe-1.3.0 app/views/kkt_shoppe/tax_rates/form.html.haml
kkt_shoppe-1.2.1 app/views/kkt_shoppe/tax_rates/form.html.haml
kkt_shoppe-1.2.0 app/views/kkt_shoppe/tax_rates/form.html.haml
kkt_shoppe-1.1.2 app/views/kkt_shoppe/tax_rates/form.html.haml
kkt_shoppe-1.1.1 app/views/kkt_shoppe/tax_rates/form.html.haml
kkt_shoppe-1.1.0 app/views/kkt_shoppe/tax_rates/form.html.haml