recipes.ejs 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8">
  5. <title>The Subline</title>
  6. <link rel="icon" type="img/png" href="/shared/images/logo.png">
  7. <link rel="stylesheet" href="/recipesPage/recipes.css">
  8. <link rel="stylesheet" href="/shared/shared.css">
  9. </head>
  10. <body>
  11. <% include ../shared/header %>
  12. <% include ../shared/banner %>
  13. <div id="recipesStrand">
  14. <h1><span><%=merchant.name%></span> recipes</h1>
  15. <div>
  16. <% if(merchant.pos !== "none"){ %>
  17. <button class="button" id="recipeUpdate" onclick="recipesObj.updateRecipes()">Update Recipes</button>
  18. <% } %>
  19. <a class="button" href="/inventory">View Inventory</a>
  20. </div>
  21. <div id="recipesContainer"></div>
  22. </div>
  23. <div id="singleRecipeStrand" >
  24. <h1><span><%=merchant.name%></span>'s</h1>
  25. <h1 id="recipeName"></h1>
  26. <div class="buttonsDiv">
  27. <button class="button" id="addButton">Add Ingredient</button>
  28. <button class="button" onclick="recipesObj.display()">Back to Recipes</button>
  29. </div>
  30. <table>
  31. <thead>
  32. <tr>
  33. <th>Name</th>
  34. <th>Quantity</th>
  35. <th>Actions</th>
  36. </tr>
  37. </thead>
  38. <tbody></tbody>
  39. </table>
  40. </div>
  41. <script>let merchant = <%- JSON.stringify(merchant) %>;</script>
  42. <script src="https://unpkg.com/axios/dist/axios.min.js"></script>
  43. <script src="../shared/validation.js"></script>
  44. <script src="/recipesPage/recipes.js"></script>
  45. <script src="/recipesPage/singleRecipe.js"></script>
  46. <script src="/recipesPage/controller.js"></script>
  47. </body>
  48. </html>