ingredientDetails.ejs 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. <div id="ingredientDetails">
  2. <div class="sidebarIconButtons mobileHide">
  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. <button id="editIngBtn" class="iconButton">
  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 id="removeIngBtn" class="iconButton">
  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 class="editRemove" id="ingredientDetailsCategory"></p>
  23. <input class="editAdd" id="detailsCategoryInput" type="text">
  24. <h1 class="editRemove" id="ingredientDetailsName"></h1>
  25. <input class="editAdd" id="ingredientDetailsNameIn" type="text">
  26. <div class="lineBorder"></div>
  27. <label>CURRENT STOCK
  28. <p class="editRemove" id="ingredientStock"></p>
  29. <input class="editAdd" id="ingredientInput" type="number" min="0" step="0.01">
  30. </label>
  31. <div class="lineBorder"></div>
  32. <label class="editRemove">AVERAGE DAILY USE (30 DAYS)
  33. <p id="dailyUse"></p>
  34. </label>
  35. <div class="lineBorder editRemove"></div>
  36. <label class="editRemove">RECIPES:</label>
  37. <ul id="ingredientRecipeList" class="editRemove"></ul>
  38. <label class="editAdd" id="displayUnitLabel" style="display: none">DISPLAY UNIT:</label>
  39. <div class="editAdd" id="ingredientButtons" style="display: none"></div>
  40. <div class="buttonBox editAdd" id="editIngredientButtons" style="display: none">
  41. <button id="editSubmitButton" class="button">SAVE</button>
  42. <button id="editCancelButton" class="button">CANCEL</button>
  43. </div>
  44. </div>