Sha256: 67c7b8cdf5205e2f29d39aed5b13303f7ea38b8f100b98a9587a44027681d6fa

Contents?: true

Size: 1.21 KB

Versions: 3

Compression:

Stored size: 1.21 KB

Contents

= form_for @delivery_service do |f|
  = f.error_messages
  = field_set_tag "Details" do
    %dl
      %dt= f.label :name
      %dd= f.text_field :name
    %dl
      %dt= f.label :code
      %dd= f.text_field :code
    %dl
      %dt= f.label :active
      %dd= f.check_box :active
    %dl
      %dt= f.label :default
      %dd= f.check_box :default
  = field_set_tag "Courier" do
    %dl
      %dt= f.label :courier, "Courier Name"
      %dd= f.text_field :courier
    %dl
      %dt= f.label :tracking_url, "Tracking URL"
      %dd
        = f.text_field :tracking_url
        %p.help Use <code>{{consignment_number}}</code> to insert the consignment number.

  - unless @delivery_service.new_record?
    = field_set_tag "Pricing" do
      %dl
        %dt Pricing
        %dd= link_to "Set pricing for delivery service", [@delivery_service, :delivery_service_prices], :class => 'button button-mini'
  %p.submit
    - unless @delivery_service.new_record?
      %span.right= link_to "Delete", [@delivery_service], :class => 'button purple', :method => :delete, :data => {:confirm => "Are you sure you wish to remove this delivery service?"}
    = 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_services/_form.html.haml
shoppe-0.0.6 app/views/shoppe/delivery_services/_form.html.haml
shoppe-0.0.5 app/views/shoppe/delivery_services/_form.html.haml