feat: Probably functional

This commit is contained in:
2026-04-09 14:06:19 +01:00
parent 5cf9895c79
commit 8c3c473ebf
10 changed files with 578 additions and 15 deletions

40
app/templates/add.html Normal file
View File

@@ -0,0 +1,40 @@
<!DOCTYPE html>
<html>
<head>
<title>Add Drink</title>
<link rel="stylesheet" href="{{ url_for('static', filename='style.css') }}">
<meta name="viewport" content="width=device-width, initial-scale=1">
</head>
<body>
<div class="container">
<h1>Add Drink</h1>
<form method="POST" action="/add">
<div class="form-group">
<label>Drink name</label>
<input type="text" name="name" required>
</div>
<div class="form-group">
<label>Quantity</label>
<input type="number" name="stock" min="1" required>
</div>
<div class="form-group">
<label>Price (€):</label>
<input type="number" step="0.01" name="price" required>
</div>
<div class="form-group">
<label>Name + Phone number</label>
<input type="text" name="phone_number" placeholder="Name +351..." required>
</div>
<button class="button" type="submit">Create drink</button>
</form>
<br>
<a href="/">Back</a>
</div>
</body>
</html>