oneWeek.html 5.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. <!-- {{todayDay+$index+'/'+todayMonthYear}} -->
  2. <div class="constructor-cart">
  3. <div class="slick-container">
  4. <slick slides-to-show=3 slides-to-scroll=1 infinite=false>
  5. <div ng-repeat=" item in arrDays track by $index">
  6. <div class="constructor-day">
  7. <h2 class="constructor-day__title accordion__title">{{item.caption}}</h2>
  8. <div class="constructor-day__type">
  9. <b class="constructor-day__type-title"> BREAKFAST </b>
  10. <div class="constructor-meals" data-drop="true" ng-model="order[item.day].breakfast" jqyoui-droppable="{multiple:true}">
  11. <span ng-hide="hideMe( item.day, 'breakfast')" class='constructor-meals__btn-add'>ADD MEAL</span>
  12. <div class='constructor-meals__item' ng-repeat="item in order[item.day].breakfast track by $index" ng-show="item.mealName" data-drag="true" data-jqyoui-options="{revert: 'invalid', helper: 'clone', animate: true}" ng-model="order[item.day].breakfast" jqyoui-draggable="{index: {{$index}},animate:true}">
  13. <div class="constructor-meals__img">
  14. <img ng-src="{{item.imageUrl}}">
  15. </div>
  16. <div class="constructor-meals__title">
  17. <h3>{{item.mealName}}</h3>
  18. </div>
  19. <div class="constructor-meals__btn-delete" ng-click="deleteMeal($parent.item.day, 'breakfast', $index)">
  20. <span class="fa fa-times"></span>
  21. </div>
  22. </div>
  23. </div>
  24. </div>
  25. <div class="constructor-day__type">
  26. <b class="constructor-day__type-title"> LUNCH </b>
  27. <div class="constructor-meals" data-drop="true" ng-model="order[item.day].lunch" jqyoui-droppable="{multiple:true}">
  28. <span ng-hide="hideMe( item.day, 'lunch')" class='constructor-meals__btn-add'>ADD MEAL</span>
  29. <div class='constructor-meals__item' ng-repeat="item in order[item.day].lunch track by $index" ng-show="item.mealName" data-drag="true" data-jqyoui-options="{revert: 'invalid', helper: 'clone'}" ng-model="order[item.day].lunch" jqyoui-draggable="{index: {{$index}},animate:true}">
  30. <div class="constructor-meals__img">
  31. <img ng-src="{{item.imageUrl}}">
  32. </div>
  33. <div class="constructor-meals__title">
  34. <h3>{{item.mealName}}</h3>
  35. </div>
  36. <div class="constructor-meals__btn-delete" ng-click="deleteMeal($parent.item.day, 'lunch', $index)">
  37. <span class="fa fa-times"></span>
  38. </div>
  39. </div>
  40. </div>
  41. </div>
  42. <div class="constructor-day__type">
  43. <b class="constructor-day__type-title">DINNER</b>
  44. <div class="constructor-meals" data-drop="true" ng-model="order[item.day].dinner" jqyoui-droppable="{multiple:true}">
  45. <span ng-hide="hideMe( item.day, 'dinner')" class='constructor-meals__btn-add'>ADD MEAL</span>
  46. <div class='constructor-meals__item' ng-repeat="item in order[item.day].dinner track by $index" ng-show="item.mealName" data-drag="true" data-jqyoui-options="{revert: 'invalid', helper: 'clone'}" ng-model="order[item.day].dinner" jqyoui-draggable="{index: {{$index}},animate:true}">
  47. <div class="constructor-meals__img">
  48. <img ng-src="{{item.imageUrl}}">
  49. </div>
  50. <div class="constructor-meals__title">
  51. <h3>{{item.mealName}}</h3>
  52. </div>
  53. <div class="constructor-meals__btn-delete" ng-click="deleteMeal($parent.item.day, 'dinner', $index)">
  54. <span class="fa fa-times"></span>
  55. </div>
  56. </div>
  57. </div>
  58. </div>
  59. <div class="constructor-day__type">
  60. <b class="constructor-day__type-title">SNACKS</b>
  61. <div class="constructor-meals constructor-meals--border" data-drop="true" ng-model="order[item.day].snacks" jqyoui-droppable="{multiple:true}">
  62. <span ng-hide="hideMe( item.day, 'snacks')" class='constructor-meals__btn-add'>ADD MEAL</span>
  63. <div>
  64. <div class='constructor-meals__item' ng-repeat="item in order[item.day].snacks track by $index" ng-show="item.mealName" data-drag="true" data-jqyoui-options="{revert: 'invalid', helper: 'clone'}" ng-model="order[item.day].snacks" jqyoui-draggable="{index: {{$index}},animate:true}">
  65. <div class="constructor-meals__img">
  66. <img ng-src="{{item.imageUrl}}">
  67. </div>
  68. <div class="constructor-meals__title">
  69. <h3>{{item.mealName}}</h3>
  70. </div>
  71. <div class="constructor-meals__btn-delete" ng-click="deleteMeal($parent.item.day, 'snacks', $index)">
  72. <span class="fa fa-times"></span>
  73. </div>
  74. </div>
  75. </div>
  76. </div>
  77. </div>
  78. </div>
  79. </div>
  80. </slick>
  81. </div>
  82. </div>