recipes.ejs 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <link rel="stylesheet" href="/recipesPage/recipes.css">
  5. <link rel="stylesheet" href="/shared/shared.css">
  6. </head>
  7. <body>
  8. <% include ../shared/header %>
  9. <% include ../shared/banner %>
  10. <div id="recipesStrand">
  11. <h1>Recipes</h1>
  12. <button id="recipeUpdate" onclick="recipesObj.updateRecipes()">Update Recipes</button>
  13. <a href="/inventory">Return to Inventory</a>
  14. <div id="recipesContainer"></div>
  15. </div>
  16. <div id="singleRecipeStrand" >
  17. <h1></h1>
  18. <button id="addButton">Add Ingredient</button>
  19. <button onclick="recipesObj.display()">Back to Recipes</button>
  20. <table>
  21. <thead>
  22. <tr>
  23. <th>Name</th>
  24. <th>Quantity</th>
  25. <th></th>
  26. </tr>
  27. </thead>
  28. <tbody></tbody>
  29. </table>
  30. </div>
  31. <script>let merchant = <%- JSON.stringify(merchant) %>;</script>
  32. <script src="https://unpkg.com/axios/dist/axios.min.js"></script>
  33. <script src="../shared/validation.js"></script>
  34. <script src="/recipesPage/recipes.js"></script>
  35. <script src="/recipesPage/singleRecipe.js"></script>
  36. <script src="/recipesPage/controller.js"></script>
  37. </body>
  38. </html>