newRecipe.ejs 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  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">
  20. </label>
  21. </div>
  22. <h2>INGREDIENTS</h2>
  23. <div id="recipeInputIngredients"></div>
  24. <template id="recipeInputIngredient">
  25. <div class="recipeInputIngredient">
  26. <h4></h4>
  27. <label>INGREDIENT:
  28. <select></select>
  29. </label>
  30. <label>QUANTITY:
  31. <input type="number" step="0.01" min="0">
  32. </label>
  33. </div>
  34. </template>
  35. <button id="submitNewRecipe" class="sidebarButton">CREATE</button>
  36. <button id="recipeFileUpload" class="linkButton">Or, upload a spreadsheet</button>
  37. </div>