Sha256: 5bb0f852088c59f3ad4aa00a3c6c8e3547f8847412b4a4f91e60ac660d829260

Contents?: true

Size: 1.48 KB

Versions: 11

Compression:

Stored size: 1.48 KB

Contents

- @page_title = "#{t('shoppe.orders.despatch_note.order_number')} #{@order.number}"

.despatchNote
  %header
    %h1= Shoppe.settings.store_name
    %h2= t("shoppe.orders.despatch_note.despatch_note")
  .address
    %p.name= @order.delivery_name
    %p= @order.delivery_address1
    %p= @order.delivery_address2
    %p= @order.delivery_address3
    %p= @order.delivery_address4
    %p= @order.delivery_postcode
    %p= @order.delivery_country.try(:name)

  %table.details
    %tr
      %th= t("shoppe.orders.despatch_note.order_number")
      %th= t("shoppe.orders.despatch_note.order_placed")
      %th= t("shoppe.orders.despatch_note.total_weight")
      %th= t("shoppe.orders.despatch_note.telephone")
    %tr
      %td= @order.number
      %td= @order.received? ? @order.received_at.to_s(:long) : 'n/a'
      %td= number_to_weight @order.total_weight
      %td= @order.phone_number

  %table.items
    %thead
      %tr
        %th= t("shoppe.orders.despatch_note.quantity")
        %th= t("shoppe.orders.despatch_note.product")
        %th= t("shoppe.orders.despatch_note.sku")
        %th= t("shoppe.orders.despatch_note.weight")
        %th= t("shoppe.orders.despatch_note.packed?")
    %tbody
      - for item in @order.order_items
        %tr
          %td= item.quantity
          %td= item.ordered_item.full_name
          %td= item.ordered_item.sku
          %td= number_to_weight item.weight
          %td.check

  %p.footer= t('shoppe.orders.despatch_note.footer', :default => "Thank you for your order!")

Version data entries

11 entries across 11 versions & 3 rubygems

Version Path
shoppe-1.1.2 app/views/shoppe/orders/despatch_note.html.haml
shoppe-1.1.1 app/views/shoppe/orders/despatch_note.html.haml
shoppe-1.1.0 app/views/shoppe/orders/despatch_note.html.haml
shoppe-1.0.9 app/views/shoppe/orders/despatch_note.html.haml
shoppe-1.0.8 app/views/shoppe/orders/despatch_note.html.haml
kylekthompson-shoppe-1.0.7 app/views/shoppe/orders/despatch_note.html.haml
shoppe-1.0.7 app/views/shoppe/orders/despatch_note.html.haml
shoppe-1.0.6 app/views/shoppe/orders/despatch_note.html.haml
shoppe-paypal-1.1.0 vendor/bundle/ruby/2.1.0/gems/shoppe-1.0.5/app/views/shoppe/orders/despatch_note.html.haml
shoppe-1.0.5 app/views/shoppe/orders/despatch_note.html.haml
shoppe-1.0.3 app/views/shoppe/orders/despatch_note.html.haml