dashboard.ejs 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142
  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 href="https://fonts.googleapis.com/css?family=Saira&display=swap" rel="stylesheet">
  11. </head>
  12. <body>
  13. <% include ./components/menu %>
  14. <div class="contentBlock">
  15. <% include ../shared/banner %>
  16. <div id="homeStrand" class="strand">
  17. <h1 class="strandTitle">Dashboard</h1>
  18. <div class="flexRow">
  19. <div id="revenueCard" class="card">
  20. <p>Total Revenue (month)</p>
  21. <p id="revenue"></p>
  22. <div id="revenueChange">
  23. <img alt="revenue">
  24. <p></p>
  25. </div>
  26. </div>
  27. <div id="graphCard" class="card">
  28. <canvas id="graphCanvas">
  29. </div>
  30. </div>
  31. <div class="flexRow">
  32. <div id="inventoryCheckCard" class="card">
  33. <p>Inventory Check</p>
  34. <ul></ul>
  35. <button class="button" onclick="homeStrandObj.submitInventoryCheck()">Update</button>
  36. </div>
  37. <div id=popularIngredientsCard class="card">
  38. <p>Most Popular Ingredients (month)</p>
  39. <canvas id="popularCanvas"></canvas>
  40. </div>
  41. </div>
  42. </div>
  43. <div id="ingredientsStrand" class="strand">
  44. <div class="strandHead">
  45. <h1 class="strandTitle">Ingredient Inventory</h1>
  46. <button class="button" onclick="addIngredientsComp.display()">
  47. <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>
  48. add
  49. </button>
  50. </div>
  51. <div id="categoryList"></div>
  52. </div>
  53. <div id="recipeBookStrand" class="strand">
  54. <div class="strandHead">
  55. <h1 class="strandTitle">Recipe Book</h1>
  56. <% if(merchant.pos === "none"){ %>
  57. <button class="button" onclick="recipeBookStrandObj.displayAddRecipe()">
  58. <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>
  59. add
  60. </button>
  61. <% } %>
  62. </div>
  63. <div id="recipeList"></div>
  64. </div>
  65. <div id="ordersStrand" class="strand">
  66. <div class="strandHead">
  67. <h1 class="strandTitle">Orders</h1>
  68. <button class="button" onclick="newOrderComp.display()">
  69. <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>
  70. add
  71. </button>
  72. </div>
  73. <table id="orderList">
  74. <thead>
  75. <tr>
  76. <th>ID #</th>
  77. <th>Item Count</th>
  78. <th>Date</th>
  79. <th>Cost</th>
  80. </tr>
  81. </thead>
  82. <tbody></tbody>
  83. </table>
  84. <template id="order">
  85. <tr class="order">
  86. <td></td>
  87. <td></td>
  88. <td></td>
  89. <td></td>
  90. </div>
  91. </template>
  92. </div>
  93. </div>
  94. <div id="sidebarDiv" class="sidebarHide">
  95. <% include ./components/addIngredients %>
  96. <% include ./components/ingredientDetails %>
  97. <% include ./components/recipeDetails %>
  98. <% include ./components/addRecipe %>
  99. <% include ./components/newOrder %>
  100. </div>
  101. <script>let merchant = <%- JSON.stringify(merchant) %>;</script>
  102. <script>let transactions = <%- JSON.stringify(transactions) %>;</script>
  103. <script src="../shared/graphs.js"></script>
  104. <script src="/dashboardPage/home.js"></script>
  105. <script src="/dashboardPage/ingredients.js"></script>
  106. <script src="/dashboardPage/recipeBook.js"></script>
  107. <script src="/dashboardPage/components/components.js"></script>
  108. <script src="/dashboardPage/controller.js"></script>
  109. <script src="/dashboardPage/orders.js"></script>
  110. <script src="../shared/validation.js"></script>
  111. <noscript>Please turn on javascript for this site to work properly</noscript>
  112. </body>
  113. </html>