Advertisement
Guest User

Untitled

a guest
May 25th, 2015
260
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.78 KB | None | 0 0
  1. #cart-panel.cart-panel-hidden
  2. #cart-title Cart
  3. = inline_svg "shop.svg", class: "cart-svg svg"
  4. #cart-info
  5. = label :user, :name, 'SID', class: "cart-label"
  6. = text_field :user, :name, class: "cart-input"
  7. = label :user, :comment, 'Comment', class: "cart-label"
  8. .comment-arrow
  9. = text_area :user, :comment, class: "cart-textarea", cols: "18", rows: "2"
  10. = label :user, :items, 'Items', class: "cart-label"
  11. #cart-items
  12. - @cart.each_with_index do |item, index|
  13. .cart-item
  14. = text_field "item#{index}", :quantity, value: item[:quantity], class: "cart-item-quantity"
  15. = label "item#{index}", :name, item[:name], class: "cart-item-name"
  16. #checkout-footer
  17. =link_to "Checkout", checkout_path(hash: session[:cart]), method: :post, id: "checkout-button"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement