recipeDetails.ejs 3.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. <div id="recipeDetails">
  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="recipeDetailsComp.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. <% if(merchant.pos === "none"){ %>
  16. <button class="iconButton" onclick="recipeDetailsComp.remove()">
  17. <svg width="30" height="30" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
  18. <polyline points="3 6 5 6 21 6"></polyline>
  19. <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>
  20. </svg>
  21. </button>
  22. <% } %>
  23. </div>
  24. <h1 id="recipeName"></h1>
  25. <input id="recipeNameIn" type="text" style="display: none;">
  26. <div id="recipeIngredientList"></div>
  27. <button id="addRecIng" class="iconButton" onclick="recipeDetailsComp.displayAddIngredient()" style="display: none;">
  28. <svg width="30" height="30" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
  29. <circle cx="12" cy="12" r="10"></circle>
  30. <line x1="12" y1="8" x2="12" y2="16"></line>
  31. <line x1="8" y1="12" x2="16" y2="12"></line>
  32. </svg>
  33. </button>
  34. <div class="lineBorder"></div>
  35. <div id="recipePrice">
  36. <h3>Price</h3>
  37. <p></p>
  38. <input type="number" min="0" step="0.01" style="display: none;">
  39. </div>
  40. <button id="recipeUpdate" onclick="recipeDetailsComp.update()" class="button" style="display: none;">Update</button>
  41. <template id="recipeIngredient">
  42. <div class="recipeIngredient">
  43. <p></p>
  44. <input type="number" min="0" step="0.01" style="display: none;">
  45. <p></p>
  46. <button class="iconButton" style="display: none;">
  47. <svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
  48. <polyline points="3 6 5 6 21 6"></polyline>
  49. <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>
  50. </svg>
  51. </button>
  52. </div>
  53. </template>
  54. <template id="addRecIngredient">
  55. <div class="addRecIngredient">
  56. <select></select>
  57. <input type="number" min="0" step="0.01">
  58. </div>
  59. </template>
  60. </div>