merchantSetup.ejs 3.1 KB

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