addRecipe.ejs 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <div id="addRecipe">
  2. <div class="sidebarIconButtons">
  3. <button class="iconButton" onclick="controller.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>NEW RECIPE</h1>
  11. <div class="recipeBasicInfo">
  12. <label>NAME:
  13. <input id="newRecipeName" type="text">
  14. </label>
  15. <label>PRICE:
  16. <input id="newRecipePrice" type="number" step="0.01" min="0">
  17. </label>
  18. <label># OF INGREDIENTS
  19. <input id="ingredientCount" type="number" step="1" min="1" onchange="newRecipeComp.changeRecipeCount()">
  20. </label>
  21. </div>
  22. <h2>INGREDIENTS</h2>
  23. <div id="recipeInputIngredients">
  24. <div>
  25. <h4>INGREDIENT 1</h4>
  26. <label>INGREDIENT:
  27. <select></select>
  28. </label>
  29. <label>QUANTITY:
  30. <input type="number" step="0.01" min="0">
  31. </label>
  32. </div>
  33. </div>
  34. <button class="button" onclick="newRecipeComp.submit()">CREATE</button>
  35. </div>