Skip to content

Instantly share code, notes, and snippets.

@gustin
Created February 21, 2009 05:01
Show Gist options
  • Save gustin/67898 to your computer and use it in GitHub Desktop.
Save gustin/67898 to your computer and use it in GitHub Desktop.
<div class="bigroundbox">
<div class="boxcontainer">
<table cellspacing="0" cellpadding="0" class="shoptable">
<tr>
<th class="prodcol">Power Supply:</th>
<th class="standcol">Quantity</th>
<th class="standcol">Price</th>
<th class="standcol">Total</th>
<th class="standcol"></th>
</tr>
<% if @cart.cart_items.length > 0 %>
<% form_tag cart_path(@cart.id), :method => :put,
:html => { :name => 'cart_form' } do |form| %>
<%= render :partial => "/carts/cart_item", :locals => { :cart => @cart } %>
<tr>
<td class="prodcol"/>
<td class="standcol">
<%= image_submit_tag 'update_quantity_button.gif' %>
</td>
<td colspan="3"/>
</tr>
<tr><td><br/></td></tr>
<tr>
<td colspan="2"/>
<td colspan="3"><h2>Shipping Regions:</h2></td>
</tr>
<tr id="shipping_regions">
<td colspan="3"/>
<td>
<%= render :partial => '/carts/shipping_regions',
:locals => { :order_review => order_review } %>
</td>
</tr>
<tr>
<td colspan="2"/>
<td colspan="3"><h2>Shipping Methods:</h2></td>
</tr>
</table>
<table id="shipping_methods" class="shoptable">
<tbody>
<tr>
<td colspan="3"/>
<td id="shipping_methods">
<%= render :partial => '/carts/shipping_methods',
:locals => { :shipping_methods => @shipping_methods } %>
</td>
</tr>
</tbody>
</table>
<table class="shoptable">
<tr>
<td colspan="5"/>
</tr>
<tr>
<td colspan="5"/>
</tr>
<tr class="nop">
<td class="prodcol">&nbsp;</td>
<td class="standcol">&nbsp; </td>
<td class="standcol">&nbsp;</td>
<td class="breakdown">Subtotal</td>
<td class="breakdown"><%= number_to_currency(@subtotal) %></td>
</tr>
<tr id="shipping_totals" class="nop">
<%= render :partial => "/carts/shipping_totals",
:locals => { :shipping_total => @shipping_total } %>
</tr>
<tr id="cart_totals" class="nop">
<%= render :partial => "/carts/cart_totals",
:locals => { :grand_total => @grand_total } %>
</tr>
<% end %>
<% else %>
<tr>
<td><h4>Your Cart Is Empty...</h4></td>
</tr>
<% end %>
</table>
</div> <!-- /boxcontainer -->
<div class="bigroundboxbottom">&nbsp;</div>
</div> <!--bigroundbox -->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment