shopping-cart-page.html 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. <div class="shopping-cart-page" ng-controller="ShoppingCartPageController">
  2. <div class="shopping-cart-page-wrapper" ng-if="!orderSuccess">
  3. <div class="title">
  4. <h1>YOUR CART</h1>
  5. </div>
  6. <div class="items-wrapper-header">
  7. <div class="product">
  8. Product
  9. </div>
  10. <div class="duration">
  11. Duration
  12. </div>
  13. <div class="price">
  14. Price
  15. </div>
  16. </div>
  17. <div class="items-wrapper">
  18. <div class="item" ng-repeat="item in shoppingCartItems">
  19. <div class="item-img">
  20. <img ng-src="{{item.imageUrl}}">
  21. </div>
  22. <div class="item-title">
  23. <h3>{{item.title}}</h3>
  24. <button ng-click="removeItem($index)" type="button">Remove</button>
  25. </div>
  26. <div class="item-duration">
  27. {{item.weekCount > 1 ? item.weekCount + ' weeks' : item.weekCount + ' week'}}
  28. </div>
  29. <div class="item-price">
  30. {{item.overallPrice}} USD
  31. </div>
  32. </div>
  33. </div>
  34. <div class="no-selected" ng-if="!totalPrice()">
  35. No diets selected
  36. </div>
  37. <div class="items-footer">
  38. <div class="total-price">
  39. Total {{totalPrice()}} USD
  40. </div>
  41. <div class="btns">
  42. <button type="button"><a href="#">continue shopping</a></button>
  43. <button type="button" ng-click="checkOut()">check out</button>
  44. </div>
  45. </div>
  46. </div>
  47. <div ng-if="orderSuccess" class="order-success-wrapper">
  48. <div class="order-success">
  49. <h1>Thank you for your purchase!</h1>
  50. <div class="order-success-btns">
  51. <button type="button"><a href="#">continue shopping</a></button>
  52. <button type="button"><a href="#!/user-page">to your profile</a></button>
  53. </div>
  54. </div>
  55. </div>
  56. </div>