recipes.ejs 1.6 KB

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