init
This commit is contained in:
22
templates/admin.html
Normal file
22
templates/admin.html
Normal 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
20
templates/index.html
Normal 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
6
templates/login.html
Normal 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>
|
||||
Reference in New Issue
Block a user