| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392 |
- <!DOCTYPE html>
- <html>
- <head>
- <meta charset="UTF-8">
- <meta content="width=device-width, initial-scale=1" name="viewport" />
- <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/sidebars/sidebars.css">
- <link href="https://fonts.googleapis.com/css?family=Saira&display=swap" rel="stylesheet">
- </head>
- <body>
- <div id="menu" class="menu">
- <div id="max" class="menuHead">
- <a href="/">
- <img class="menuLogo" src="/shared/images/logo.png" alt="The Subline">
- <p>THE SUBLINE</p>
- </a>
-
- <button class="menuShifter" onclick="changeMenu()">≡</button>
- </div>
-
- <div id="min" class="menuHead menuHeadMin">
- <a href="/">
- <img class="menuLogoMin" src="/shared/images/logo.png" alt="The Subline">
- </a>
-
- <button id="menuShifter2" onclick="changeMenu()">≡</button>
- </div>
-
- <button class="menuButton active" id="homeBtn" class="active" onclick="changeStrand(1)">
- <svg width="25" height="25" viewBox="0 0 24 24" fill="none" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
- <path d="M3 9l9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z"></path>
- <polyline points="9 22 9 12 15 12 15 22"></polyline>
- </svg>
- <p>HOME</p>
- </button>
-
- <button class="menuButton" id="ingredientsBtn" onclick="changeStrand(2)">
- <svg width="25" height="25" viewBox="0 0 24 24" fill="none" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
- <polyline points="21 8 21 21 3 21 3 8"></polyline>
- <rect x="1" y="3" width="22" height="5"></rect>
- <line x1="10" y1="12" x2="14" y2="12"></line>
- </svg>
- <p>INGREDIENTS</p>
- </button>
-
- <button class="menuButton" id="recipeBookBtn" onclick="changeStrand(3)">
- <svg width="25" height="25" viewBox="0 0 24 24" fill="none" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
- <path d="M4 19.5A2.5 2.5 0 0 1 6.5 17H20"></path>
- <path d="M6.5 2H20v20H6.5A2.5 2.5 0 0 1 4 19.5v-15A2.5 2.5 0 0 1 6.5 2z"></path>
- </svg>
- <p>RECIPE BOOK</p>
- </button>
-
- <button class="menuButton" id="ordersBtn" onclick="changeStrand(4)">
- <svg width="25" height="25" viewBox="0 0 24 24" fill="none" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
- <circle cx="9" cy="21" r="1"></circle>
- <circle cx="20" cy="21" r="1"></circle>
- <path d="M1 1h4l2.68 13.39a2 2 0 0 0 2 1.61h9.72a2 2 0 0 0 2-1.61L23 6H6"></path>
- </svg>
- <p>ORDERS</p>
- </button>
- <button class="menuButton" id="transactionsBtn" onclick="changeStrand(5)">
- <svg width="25" height="25" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
- <rect x="1" y="4" width="22" height="16" rx="2" ry="2"></rect>
- <line x1="1" y1="10" x2="23" y2="10"></line>
- </svg>
- <p>TRANSACTIONS</p>
- </button>
-
- <a class="menuButton" href="/logout">
- <svg width="25" height="25" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
- <path d="M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4"></path>
- <polyline points="16 17 21 12 16 7"></polyline>
- <line x1="21" y1="12" x2="9" y2="12"></line>
- </svg>
- <p>LOGOUT</p>
- </a>
- </div>
- <div id="mobileMenuSelector" class="mobileMenuSelector" onclick="openMenu()">≡</div>
- <button id="sidebarCloser" style="display: none;" onclick="closeSidebar()">
- <svg width="30" height="30" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
- <line x1="18" y1="6" x2="6" y2="18"></line>
- <line x1="6" y1="6" x2="18" y2="18"></line>
- </svg>
- </button>
- <div class="contentBlock">
- <% include ../shared/banner %>
-
- <div id="homeStrand" class="strand">
- <div class="strandHead">
- <h1 class="strandTitle">DASHBOARD</h1>
- </div>
- <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 mobileHide" onclick="addIngredientsComp.display()">NEW</button>
- </div>
- <div class="searchBar">
- <div class="searchAndIcon">
- <svg class="mobileHide" 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" class="mobileHide" 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 mobileHide">
- <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 mobileHide" onclick="newRecipeComp.display()">NEW</button>
- <% }else if(merchant.pos === "clover"){ %>
- <button class="button mobileHide" onclick="recipeBookStrandObj.posUpdate()">UPDATE</button>
- <% } %>
- </div>
- <div class="searchBar">
- <div class="searchAndIcon">
- <svg class="mobileHide" 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>
- <template id="recipe">
- <div class="itemDisplay">
- <p></p>
- <p></p>
- </div>
- </template>
- </div>
- <div id="ordersStrand" class="strand">
- <div class="strandHead">
- <h1 class="strandTitle">ORDERS</h1>
- <button class="button mobileHide" onclick="newOrderComp.display()">NEW</button>
- </div>
- <form onsubmit="ordersStrandObj.submitFilter()" class="filterForm">
- <h2>Search</h2>
- <div>
- <div class="dropdown">
- <div class="dropdownHead">
- <p>DATES</p>
- <button id="dateFilterBtnOrder">
- <svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
- <polyline points="6 9 12 15 18 9"></polyline>
- </svg>
- </button>
- </div>
- <div class="dropdownContents" id="dateDropdownOrder">
- <label>From:
- <input id="orderFilDate1"type="date">
- </label>
-
- <label>To:
- <input id="orderFilDate2" type="date">
- </label>
- </div>
- </div>
- <div class="dropdown">
- <div class="dropdownHead">
- <p>INGREDIENTS</p>
- <button id="ingredientFilterBtn">
- <svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
- <polyline points="6 9 12 15 18 9"></polyline>
- </svg>
- </button>
- </div>
- <div class="dropdownContents" id="ingredientDropdown"></div>
- </div>
- </div>
- <input class="button" type="submit" value="SUBMIT">
- </form>
- <div id="orderList"></div>
- <template id="order">
- <div class="itemDisplay">
- <p></p>
- <p></p>
- <p></p>
- <p></p>
- </div>
- </template>
- </div>
- <div id="transactionsStrand" class="strand transactions">
- <div class="strandHead">
- <h1 class="strandTitle">TRANSACTIONS</h1>
- <button class="button mobileHide" onclick="newTransactionComp.display()">NEW</button>
- </div>
- <form onsubmit="transactionsStrandObj.submitFilter()" class="filterForm">
- <h2>Search</h2>
- <div>
- <div class="dropdown">
- <div class="dropdownHead">
- <p>DATES</p>
- <button id="dateFilterBtn">
- <svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
- <polyline points="6 9 12 15 18 9"></polyline>
- </svg>
- </button>
- </div>
- <div class="dropdownContents" id="dateDropdown">
- <label>From:
- <input id="transFilDate1"type="date">
- </label>
-
- <label>To:
- <input id="transFilDate2" type="date">
- </label>
- </div>
-
- </div>
- <div class="dropdown">
- <div class="dropdownHead">
- <p>RECIPES</p>
- <button id="recipeFilterBtn">
- <svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
- <polyline points="6 9 12 15 18 9"></polyline>
- </svg>
- </button>
- </div>
- <div class="dropdownContents" id="recipeDropDown"></div>
- </div>
- </div>
- <input class="button" type="submit" value="SUBMIT">
- </form>
- <div id="transactionsList" class="transactionsList"></div>
- <template id="transaction">
- <div class="itemDisplay">
- <p></p>
- <p></p>
- <p></p>
- </div>
- </template>
- </div>
- </div>
- <div id="sidebarDiv" class="sidebarHide">
- <% include ./sidebars/addIngredients %>
- <% include ./sidebars/newIngredient %>
- <% include ./sidebars/ingredientDetails %>
- <% include ./sidebars/recipeDetails %>
- <% include ./sidebars/addRecipe %>
- <% include ./sidebars/orderDetails %>
- <% include ./sidebars/newOrder %>
- <% include ./sidebars/transactionDetails %>
- <% include ./sidebars/newTransaction %>
- </div>
- <% include ../shared/loader %>
- <script>
- let data = {
- merchant: <%- JSON.stringify(merchant) %>,
- transactions: <%- JSON.stringify(transactions) %>
- }
- </script>
- <script src="./dashboardPage/bundle.js"></script>
- <noscript>Please turn on javascript for this site to work properly</noscript>
- </body>
- </html>
|