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