Sha256: da227a79d18e74bbc0842f4d9d9d7b8970b063d74c662653d3273ca2dd1e60c9

Contents?: true

Size: 905 Bytes

Versions: 3

Compression:

Stored size: 905 Bytes

Contents

= form_for [@delivery_service, @delivery_service_price] do |f|
  = f.error_messages
  = field_set_tag "Weight allowance" do
    %dl
      %dt= f.label :min_weight
      %dd= f.text_field :min_weight
    %dl
      %dt= f.label :max_weight
      %dd= f.text_field :max_weight

  = field_set_tag "Pricing" do
    %dl
      %dt= f.label :price
      %dd= f.text_field :price
    %dl
      %dt= f.label :tax_rate
      %dd= f.text_field :tax_rate
    
  = field_set_tag "Details" do
    %dl
      %dt= f.label :code
      %dd= f.text_field :code

  %p.submit
    - unless @delivery_service_price.new_record?
      %span.right= link_to "Delete", [@delivery_service, @delivery_service_price], :class => 'button purple', :method => :delete, :data => {:confirm => "Are you sure you wish to remove this price?"}
    = f.submit :class => 'button green'
    = link_to "Cancel", :delivery_services, :class => 'button'

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
shoppe-0.0.7 app/views/shoppe/delivery_service_prices/_form.html.haml
shoppe-0.0.6 app/views/shoppe/delivery_service_prices/_form.html.haml
shoppe-0.0.5 app/views/shoppe/delivery_service_prices/_form.html.haml