addRecipe.ejs 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. <div id="addRecipe" class="sidebarHide">
  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 a recipe</h1>
  9. <div class="recipeBasicInfo">
  10. <label>Name:
  11. <input id="name" type="text">
  12. </label>
  13. <label>Price:
  14. <input id="price" type="number" step="0.01" min="0">
  15. </label>
  16. <label># of Ingredients
  17. <input id="ingredientCount" type="number" step="1" min="1" onchange="recipeBookStrandObj.changeRecipeCount()">
  18. </label>
  19. </div>
  20. <div id="recipeInputIngredients">
  21. <div>
  22. <label>Ingredient:
  23. <select></select>
  24. </label>
  25. <label>Quantity:
  26. <input type="number" step="0.01" min="0">
  27. </label>
  28. </div>
  29. </div>
  30. </div>