Sha256: f1777fbcc62d7db065e524bb76918f3dba622aa55c99f90add324be3f203b7c3

Contents?: true

Size: 1.08 KB

Versions: 4

Compression:

Stored size: 1.08 KB

Contents

- @page_title = "Tax Rates"
= content_for :header do
  %p.buttons= link_to "Back to tax rates", :tax_rates, :class => 'button'
  %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 "Countries" do
    %dl
      %dd
        = f.collection_select :country_ids, Shoppe::Country.ordered, :id, :name, {}, {:class => 'chosen', :multiple => true, :data => {:placeholder => "All countries"}}
        %p.help This tax rate will only apply to orders which are billed to addresses of the countries  listed above.
  
  %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

4 entries across 4 versions & 1 rubygems

Version Path
shoppe-0.0.16 app/views/shoppe/tax_rates/form.html.haml
shoppe-0.0.15 app/views/shoppe/tax_rates/form.html.haml
shoppe-0.0.14 app/views/shoppe/tax_rates/form.html.haml
shoppe-0.0.13 app/views/shoppe/tax_rates/form.html.haml