ingredientDetails.ejs 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. <div id="ingredientDetails">
  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. <button class="iconButton" onclick="ingredientDetailsComp.edit()">
  10. <svg width="30" height="30" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
  11. <path d="M12 20h9"></path>
  12. <path d="M16.5 3.5a2.121 2.121 0 0 1 3 3L7 19l-4 1 1-4L16.5 3.5z"></path>
  13. </svg>
  14. </button>
  15. <button class="iconButton" onclick="ingredientDetailsComp.remove()">
  16. <svg width="30" height="30" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
  17. <polyline points="3 6 5 6 21 6"></polyline>
  18. <path d="M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6m3 0V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2"></path>
  19. </svg>
  20. </button>
  21. </div>
  22. <p></p>
  23. <h1></h1>
  24. <div class="lineBorder"></div>
  25. <label>Current Stock
  26. <p id="ingredientStock"></p>
  27. <input id="ingredientInput" type="number" min="0" step="0.01" style="display: none;">
  28. </label>
  29. <div class="lineBorder"></div>
  30. <label>Average Daily Use (30 days)
  31. <p id="dailyUse"></p>
  32. </label>
  33. <div class="lineBorder"></div>
  34. <label>Contained in:
  35. <ul id="ingredientRecipeList"></ul>
  36. </label>
  37. <button id="editSubmitButton" class="button" onclick="ingredientDetailsComp.editSubmit()" style="display: none;">Save Changes</button>
  38. </div>