Sha256: c7a5b8b4540dfc767a9e3d02b4cde6bd8cf4cd8c3be4fc0b714d74f013053845

Contents?: true

Size: 1.07 KB

Versions: 15

Compression:

Stored size: 1.07 KB

Contents

%h1 Place Your Order

%h2= @order.description

- units_price = 0
- total_tax = 0
- total_price = 0

%table
  - @order.order_items.each do |item|
    %tr
      %td 
        = item.name
      %td
        = item.unit_price
      %td
        = item.quantity
      %td
        = item.tax_rate
      %td
        = item.total_price
      - units_price += (item.unit_price * item.quantity)
      - total_tax += (item.unit_price * item.quantity) * item.tax_rate
      - total_price += (tem.unit_price * item.quantity * (1 + item.tax_rate)

  %tr
    %td Total
    %td  
    %td  
    %td  
    %td= total_price

%h2 Your Billing Details

= form_for @order, :url=>"/order/process_payment" do  |f|
  
  %p
    %label First Name
      = f.text_field :first_name

  %p
    %label Last Name
      = f.text_field :last_name

  %p
    %label Address Line 1
      = f.text_field :address1
  
  %p
    %label Address Line 2
      = f.text_field :address2

  %p
    %label Town/City
      = f.text_field :town

  %p
    %label Postal Code
      = f.text_field :postcode

  %p
    = f.submit "Pay Now"


Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
kit_cms-2.3.22 app/views/order/_pay.html.haml
kit_cms-2.3.20 app/views/order/_pay.html.haml
kit_cms-2.3.19 app/views/order/_pay.html.haml
kit_cms-2.3.18 app/views/order/_pay.html.haml
kit_cms-2.3.17 app/views/order/_pay.html.haml
kit_cms-2.3.16 app/views/order/_pay.html.haml
kit_cms-2.3.15 app/views/order/_pay.html.haml
kit_cms-2.3.14 app/views/order/_pay.html.haml
kit_cms-2.3.13 app/views/order/_pay.html.haml
kit_cms-2.3.11 app/views/order/_pay.html.haml
kit_cms-2.3.10 app/views/order/_pay.html.haml
kit_cms-2.3.9 app/views/order/_pay.html.haml
kit_cms-2.3.8 app/views/order/_pay.html.haml
kit_cms-2.3.7 app/views/order/_pay.html.haml
kit_cms-2.3.6 app/views/order/_pay.html.haml