addIngredients.ejs 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. <div id="addIngredients">
  2. <div class="sidebarIconButtons">
  3. <button class="iconButton" onclick="closeSidebar()">
  4. <svg width="30" height="30" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
  5. <line x1="5" y1="12" x2="19" y2="12"></line>
  6. <polyline points="12 5 19 12 12 19"></polyline>
  7. </svg>
  8. </button>
  9. </div>
  10. <h1>Add New Ingredients</h1>
  11. <div id="addIngredientList"></div>
  12. <div class="lineBorder"></div>
  13. <div id="myIngredientsDiv">
  14. <h2>My Ingredients</h2>
  15. <div id="myIngredients"></div>
  16. <div class="lineBorder"></div>
  17. </div>
  18. <div class="buttonBox">
  19. <button class="button addIngredientsBtn" onclick="newIngredientComp.display()">Create New</button>
  20. <button class="button addIngredientsBtn" onclick="addIngredientsComp.submit()">Add</button>
  21. </div>
  22. <template id="addIngredientsCategory">
  23. <div class="addIngredientsCategory">
  24. <div class="categoryHeader">
  25. <h5></h5>
  26. <button>
  27. <svg width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
  28. <polyline points="6 9 12 15 18 9"></polyline>
  29. </svg>
  30. <svg width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
  31. <polyline points="18 15 12 9 6 15"></polyline>
  32. </svg>
  33. </button>
  34. </div>
  35. <div class="addIngredientsIngredients"></div>
  36. </div>
  37. </template>
  38. <template id="addIngredientsIngredient">
  39. <div class="addIngredientsIngredient">
  40. <p></p>
  41. <button class="addButton" onclick="addIngredientsComp.addOne(this.parentElement)">+</button>
  42. </div>
  43. </template>
  44. </div>