source: src/main/resources/templates/workoutInfo.html@ d659b83

main
Last change on this file since d659b83 was d659b83, checked in by Marko_Gjorgjievski_201136 <marko.gjorgjievski@…>, 2 months ago

Commiting the whole project

  • Property mode set to 100644
File size: 2.4 KB
Line 
1<!DOCTYPE html>
2<html lang="en">
3<head>
4 <meta charset="UTF-8">
5 <meta name="viewport" content="width=device-width, initial-scale=1.0">
6 <title>Workout info</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<div th:replace="appBar"></div>
14
15<div class="container mt-4">
16 <table class="table table-bordered">
17 <thead class="thead-dark">
18 <tr>
19 <th>Name</th>
20 <th>Type</th>
21 <th>Sets</th>
22 <th>Reps</th>
23 <th>Weight</th>
24 <th>Time</th>
25 <th>Action</th>
26 </tr>
27 </thead>
28 <tbody>
29 <tr th:each="exercise : ${workout.getExercises()}">
30 <td><span th:text="${exercise.getExercise().getName()}"></span></td>
31 <td><span th:text="${exercise.getExercise().getType()}"></span></td>
32 <td><span th:text="${exercise.getSets()}"></span></td>
33 <td><span th:text="${exercise.getReps()}"></span></td>
34 <td><span th:text="${exercise.getWeight()}"></span></td>
35 <td><span th:text="${exercise.getTime()}"></span></td>
36 <td>
37 <form th:action="@{/workouts/removeExercise/{workoutID}(workoutID=${workout.wID})}" method="post">
38 <input type="hidden" name="exerciseID" th:value="${exercise.id}" />
39 <button type="submit" class="btn btn-danger btn-sm float-right">
40 Remove
41 </button>
42 </form>
43 </td>
44 </tr>
45 </tbody>
46 </table>
47</div>
48
49<!-- Bootstrap JS and Popper.js (required for Bootstrap) -->
50<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js"
51 integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo"
52 crossorigin="anonymous"></script>
53<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js"
54 integrity="sha384-UO2eT0CpHqdSJQ6hJty5KVphtPhzWj9WO1clHTMGa3JDZwrnQq4sF86dIHNDz0W1"
55 crossorigin="anonymous"></script>
56<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js"
57 integrity="sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM"
58 crossorigin="anonymous"></script>
59
60</body>
61</html>
Note: See TracBrowser for help on using the repository browser.