20 lines
655 B
HTML
20 lines
655 B
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<title>Add Weight</title>
|
|
<script src="https://unpkg.com/htmx.org@1.9.10"></script>
|
|
<link rel="stylesheet" href="/static/css/style.css">
|
|
</head>
|
|
<body>
|
|
<h1>Add Weight</h1>
|
|
<form hx-post="/input" hx-target="#result" hx-swap="innerHTML">
|
|
<label for="date">Date:</label>
|
|
<input type="date" id="date" name="date" required><br>
|
|
<label for="weight">Weight (kg):</label>
|
|
<input type="number" step="0.1" id="weight" name="weight" required><br>
|
|
<button type="submit">Submit</button>
|
|
</form>
|
|
<div id="result"></div>
|
|
<a href="/">Back to Tracker</a>
|
|
</body>
|
|
</html> |