merchantSetup.ejs 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  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 hide">
  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. <th class="anticolumn"></th>
  38. </tr>
  39. </thead>
  40. <tbody></tbody>
  41. </table>
  42. <button onclick="newIngredientField()">+</button>
  43. <button onclick="updateState(1)">Create Ingredients</button>
  44. <button onclick="updateState(-1)">Back</button>
  45. </div>
  46. <div id="createRecipes" class="container hide">
  47. <h1>Create your recipes</h1>
  48. <h2 id="recipeName"></h2>
  49. <table id="recipes">
  50. <thead>
  51. <tr>
  52. <th>Ingredient</th>
  53. <th>Quantity</th>
  54. </tr>
  55. </thead>
  56. <tbody></tbody>
  57. </table>
  58. <button onclick="addRecipeIngredientField()">+</button>
  59. <button id="next"></button>
  60. <button id="previous" onclick="changeRecipe(-1)">Previous Recipe</button>
  61. </div>
  62. <script>
  63. let ingredients = <%- JSON.stringify(ingredients) %>;
  64. let recipes = <%- JSON.stringify(recipes) %>;
  65. </script>
  66. <script src="https://unpkg.com/axios/dist/axios.min.js"></script>
  67. <script src="/merchantSetupPage/merchantSetup.js"></script>
  68. </body>
  69. </html>