Sha256: 881bd15655ccb1d26c04ccd01ff085be042c9ab20b977b9c542084c44ad96f4f

Contents?: true

Size: 1.18 KB

Versions: 8

Compression:

Stored size: 1.18 KB

Contents

- @page_title = "Tax Rates"
= content_for :header do
  %p.buttons= link_to "Back to tax rates", :tax_rates, :class => 'button grey'
  %h2.tax_rates Tax Rates

= form_for @tax_rate do |f|
  = f.error_messages
  = field_set_tag "Rate Details" do
    .splitContainer
      %dl.half
        %dt= f.label :name
        %dd= f.text_field :name, :class => 'focus text'
      %dl.half
        %dt= f.label :rate
        %dd= f.text_field :rate, :class => 'text'
  
  = field_set_tag "Country Restriction" do
    %dl
      %dd
        = f.select :address_type, Shoppe::TaxRate::ADDRESS_TYPES.map { |a| ["Apply to orders where the #{a} address matches one of the countries below".html_safe, a]}, {}, :class => 'chosen-basic'
    %dl
      %dd
        = f.collection_select :country_ids, Shoppe::Country.ordered, :id, :name, {}, {:class => 'chosen', :multiple => true, :data => {:placeholder => "All countries"}}
  %p.submit
    - unless @tax_rate.new_record?
      %span.right= link_to "Delete", @tax_rate, :class => 'button purple', :method => :delete, :data => {:confirm => "Are you sure you wish to remove this tax_rate?"}
    = f.submit :class => 'button green'
    = link_to "Cancel", :tax_rates, :class => 'button'

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
shoppe-1.0.2 app/views/shoppe/tax_rates/form.html.haml
shoppe-1.0.1 app/views/shoppe/tax_rates/form.html.haml
shoppe-1.0.0 app/views/shoppe/tax_rates/form.html.haml
shoppe-0.0.21 app/views/shoppe/tax_rates/form.html.haml
shoppe-0.0.20 app/views/shoppe/tax_rates/form.html.haml
shoppe-0.0.19 app/views/shoppe/tax_rates/form.html.haml
shoppe-0.0.18 app/views/shoppe/tax_rates/form.html.haml
shoppe-0.0.17 app/views/shoppe/tax_rates/form.html.haml