addIngredients.ejs 1.8 KB

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