newIngredient.ejs 909 B

123456789101112131415161718192021222324252627282930
  1. <div id="newIngredient">
  2. <div class="sidebarIconButtons">
  3. <button class="iconButton" onclick="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 Ingredient</h1>
  11. <label>Name:
  12. <input id="newIngName" type="text">
  13. </label>
  14. <label>Category:
  15. <input id="newIngCategory" type="text">
  16. </label>
  17. <label>Quantity:
  18. <input id="newIngQuantity" type="number" min="0" step="0.01">
  19. </label>
  20. <label>Unit:
  21. <input id="newIngUnit" type="text">
  22. </label>
  23. <button class="button" onclick="newIngredientComp.submit()">Create</button>
  24. </div>