Created
February 5, 2011 02:22
-
-
Save twinge/812140 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- inside_layout 'marketplace_layout' do | |
%h2{:style => 'font-size:2em'} One More Step! Please Confirm Your Order. | |
.marketplace_sidebar{:style => 'width:340px'} | |
.box.shopping_cart | |
.box_shopping_cart | |
.border | |
.header | |
%h3 Your Order: | |
/ %p.right= link_to 'Manage my Assets' | |
.content | |
%table.cart | |
%thead | |
%tr | |
%th.item Item | |
%th.quantity Quantity | |
%th.price Price | |
%tbody | |
- cart.orders.each do |product_id, order| | |
%tr | |
%td.item=order.product.product_of.title | |
%td.quantity 1 | |
%td.price= show_in_currency(order.product.price) | |
- if !cart.empty? | |
%tr | |
%td.item Total | |
%td.quantity=cart.quantity | |
%td.price{:nowrap => 'nowrap'}= show_in_currency(cart_total) | |
%div | |
- form_for :user, :url => {:action => 'complete', :token => params[:token], :payer_id => params[:PayerID]}, :html => {:class => 'default'} do |form| | |
/ = render :partial => 'customer_data' | |
.field | |
= submit_tag 'Complete Payment through Paypal', :disable_with => "Please wait..." |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment