addIngredients.ejs 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  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. <button class="button addIngredientsBtn" onclick="addIngredientsComp.submitAddIngredients()">Add</button>
  13. <button class="button addIngredientsBtn" onclick="newIngredientComp.display()">Create New</button>
  14. <template id="addIngredientsCategory">
  15. <div class="addIngredientsCategory">
  16. <div class="categoryHeader">
  17. <h5></h5>
  18. <button>
  19. <svg width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
  20. <polyline points="6 9 12 15 18 9"></polyline>
  21. </svg>
  22. <svg width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
  23. <polyline points="18 15 12 9 6 15"></polyline>
  24. </svg>
  25. </button>
  26. </div>
  27. <div class="addIngredientsIngredients"></div>
  28. </div>
  29. </template>
  30. <template id="addIngredientsIngredient">
  31. <div class="addIngredientsIngredient">
  32. <p></p>
  33. <input type="number" min="0" step="0.01">
  34. </div>
  35. </template>
  36. </div>