1 | <!DOCTYPE html>
|
---|
2 | <html xmlns:th="http://www.thymeleaf.org">
|
---|
3 | <head>
|
---|
4 | <meta charset="UTF-8">
|
---|
5 | <meta name="viewport" content="width=device-width, initial-scale=1.0">
|
---|
6 | <title>Workouts List</title>
|
---|
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"
|
---|
10 | crossorigin="anonymous">
|
---|
11 | </head>
|
---|
12 | <body>
|
---|
13 |
|
---|
14 | <div th:replace="appBar"></div>
|
---|
15 |
|
---|
16 | <div class="container mt-4">
|
---|
17 | <h2>Workouts</h2>
|
---|
18 |
|
---|
19 | <table class="table table-bordered">
|
---|
20 | <thead class="thead-dark">
|
---|
21 | <tr>
|
---|
22 | <th>Workout Name</th>
|
---|
23 | <th>Exercises</th>
|
---|
24 | <th>Actions</th>
|
---|
25 | </tr>
|
---|
26 | </thead>
|
---|
27 | <tbody>
|
---|
28 | <tr th:each="workout : ${workoutList}">
|
---|
29 | <td><span th:text="${workout.name}"></span></td>
|
---|
30 | <td>
|
---|
31 | <a th:href="@{/workouts/{workoutID}(workoutID=${workout.wID})}" class="btn btn-primary">View Exercises</a>
|
---|
32 | </td>
|
---|
33 | <td>
|
---|
34 | <a th:href="@{/exercises/{workoutID}(workoutID=${workout.wID})}" class="btn btn-success">Add Exercise to Workout</a><br><br>
|
---|
35 | <a th:href="@{/day/workout/{workoutID}(workoutID=${workout.wID})}" class="btn btn-info">Add Workout to Day</a>
|
---|
36 | </td>
|
---|
37 | </tr>
|
---|
38 | </tbody>
|
---|
39 | </table>
|
---|
40 |
|
---|
41 | <a href="/workouts/addWorkout" class="btn btn-primary" type="button">Add Workout</a>
|
---|
42 | </div>
|
---|
43 |
|
---|
44 | <!-- Bootstrap JS and Popper.js (required for Bootstrap) -->
|
---|
45 | <script src="https://code.jquery.com/jquery-3.3.1.slim.min.js"
|
---|
46 | integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo"
|
---|
47 | crossorigin="anonymous"></script>
|
---|
48 | <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js"
|
---|
49 | integrity="sha384-UO2eT0CpHqdSJQ6hJty5KVphtPhzWj9WO1clHTMGa3JDZwrnQq4sF86dIHNDz0W1"
|
---|
50 | crossorigin="anonymous"></script>
|
---|
51 | <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js"
|
---|
52 | integrity="sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM"
|
---|
53 | crossorigin="anonymous"></script>
|
---|
54 |
|
---|
55 | </body>
|
---|
56 | </html>
|
---|