| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232 |
- <!DOCTYPE html>
- <html>
- <head>
- <meta charset="UTF-8">
- <title>The Subline</title>
- <link rel="icon" type="img/png" href="/shared/images/logo.png">
- <link rel="stylesheet" href="/shared/shared.css">
- <link rel="stylesheet" href="/dashboardPage/dashboard.css">
- <link rel="stylesheet" href="/dashboardPage/components/components.css">
- <link href="https://fonts.googleapis.com/css?family=Saira&display=swap" rel="stylesheet">
- </head>
- <body>
- <% include ./components/menu %>
- <div class="contentBlock">
- <% include ../shared/banner %>
-
- <div id="homeStrand" class="strand">
- <h1 class="strandTitle">Dashboard</h1>
- <div class="flexRow">
- <div id="revenueCard" class="card">
- <p>Total Revenue (month)</p>
- <p id="revenue"></p>
- <div id="revenueChange">
- <img alt="revenue">
- <p></p>
- </div>
- </div>
- <div id="graphCard" class="card">
- <canvas id="graphCanvas">
- </div>
- </div>
- <div class="flexRow">
- <div id="inventoryCheckCard" class="card">
- <p>Inventory Check</p>
- <ul></ul>
- <button class="button" onclick="homeStrandObj.submitInventoryCheck()">Update</button>
- </div>
- <div id=popularIngredientsCard class="card">
- <p>Most Popular Ingredients (month)</p>
- <canvas id="popularCanvas"></canvas>
- </div>
- </div>
- <template id="ingredientCheck">
- <li class="ingredientCheck flexRow">
- <p></p>
- <div class="numberInput">
- <button>-</button>
- <input type="number" min="0" step="0.01">
- <button>+</button>
- </div>
-
- <p></p>
- </li>
- </template>
- </div>
- <div id="ingredientsStrand" class="strand">
- <div class="strandHead">
- <h1 class="strandTitle">Ingredient Inventory</h1>
- <button class="button" onclick="addIngredientsComp.display()">
- <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>
- add
- </button>
- </div>
- <div class="searchBar">
- <div class="searchAndIcon">
- <svg width="30" height="30" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
- <circle cx="11" cy="11" r="8"></circle>
- <line x1="21" y1="21" x2="16.65" y2="16.65"></line>
- </svg>
- <input id="ingredientSearch" type="text" placeholder="FILTER" oninput="ingredientsStrandObj.search()">
- </div>
- <button id="ingredientClearButton" class="clearButton" onclick="ingredientsStrandObj.clearSorting()" style="display: none;">
- <svg width="30" height="30" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
- <circle cx="12" cy="12" r="10"></circle>
- <line x1="15" y1="9" x2="9" y2="15"></line>
- <line x1="9" y1="9" x2="15" y2="15"></line>
- </svg>
- </button>
- <select id="ingredientSelect" onchange="ingredientsStrandObj.sort(this.value)">Sort Bys:
- <option value="" selected disabled>Sort By:</option>
- <option value="_name">Ingredient</option>
- <option value="category">Category</option>
- <option value="unit">Unit of Measurement</option>
- </select>
- </div>
- <div id="categoryList"></div>
- <template id="categoryDiv">
- <div class="categoryDiv">
- <div>
- <p></p>
- <button>
- <svg width="32" height="32" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
- <polyline points="6 9 12 15 18 9"></polyline>
- </svg>
- </button>
- </div>
- <div class="ingredientsDiv"></div>
- </div>
- </template>
- <template id="ingredient">
- <div class="ingredient">
- <p></p>
- <hr class="ingredientSpacer">
- <p></p>
- </div>
- </template>
- </div>
- <div id="recipeBookStrand" class="strand">
- <div class="strandHead">
- <h1 class="strandTitle">Recipe Book</h1>
- <% if(merchant.pos === "none"){ %>
- <button class="button" onclick="newRecipeComp.display()">
- <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>
- add
- </button>
- <% } %>
- </div>
- <div class="searchBar">
- <div class="searchAndIcon">
- <svg width="30" height="30" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
- <circle cx="11" cy="11" r="8"></circle>
- <line x1="21" y1="21" x2="16.65" y2="16.65"></line>
- </svg>
- <input id="recipeSearch" type="text" placeholder="FILTER" oninput="recipeBookStrandObj.search()">
- </div>
- <button id="recipeClearButton" class="clearButton" onclick="recipeBookStrandObj.clearSorting()" style="display: none;">
- <svg width="30" height="30" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
- <circle cx="12" cy="12" r="10"></circle>
- <line x1="15" y1="9" x2="9" y2="15"></line>
- <line x1="9" y1="9" x2="15" y2="15"></line>
- </svg>
- </button>
- </div>
- <div id="recipeList"></div>
- </div>
- <div id="ordersStrand" class="strand">
- <div class="strandHead">
- <h1 class="strandTitle">Orders</h1>
- <button class="button" onclick="newOrderComp.display()">
- <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>
- add
- </button>
- </div>
- <div id="orderList"></div>
- <template id="order">
- <div class="rowItem">
- <p></p>
- <p></p>
- <p></p>
- <p></p>
- </div>
- </template>
- </div>
- </div>
- <div id="sidebarDiv" class="sidebarHide">
- <% include ./components/addIngredients %>
- <% include ./components/newIngredient %>
- <% include ./components/ingredientDetails %>
- <% include ./components/recipeDetails %>
- <% include ./components/addRecipe %>
- <% include ./components/orderDetails %>
- <% include ./components/newOrder %>
- </div>
- <% include ../shared/loader %>
- <script src="/dashboardPage/Merchant.js"></script>
- <script>
- let merchant = new Merchant(
- <%- JSON.stringify(merchant) %>,
- <%- JSON.stringify(transactions) %>
- );
- </script>
- <script src="../shared/graphs.js"></script>
- <script src="/dashboardPage/home.js"></script>
- <script src="/dashboardPage/ingredients.js"></script>
- <script src="/dashboardPage/recipeBook.js"></script>
- <script src="/dashboardPage/components/components.js"></script>
- <script src="/dashboardPage/controller.js"></script>
- <script src="/dashboardPage/orders.js"></script>
- <script src="../shared/validation.js"></script>
- <noscript>Please turn on javascript for this site to work properly</noscript>
- </body>
- </html>
|