This commit is contained in:
Anthony Segura
2026-08-05 10:35:03 -05:00
parent 62e886240f
commit 4b2407b6ca
6 changed files with 203 additions and 0 deletions

22
templates/admin.html Normal file
View File

@@ -0,0 +1,22 @@
<h1>Admin Panel</h1>
<h3>Add Toner</h3>
<input id="name" placeholder="Toner Name">
<input id="qty" type="number" placeholder="Quantity">
<button onclick="addItem()">Add</button>
<h3>Update Inventory</h3>
<table border="1">
<thead>
<tr>
<th>Name</th>
<th>Quantity</th>
<th>Update</th>
</tr>
</thead>
<tbody id="adminInventory"></tbody>
</table>
<a href="/logout">Logout</a>
<script src="/static/script.js"></script>

20
templates/index.html Normal file
View File

@@ -0,0 +1,20 @@
<!DOCTYPE html>
<html>
<head>
<title>Toner Inventory</title>
</head>
<body>
<h1>Toner Inventory</h1>
<table border="1">
<thead>
<tr>
<th>Name</th>
<th>Quantity</th>
</tr>
</thead>
<tbody id="inventory"></tbody>
</table>
<script src="/static/script.js"></script>
</body>
</html>

6
templates/login.html Normal file
View File

@@ -0,0 +1,6 @@
<form method="POST">
<h2>Admin Login</h2>
<input name="username" placeholder="Username" required>
<input name="password" type="password" placeholder="Password" required>
<button type="submit">Login</button>
</form>