recipeDetails.ejs 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <div id="recipeDetails">
  2. <div class="sidebarIconButtons">
  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="editRecipeBtn" 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. <% if(merchant.square === undefined){ %>
  16. <button id="removeRecipeBtn" class="iconButton">
  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. <div id="recipeIngredientList"></div>
  26. <div class="lineBorder"></div>
  27. <div id="recipePrice">
  28. <h3>PRICE</h3>
  29. <p></p>
  30. </div>
  31. <template id="recipeIngredient">
  32. <div class="choosable">
  33. <p></p>
  34. <p></p>
  35. </div>
  36. </template>
  37. </div>