Sha256: 0c750edb387ae9058f54222338f9eadad1f4d8c845b6b10375c73798c661dea5

Contents?: true

Size: 1.35 KB

Versions: 4

Compression:

Stored size: 1.35 KB

Contents

= form_for @delivery_service do |f|
  = f.error_messages
  = field_set_tag "Details" do
    .splitContainer
      %dl.half
        %dt= f.label :name
        %dd= f.text_field :name, :class => 'text'
      %dl.half
        %dt= f.label :code
        %dd= f.text_field :code, :class => 'text'
    .splitContainer
      %dl.half
        %dt= f.label :active
        %dd.checkbox
          = f.check_box :active
          = f.label :active, 'Service will be available for use'
      %dl.half
        %dt= f.label :default
        %dd.checkbox
          = f.check_box :default
          = f.label :default, 'Service will be used by default (if possible)'
  = field_set_tag "Courier" do
    .splitContainer
      %dl.half
        %dt= f.label :courier, "Courier Name"
        %dd= f.text_field :courier, :class => 'text'
      %dl.half
        %dt= f.label :tracking_url, "Tracking URL"
        %dd
          = f.text_field :tracking_url, :class => 'text'
          %p.help Use <code>{{consignment_number}}</code> to insert the consignment number.

  %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

4 entries across 4 versions & 1 rubygems

Version Path
shoppe-0.0.16 app/views/shoppe/delivery_services/_form.html.haml
shoppe-0.0.15 app/views/shoppe/delivery_services/_form.html.haml
shoppe-0.0.14 app/views/shoppe/delivery_services/_form.html.haml
shoppe-0.0.13 app/views/shoppe/delivery_services/_form.html.haml