editRecipe.ejs 3.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. <div id="editRecipe">
  2. <div class="sidebarIconButtons">
  3. <button class="iconButton tooltipContainer" 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. <span class="tooltip">CLOSE</span>
  9. </button>
  10. </div>
  11. <div id="editRecipeInputContainer">
  12. <h1 id="editRecipeTitle"></h1>
  13. <label id="editRecipeName" style="display:none">NAME:
  14. <input type="text">
  15. </label>
  16. <label id="editRecipeCategory" style="display:none">CATEGORY:
  17. <input type="text">
  18. </label>
  19. <label id="editRecipePrice" style="display:none">PRICE:
  20. <input type="number" step="0.01" min="0">
  21. </label>
  22. </div>
  23. <div id="editRecipeContents">
  24. <div id="editRecipeLeft">
  25. <input id="editRecipeSearch" type="text" placeholder="SEARCH">
  26. <div id="editRecipeUnused"></div>
  27. </div>
  28. <div class="lineBorderVert"></div>
  29. <div id="editRecipeRight">
  30. <h2>LIST OF INGREDIENTS</h2>
  31. <div id="editRecipeUsed"></div>
  32. <button id="editRecipeSubmit" class="sidebarButton">SUBMIT</button>
  33. </div>
  34. </div>
  35. <template id="editRecipeInputItem">
  36. <div class="chosenSelection">
  37. <div>
  38. <p></p>
  39. <button id="editRecipeRemoveBtn" class="sidebarButton">REMOVE</button>
  40. </div>
  41. <div>
  42. <input type="number" step="0.01" min="0" placeholder="QUANTITY">
  43. <select>
  44. <optgroup label="MASS/WEIGHT" style="display:none">
  45. <option type="mass" value="g">G</option>
  46. <option type="mass" value="kg">KG</option>
  47. <option type="mass" value="oz">OZ</option>
  48. <option type="mass" value="lb">LB</option>
  49. </optgroup>
  50. <optgroup label="VOLUME" style="display:none">
  51. <option type="volume" value="ml">ML</option>
  52. <option type="volume" value="l">L</option>
  53. <option type="volume" value="tsp">TSP</option>
  54. <option type="volume" value="tbsp">TBSP</option>
  55. <option type="volume" value="ozfl">OZ. FL</option>
  56. <option type="volume" value="cup">CUP</option>
  57. <option type="volume" value="pt">PT</option>
  58. <option type="volume" value="qt">QT</option>
  59. <option type="volume" value="gal">GAL</option>
  60. </optgroup>
  61. <optgroup label="LENGTH" style="display:none">
  62. <option type="length" value="mm">MM</option>
  63. <option type="length" value="cm">CM</option>
  64. <option type="length" value="m">M</option>
  65. <option type="length" value="in">IN</option>
  66. <option type="length" value="ft">FT</option>
  67. </optgroup>
  68. <optgroup label="OTHER" style="display:none">
  69. <option type="other" value="each">EACH</option>
  70. </optgroup>
  71. </select>
  72. </div>
  73. </div>
  74. </template>
  75. </div>