recipes.ejs 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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. <% if(merchant.pos !== "none"){ %>
  13. <button id="recipeUpdate" onclick="recipesObj.updateRecipes()">Update Recipes</button>
  14. <% } %>
  15. <a href="/inventory">Return to Inventory</a>
  16. <div id="recipesContainer"></div>
  17. </div>
  18. <div id="singleRecipeStrand" >
  19. <h1></h1>
  20. <button id="addButton">Add Ingredient</button>
  21. <button onclick="recipesObj.display()">Back to Recipes</button>
  22. <table>
  23. <thead>
  24. <tr>
  25. <th>Name</th>
  26. <th>Quantity</th>
  27. <th></th>
  28. </tr>
  29. </thead>
  30. <tbody></tbody>
  31. </table>
  32. </div>
  33. <script>let merchant = <%- JSON.stringify(merchant) %>;</script>
  34. <script src="https://unpkg.com/axios/dist/axios.min.js"></script>
  35. <script src="../shared/validation.js"></script>
  36. <script src="/recipesPage/recipes.js"></script>
  37. <script src="/recipesPage/singleRecipe.js"></script>
  38. <script src="/recipesPage/controller.js"></script>
  39. </body>
  40. </html>