Sha256: 03db855ddb88191dd82f8d1d7a0d8cb3f5c7b5e786b05d29619b855e26c8c1a4

Contents?: true

Size: 1.16 KB

Versions: 5

Compression:

Stored size: 1.16 KB

Contents

- @page_title = "Order #{@order.number}"

.despatchNote
  %header
    %h1= Shoppe.settings.store_name
    %h2= t('.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('.order_number')
      %th= t('.order_placed')
      %th= t('.total_weight')
      %th= t('.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('.quantity')
        %th= t('.product')
        %th= t('.sku')
        %th= t('.weight')
        %th= t('.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('.footer', :default => "Thank you for your order!")

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
shoppe-1.0.2 app/views/shoppe/orders/despatch_note.html.haml
shoppe-1.0.1 app/views/shoppe/orders/despatch_note.html.haml
shoppe-1.0.0 app/views/shoppe/orders/despatch_note.html.haml
shoppe-0.0.21 app/views/shoppe/orders/despatch_note.html.haml
shoppe-0.0.20 app/views/shoppe/orders/despatch_note.html.haml