Sha256: 1486d15cf9ca0c634b9573ccb9768ca0b7276540aa7221773f2386adbde4a3e6

Contents?: true

Size: 968 Bytes

Versions: 24

Compression:

Stored size: 968 Bytes

Contents

%ul#cart_items
- if order && order.line_items.size > 0
  = form_for(order) do |order_form|
    - order.line_items.each do |line_item|
      %li
        %em{:style => "font-size: 12px;"}
          = line_item.product.title
          = order_form.fields_for :line_items, line_item do |line_item_fields|
            = line_item_fields.text_field :quantity, :size => 2
        %br
        %small
          = number_to_currency(line_item.price) + " each"
           | 
          = link_to "Remove", remove_from_cart_order_path(order, :line_item_id => line_item.id), { :method => :delete, :confirm => "Are you sure you want to remove this product from your cart?" }
    = submit_tag "Update Quantities" 
  %li 
    %strong Subtotal:
    = "#{number_to_currency(order.price)} #{MySettings.currency}"
  %br/

  - unless params[:action] == "checkout"
    %br/
    = link_to "Proceed to checkout", "/orders/checkout"
      
- else
  %li.empty_cart Your cart is empty.

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
forge-cli-0.1.10 lib/forge/app/views/orders/_cart.html.haml
forge-cli-0.1.9 lib/forge/app/views/orders/_cart.html.haml
forge-cli-0.1.8 lib/forge/app/views/orders/_cart.html.haml
forge-cli-0.1.7 lib/forge/app/views/orders/_cart.html.haml
forge-cli-0.1.6 lib/forge/app/views/orders/_cart.html.haml
forge-cli-0.1.5 lib/forge/app/views/orders/_cart.html.haml
forge-cli-0.1.4 lib/forge/app/views/orders/_cart.html.haml
forge-cli-0.1.3 lib/forge/app/views/orders/_cart.html.haml
forge-cli-0.1.2 lib/forge/app/views/orders/_cart.html.haml
forge-cli-0.1.1 lib/forge/app/views/orders/_cart.html.haml
forge-cli-0.1.0 lib/forge/app/views/orders/_cart.html.haml
forge-cli-0.0.18 lib/forge/app/views/orders/_cart.html.haml
forge-cli-0.0.17 lib/forge/app/views/orders/_cart.html.haml
forge-cli-0.0.16 lib/forge/app/views/orders/_cart.html.haml
forge-cli-0.0.15 lib/forge/app/views/orders/_cart.html.haml
forge-cli-0.0.14 lib/forge/app/views/orders/_cart.html.haml
forge-cli-0.0.13 lib/forge/app/views/orders/_cart.html.haml
forge-cli-0.0.12 lib/forge/app/views/orders/_cart.html.haml
forge-cli-0.0.11 lib/forge/app/views/orders/_cart.html.haml
forge-cli-0.0.10 lib/forge/app/views/orders/_cart.html.haml