select-menu-page.html 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152
  1. <div class="select-menu-page" ng-controller="SelectMenuPageController">
  2. <div class="search">
  3. <div class="search-wrapper">
  4. <div class="search-description">
  5. explore the master kitchen menu:
  6. </div>
  7. <div class="search-buttons-wrapper">
  8. <div class="search-button" ng-click="mealType = 'breakfast'" ng-class="{'search-button-active': mealType == 'breakfast'}">
  9. Breakfast
  10. </div>
  11. <div class="search-button" ng-click="mealType = 'lunch'" ng-class="{'search-button-active': mealType == 'lunch'}">
  12. Lunch
  13. </div>
  14. <div class="search-button" ng-click="mealType = 'dinner'" ng-class="{'search-button-active': mealType == 'dinner'}">
  15. Dinner
  16. </div>
  17. <div class="search-button" ng-click="mealType = 'snacks'" ng-class="{'search-button-active': mealType == 'snacks'}">
  18. Snacks
  19. </div>
  20. </div>
  21. </div>
  22. </div>
  23. <div class="meal-items" ng-if="mealType == 'breakfast'">
  24. <div class="meal-item" ng-repeat="meal in meals" ng-if="meal.type == 'breakfast'">
  25. <div ng-click="deleteMealItem($index)" class="meal-item-delete-btn">
  26. <span class="fa fa-times"></span>
  27. </div>
  28. <div class="meal-item-title">
  29. <h2>{{meal.mealName}}</h2>
  30. </div>
  31. <div class="meal-item-img">
  32. <img ng-src="{{meal.imageUrl}}">
  33. </div>
  34. <div class="meal-item-ingredients">
  35. <h3>Ingredients</h3>
  36. <ul>
  37. <li ng-repeat="ingredient in meal.ingredients track by $index">- {{ingredient}}</li>
  38. </ul>
  39. </div>
  40. <div class="meal-item-bottom">
  41. <div class="meal-item-bottom-container">
  42. <div class="meal-item-price">
  43. <span>{{meal.price}} USD</span>
  44. </div>
  45. <div class="meal-item-btn">
  46. <button type="button" ng-click="selectMeal($index)">Add</button>
  47. </div>
  48. </div>
  49. </div>
  50. <div class="meal-item-checked-icon" ng-if="meal.isSelected">
  51. <i class="fa fa-check-circle"></i>
  52. </div>
  53. </div>
  54. </div>
  55. <div class="meal-items" ng-if="mealType == 'lunch'">
  56. <div class="meal-item" ng-repeat="meal in meals" ng-if="meal.type == 'lunch'">
  57. <div ng-click="deleteMealItem($index)" class="meal-item-delete-btn">
  58. <span class="fa fa-times"></span>
  59. </div>
  60. <div class="meal-item-title">
  61. <h2>{{meal.mealName}}</h2>
  62. </div>
  63. <div class="meal-item-img">
  64. <img ng-src="{{meal.imageUrl}}">
  65. </div>
  66. <div class="meal-item-ingredients">
  67. <h3>Ingredients</h3>
  68. <ul>
  69. <li ng-repeat="ingredient in meal.ingredients track by $index">- {{ingredient}}</li>
  70. </ul>
  71. </div>
  72. <div class="meal-item-bottom">
  73. <div class="meal-item-bottom-container">
  74. <div class="meal-item-price">
  75. <span>{{meal.price}} USD</span>
  76. </div>
  77. <div class="meal-item-btn">
  78. <button type="button" ng-click="selectMeal($index)">Add</button>
  79. </div>
  80. </div>
  81. </div>
  82. <div class="meal-item-checked-icon" ng-if="meal.isSelected">
  83. <i class="fa fa-check-circle"></i>
  84. </div>
  85. </div>
  86. </div>
  87. <div class="meal-items" ng-if="mealType == 'dinner'">
  88. <div class="meal-item" ng-repeat="meal in meals" ng-if="meal.type == 'dinner'">
  89. <div ng-click="deleteMealItem($index)" class="meal-item-delete-btn">
  90. <span class="fa fa-times"></span>
  91. </div>
  92. <div class="meal-item-title">
  93. <h2>{{meal.mealName}}</h2>
  94. </div>
  95. <div class="meal-item-img">
  96. <img ng-src="{{meal.imageUrl}}">
  97. </div>
  98. <div class="meal-item-ingredients">
  99. <h3>Ingredients</h3>
  100. <ul>
  101. <li ng-repeat="ingredient in meal.ingredients track by $index">- {{ingredient}}</li>
  102. </ul>
  103. </div>
  104. <div class="meal-item-bottom">
  105. <div class="meal-item-bottom-container">
  106. <div class="meal-item-price">
  107. <span>{{meal.price}} USD</span>
  108. </div>
  109. <div class="meal-item-btn">
  110. <button type="button" ng-click="selectMeal($index)">Add</button>
  111. </div>
  112. </div>
  113. </div>
  114. <div class="meal-item-checked-icon" ng-if="meal.isSelected">
  115. <i class="fa fa-check-circle"></i>
  116. </div>
  117. </div>
  118. </div>
  119. <div class="meal-items" ng-if="mealType == 'snacks'">
  120. <div class="meal-item" ng-repeat="meal in meals" ng-if="meal.type == 'snacks'">
  121. <div ng-click="deleteMealItem($index)" class="meal-item-delete-btn">
  122. <span class="fa fa-times"></span>
  123. </div>
  124. <div class="meal-item-title">
  125. <h2>{{meal.mealName}}</h2>
  126. </div>
  127. <div class="meal-item-img">
  128. <img ng-src="{{meal.imageUrl}}">
  129. </div>
  130. <div class="meal-item-ingredients">
  131. <h3>Ingredients</h3>
  132. <ul>
  133. <li ng-repeat="ingredient in meal.ingredients track by $index">- {{ingredient}}</li>
  134. </ul>
  135. </div>
  136. <div class="meal-item-bottom">
  137. <div class="meal-item-bottom-container">
  138. <div class="meal-item-price">
  139. <span>{{meal.price}} USD</span>
  140. </div>
  141. <div class="meal-item-btn">
  142. <button type="button" ng-click="selectMeal($index)">Add</button>
  143. </div>
  144. </div>
  145. </div>
  146. <div class="meal-item-checked-icon" ng-if="meal.isSelected">
  147. <i class="fa fa-check-circle"></i>
  148. </div>
  149. </div>
  150. </div>
  151. </div>
  152. <footer></footer>