merchantSetup.ejs 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127
  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="basicInfoStrand" class="container">
  12. <h1>Basic Information</h1>
  13. <form onsubmit="basicInfoObj.submit()">
  14. <label id="nameLabel">Name
  15. <input id="regName" type="text">
  16. </label>
  17. <label>Email
  18. <input id="regEmail" type="email" required>
  19. </label>
  20. <label>Password
  21. <input id="regPass" type="password" required>
  22. </label>
  23. <label>Confirm Password
  24. <input id="regConfirmPass" type="password" required>
  25. </label>
  26. <input type="Submit" value="Next">
  27. </form>
  28. </div>
  29. <div id="addIngredientsStrand" class="container">
  30. <h1>Add your first set of ingredients to your pantry</h1>
  31. <h3>Choose from our list of ingredients</h3>
  32. <h5>(Can't find something? You can create it in the next step)</h5>
  33. <table id="ingredient-display">
  34. <thead>
  35. <tr>
  36. <th>Add</th>
  37. <th>Ingredient</th>
  38. <th>Category</th>
  39. <th>Quantity</th>
  40. <th>Unit</th>
  41. </tr>
  42. </thead>
  43. <tbody></tbody>
  44. </table>
  45. <button onclick="addIngredientsObj.submit()">Next</button>
  46. </div>
  47. <div id="createIngredientsStrand" class="container">
  48. <h1>Add your first set of ingredients to your pantry</h1>
  49. <h3>Create your own ingredients</h3>
  50. <table id="inputField">
  51. <thead>
  52. <tr>
  53. <th>Ingredient Name</th>
  54. <th>Category</th>
  55. <th>Quantity</th>
  56. <th>Measurement Unit</th>
  57. <th class="anticolumn"></th>
  58. </tr>
  59. </thead>
  60. <tbody></tbody>
  61. </table>
  62. <button onclick="createIngredientsObj.newIngredientField()">+</button>
  63. <button onclick="createIngredientsObj.submit()">Create Ingredients</button>
  64. <button onclick="addIngredientsObj.display()">Back</button>
  65. </div>
  66. <div id="nameRecipesStrand" class="container">
  67. <h1>Name your recipes</h1>
  68. <button onclick="nameRecipesObj.addNameField()">Add Recipe</button>
  69. <div id="nameList"></div>
  70. <button onclick="nameRecipesObj.submit()">Submit</button>
  71. </div>
  72. <div id="createRecipesStrand" class="container">
  73. <h1>Add ingredients to your recipes</h1>
  74. <h2 id="recipeName"></h2>
  75. <table id="recipeTable">
  76. <thead>
  77. <tr>
  78. <th>Ingredient</th>
  79. <th>Quantity</th>
  80. <th class="anticolumn"></th>
  81. </tr>
  82. </thead>
  83. <tbody></tbody>
  84. </table>
  85. <button onclick="createRecipesObj.addRecipeIngredientField()">+</button>
  86. <button id="next"></button>
  87. <button id="previous" onclick="createRecipesObj.changeRecipe(-1)">Previous Recipe</button>
  88. </div>
  89. <script>
  90. let ingredients = <%- JSON.stringify(ingredients) %>;
  91. let recipes = <%- JSON.stringify(recipes) %>;
  92. </script>
  93. <script src="https://unpkg.com/axios/dist/axios.min.js"></script>
  94. <script src="/shared/validation.js"></script>
  95. <script src="/merchantSetupPage/basicInfo.js"></script>
  96. <script src="/merchantSetupPage/addIngredients.js"></script>
  97. <script src="/merchantSetupPage/createIngredients.js"></script>
  98. <script src="/merchantSetupPage/nameRecipes.js"></script>
  99. <script src="/merchantSetupPage/createRecipes.js"></script>
  100. <script src="/merchantSetupPage/controller.js"></script>
  101. </body>
  102. </html>