go_templates/views/forms/exercise_enter_form.html
2024-11-02 14:09:44 +03:00

23 lines
945 B
HTML

<!doctype html>
<script src="https://unpkg.com/htmx.org@2.0.3"></script>
<link rel="stylesheet" href="/resources/demos/style.css" />
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Exercise form</title>
</head>
<body>
<h1>Please, enter exercise details</h1>
<form>
<label for="exercise-name-id">Exercise name</label><br>
<input type="text" name="exercise-name" id="exercise-name-id"><br>
<label for="attempt-weight-id">Weight</label><br>
<input type="text" name="attempt-weight-name" id="attempt-weight-id"><br>
<label for="attempt-reps-id">Reps</label><br>
<input type="text" name="attempt-reps-name" id="attempt-reps-id"><br>
<input hx-post="/exercises/form/submit" type="submit" value="Submit" hx-target="#exercise-table-id">
</form>
<div id="exercise-table-id"></div>
</body>
</html>