merchantSetup.ejs 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <link rel="stylesheet" href="/merchantSetupPage/merchantSetup.css">
  5. <link rel="stylesheet" href="/shared/shared.css">
  6. </head>
  7. <body>
  8. <% include ../shared/header %>
  9. <div id="addIngredients" class="container">
  10. <h1>Add your first set of ingredients to your pantry</h1>
  11. <h3>Choose from our list of ingredients</h3>
  12. <h5>(Can't find something? You can create it in the next step)</h5>
  13. <table id="ingredient-display">
  14. <thead>
  15. <tr>
  16. <th>Add</th>
  17. <th>Ingredient</th>
  18. <th>Category</th>
  19. <th>Quantity</th>
  20. <th>Unit</th>
  21. </tr>
  22. </thead>
  23. <tbody></tbody>
  24. </table>
  25. <button onclick="updateState(1)">Next</button>
  26. </div>
  27. <div id="newIngredients" class="container">
  28. <h1>Add your first set of ingredients to your pantry</h1>
  29. <h3>Create your own ingredients</h3>
  30. <table id="inputField">
  31. <thead>
  32. <tr>
  33. <th>Ingredient Name</th>
  34. <th>Category</th>
  35. <th>Quantity</th>
  36. <th>Measurement Unit</th>
  37. </tr>
  38. </thead>
  39. <tbody></tbody>
  40. </table>
  41. <button onclick="newIngredientField()">+</button>
  42. <button onclick="updateState(1)">Create Ingredients</button>
  43. <button onclick="updateState(-1)">Back</button>
  44. </div>
  45. <div id="createRecipes" class="container">
  46. <h1>Create your recipes</h1>
  47. <h2 id="recipeName"></h2>
  48. <table id="recipes">
  49. <thead>
  50. <tr>
  51. <th>Ingredient</th>
  52. <th>Quantity</th>
  53. </tr>
  54. </thead>
  55. <tbody></tbody>
  56. </table>
  57. <button onclick="addRecipeIngredientField()">+</button>
  58. <button id="next"></button>
  59. <button id="previous" onclick="changeRecipe(-1)">Previous Recipe</button>
  60. </div>
  61. <script>
  62. let ingredients = <%- JSON.stringify(ingredients) %>;
  63. let recipes = <%- JSON.stringify(recipes) %>;
  64. </script>
  65. <script src="https://unpkg.com/axios/dist/axios.min.js"></script>
  66. <script src="/merchantSetupPage/merchantSetup.js"></script>
  67. </body>
  68. </html>