[d659b83] | 1 | <!DOCTYPE html>
|
---|
| 2 | <html xmlns:th="http://www.thymeleaf.org">
|
---|
| 3 | <head>
|
---|
| 4 | <meta charset="UTF-8">
|
---|
| 5 | <title>Add Exercise</title>
|
---|
| 6 |
|
---|
| 7 | <!-- Bootstrap CSS -->
|
---|
| 8 | <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css"
|
---|
| 9 | integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
|
---|
| 10 | </head>
|
---|
| 11 | <body>
|
---|
| 12 | <div th:replace="appBar"></div>
|
---|
| 13 |
|
---|
| 14 | <div class="container mt-4">
|
---|
| 15 | <h2>Add Exercise</h2>
|
---|
| 16 |
|
---|
| 17 | <form action="/exercises/addExercise" method="post" class="col-md-6">
|
---|
| 18 | <div class="form-group">
|
---|
| 19 | <label for="name">Name:</label>
|
---|
| 20 | <input type="text" id="name" name="name" class="form-control" required>
|
---|
| 21 | </div>
|
---|
| 22 |
|
---|
| 23 | <div class="form-group">
|
---|
| 24 | <label for="type">Type:</label>
|
---|
| 25 | <select id="type" name="type" class="form-control" required>
|
---|
| 26 | <option value="Cardio">Cardio</option>
|
---|
| 27 | <option value="Bodybuilding">Bodybuilding</option>
|
---|
| 28 | </select>
|
---|
| 29 | </div>
|
---|
| 30 |
|
---|
| 31 | <button type="submit" class="btn btn-primary">Add Exercise</button>
|
---|
| 32 | </form>
|
---|
| 33 |
|
---|
| 34 | <a href="/exercises" class="mt-3 btn btn-secondary">Back to Exercise List</a>
|
---|
| 35 | </div>
|
---|
| 36 |
|
---|
| 37 | <!-- Bootstrap JS and Popper.js (required for Bootstrap) -->
|
---|
| 38 | <script src="https://code.jquery.com/jquery-3.3.1.slim.min.js"
|
---|
| 39 | integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo"
|
---|
| 40 | crossorigin="anonymous"></script>
|
---|
| 41 | <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js"
|
---|
| 42 | integrity="sha384-UO2eT0CpHqdSJQ6hJty5KVphtPhzWj9WO1clHTMGa3JDZwrnQq4sF86dIHNDz0W1"
|
---|
| 43 | crossorigin="anonymous"></script>
|
---|
| 44 | <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js"
|
---|
| 45 | integrity="sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM"
|
---|
| 46 | crossorigin="anonymous"></script>
|
---|
| 47 |
|
---|
| 48 | </body>
|
---|
| 49 | </html>
|
---|