inventory.ejs 1.0 KB

12345678910111213141516171819202122232425262728293031
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <link rel="stylesheet" href="/inventory/inventory.css">
  5. <link rel="stylesheet" href="/shared/shared.css">
  6. </head>
  7. <body>
  8. <% include ../shared/header %>
  9. <div class="container">
  10. <h1><%= merchant.name %> inventory</h1>
  11. <input id="filter" onkeyup="filter()" type="text" placeholder="Start typing to filter">
  12. <table>
  13. <thead>
  14. <tr>
  15. <th onclick="sortIngredients('name')">Item</th>
  16. <th onclick="sortIngredients('category')">Category</th>
  17. <th onclick="sortIngredients('quantity')">Quantity</th>
  18. <th onclick="sortIngredients('unit')">Unit</th>
  19. </tr>
  20. <tbody></tbody>
  21. </thead>
  22. </table>
  23. </div>
  24. <script>let merchant = <%- JSON.stringify(merchant) %>;</script>
  25. <script src="/inventory/inventory.js"></script>
  26. </body>
  27. </html>