editRecipe.ejs 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  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. <label>NAME:
  12. <input id="editRecipeName" type="text">
  13. </label>
  14. <label>CATEGORY:
  15. <input id="editRecipeCategory" type="text">
  16. </label>
  17. <h1 id="editRecipeNoName"></h1>
  18. <h3>INGREDIENTS</h3>
  19. <div id="editRecipeIngList"></div>
  20. <button id="addRecIng" class="iconButton">
  21. <svg width="30" height="30" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
  22. <circle cx="12" cy="12" r="10"></circle>
  23. <line x1="12" y1="8" x2="12" y2="16"></line>
  24. <line x1="8" y1="12" x2="16" y2="12"></line>
  25. </svg>
  26. </button>
  27. <div class="lineBorder"></div>
  28. <h3>PRICE</h3>
  29. <input id="editRecipePrice" type="number" min="0" step="0.01">
  30. <div class="lineBorder"></div>
  31. <div class="buttonBox">
  32. <button id="editRecipeSubmit" class="sidebarButton">UPDATE</button>
  33. <button id="editRecipeCancel" class="sidebarButton">CANCEL</button>
  34. </div>
  35. <template id="editRecipeIng">
  36. <div class="editRecipeIng">
  37. <button class="iconButton">
  38. <svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
  39. <polyline points="3 6 5 6 21 6"></polyline>
  40. <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>
  41. </svg>
  42. </button>
  43. <p></p>
  44. <select></select>
  45. <input type="number" min="0" step="0.01">
  46. </div>
  47. </template>
  48. </div>