addIngredients.ejs 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <div id="addIngredients">
  2. <button class="sidebarIconButton" onclick="closeSidebar()">
  3. <svg width="30" height="30" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
  4. <line x1="5" y1="12" x2="19" y2="12"></line>
  5. <polyline points="12 5 19 12 12 19"></polyline>
  6. </svg>
  7. </button>
  8. <h1>Add New Ingredients</h1>
  9. <div id="addIngredientList"></div>
  10. <button class="button" onclick="ingredientsStrandObj.submitAddIngredients()">Add</button>
  11. <template id="addIngredientsCategory">
  12. <div class="addIngredientsCategory">
  13. <div class="categoryHeader">
  14. <h5></h5>
  15. <button>
  16. <svg width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
  17. <polyline points="6 9 12 15 18 9"></polyline>
  18. </svg>
  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="18 15 12 9 6 15"></polyline>
  21. </svg>
  22. </button>
  23. </div>
  24. <div class="addIngredientsIngredients"></div>
  25. </div>
  26. </template>
  27. <template id="addIngredientsIngredient">
  28. <div class="addIngredientsIngredient">
  29. <input type="checkbox">
  30. <p></p>
  31. <input type="number" min="0" step="0.01">
  32. </div>
  33. </template>
  34. </div>