addRecipe.ejs 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <div id="addRecipe">
  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>New Recipe</h1>
  9. <div class="recipeBasicInfo">
  10. <label>Name:
  11. <input id="newRecipeName" type="text">
  12. </label>
  13. <label>Price:
  14. <input id="newRecipePrice" 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. <h2>Ingredients</h2>
  21. <div id="recipeInputIngredients">
  22. <div>
  23. <h4>Ingredient 1</h4>
  24. <label>Ingredient:
  25. <select></select>
  26. </label>
  27. <label>Quantity:
  28. <input type="number" step="0.01" min="0">
  29. </label>
  30. </div>
  31. </div>
  32. <button class="button" onclick="recipeBookStrandObj.submitNewRecipe()">Create</button>
  33. </div>