dashboard.ejs 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  1. <!DOCTYPE html>
  2. <html>
  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="/shared/shared.css">
  8. <link rel="stylesheet" href="/dashboardPage/dashboard.css">
  9. <link rel="stylesheet" href="/dashboardPage/components/components.css">
  10. <link rel="stylesheet" href="/shared/menu.css">
  11. </head>
  12. <body>
  13. <% include ../shared/menu %>
  14. <div class="contentBlock">
  15. <% include ../shared/banner %>
  16. <div id="homeStrand" class="strand">
  17. <h1>Dashboard</h1>
  18. <div class="flexRow">
  19. <div class="flexColumn">
  20. <div id="revenueCard" class="card">
  21. <p>Total Revenue (month)</p>
  22. <p id="revenue"></p>
  23. <div id="revenueChange">
  24. <img alt="revenue">
  25. <p></p>
  26. </div>
  27. </div>
  28. </div>
  29. <div id="graphCard" class="card">
  30. <canvas id="graphCanvas">
  31. </div>
  32. </div>
  33. <div class="flexRow">
  34. <div id="inventoryCheckCard" class="card">
  35. <p>Inventory Check</p>
  36. <ul></ul>
  37. <button class="button" onclick="homeStrandObj.updateInventory()">Update</button>
  38. </div>
  39. <div id=popularIngredientsCard class="card">
  40. <p>Most Popular Ingredients</p>
  41. <canvas id="popularCanvas"></canvas>
  42. </div>
  43. </div>
  44. </div>
  45. <div id="ingredientsStrand" class="strand">
  46. <div id="ingredientHead">
  47. <h1>Ingredient Inventory</h1>
  48. <button class="button" onclick="ingredientsStrandObj.displayAddIngredient()">
  49. <svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><line x1="12" y1="5" x2="12" y2="19"></line><line x1="5" y1="12" x2="19" y2="12"></line></svg>
  50. add
  51. </button>
  52. </div>
  53. </div>
  54. <div id="recipeBookStrand" class="strand">
  55. <div id="recipeHead">
  56. <h1>Recipe Book</h1>
  57. <% if(merchant.pos === "none"){ %>
  58. <button class="button" onclick="recipeBookStrandObj.displayAddRecipe()">
  59. <svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><line x1="12" y1="5" x2="12" y2="19"></line><line x1="5" y1="12" x2="19" y2="12"></line></svg>
  60. add
  61. </button>
  62. <% } %>
  63. </div>
  64. <div id="recipeList"></div>
  65. </div>
  66. <div id="ordersStrand" class="strand">
  67. <h1>Orders</h1>
  68. </div>
  69. </div>
  70. <% include ./components/addIngredient %>
  71. <% include ./components/ingredientDetails %>
  72. <% include ./components/recipeDetails %>
  73. <% include ./components/addRecipe %>
  74. <script>let merchant = <%- JSON.stringify(merchant) %>;</script>
  75. <script>let transactions = <%- JSON.stringify(transactions) %>;</script>
  76. <script src="../shared/graphs.js"></script>
  77. <script src="/dashboardPage/home.js"></script>
  78. <script src="/dashboardPage/ingredients.js"></script>
  79. <script src="/dashboardPage/recipeBook.js"></script>
  80. <script src="/dashboardPage/controller.js"></script>
  81. <script src="/dashboardPage/orders.js"></script>
  82. <script src="../shared/validation.js"></script>
  83. </body>
  84. </html>