Style Update

This commit is contained in:
Anthony Segura
2026-08-05 10:38:20 -05:00
parent 4b2407b6ca
commit 6c8e869132
5 changed files with 146 additions and 36 deletions

View File

@@ -1,22 +1,37 @@
<h1>Admin Panel</h1>
<!DOCTYPE html>
<html>
<head>
<title>Admin Panel</title>
<link rel="stylesheet" href="{{ url_for('static', filename='style.css') }}">
</head>
<body>
<div class="container">
<div class="header">
<h1>Admin Panel</h1>
<div>
Logged in as {{ session["user"] }} |
<a href="/logout">Logout</a>
</div>
</div>
<h3>Add Toner</h3>
<input id="name" placeholder="Toner Name">
<input id="qty" type="number" placeholder="Quantity">
<button onclick="addItem()">Add</button>
<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>
<h3>Inventory</h3>
<table>
<thead>
<tr>
<th>Toner</th>
<th>Quantity</th>
<th>Update</th>
</tr>
</thead>
<tbody id="adminInventory"></tbody>
</table>
</div>
<a href="/logout">Logout</a>
<script src="/static/script.js"></script>
<script src="{{ url_for('static', filename='script.js') }}"></script>
</body>
</html>

View File

@@ -2,19 +2,32 @@
<html>
<head>
<title>Toner Inventory</title>
<link rel="stylesheet" href="{{ url_for('static', filename='style.css') }}">
</head>
<body>
<h1>Toner Inventory</h1>
<table border="1">
<thead>
<tr>
<th>Name</th>
<th>Quantity</th>
</tr>
</thead>
<tbody id="inventory"></tbody>
</table>
<div class="container">
<div class="header">
<h1>Toner Inventory</h1>
<script src="/static/script.js"></script>
{% if session.get("user") %}
<div>
Logged in as {{ session["user"] }} |
<a href="/logout">Logout</a>
</div>
{% endif %}
</div>
<table>
<thead>
<tr>
<th>Toner</th>
<th>Quantity</th>
</tr>
</thead>
<tbody id="inventory"></tbody>
</table>
</div>
<script src="{{ url_for('static', filename='script.js') }}"></script>
</body>
</html>

View File

@@ -1,6 +1,18 @@
<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>
<!DOCTYPE html>
<html>
<head>
<title>Login</title>
<link rel="stylesheet" href="{{ url_for('static', filename='style.css') }}">
</head>
<body>
<div class="container" style="max-width: 400px;">
<h2>Admin Login</h2>
<form method="POST">
<input name="username" placeholder="Username" required style="width:100%; margin-bottom:10px;">
<input name="password" type="password" placeholder="Password" required style="width:100%; margin-bottom:10px;">
<button type="submit" style="width:100%;">Login</button>
</form>
</div>
</body>
</html>