source: src/main/resources/templates/home.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: 3.0 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>Home</title>
7
8 <!-- Bootstrap CSS -->
9 <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css"
10 integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T"
11 crossorigin="anonymous">
12
13 <style>
14 /* Custom styles for the content */
15 body {
16 background-color: #f8f9fa;
17 }
18
19 .content {
20 max-width: 600px;
21 margin: 0 auto;
22 padding: 20px;
23 background-color: white;
24 box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
25 margin-top: 20px;
26 }
27 </style>
28</head>
29<body>
30<div th:replace="appBar"></div>
31
32<div class="content">
33 <h2 class="text-center">Today: <span th:text="${day.getDate()}"></span></h2>
34
35 <!-- Workouts Section with Remove Buttons -->
36 <div class="mb-4">
37 <h4>Workouts</h4>
38 <ul class="list-group">
39 <li class="list-group-item" th:each="workout : ${day.getWorkouts()}">
40 <form th:action="@{/day/removeWorkout/{workoutID}(workoutID=${workout.wID})}" method="post">
41 <input type="hidden" name="dayID" th:value="${day.dID}" />
42 <span th:text="${workout.getName()}"></span>
43 <button type="submit" class="btn btn-danger btn-sm float-right">
44 Remove
45 </button>
46 </form>
47 </li>
48 </ul>
49 </div>
50
51 <!-- Meals Section with Remove Buttons -->
52 <div>
53 <h4>Meals</h4>
54 <ul class="list-group">
55 <li class="list-group-item" th:each="meal, mealIndex : ${day.getMeals()}">
56 <form th:action="@{/day/removeMeal/{mealID}(mealID=${meal.mID})}" method="post">
57 <input type="hidden" name="dayID" th:value="${day.dID}" />
58 <span th:text="${meal.getName()}"></span>
59 (<span th:text="${meal.getCalories()}"></span>kcal)
60 <button type="submit" class="btn btn-danger btn-sm float-right">
61 Remove
62 </button>
63 </form>
64 </li>
65 </ul>
66 </div>
67</div>
68<!-- Bootstrap JS and Popper.js (required for Bootstrap) -->
69<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js"
70 integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo"
71 crossorigin="anonymous"></script>
72<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js"
73 integrity="sha384-UO2eT0CpHqdSJQ6hJty5KVphtPhzWj9WO1clHTMGa3JDZwrnQq4sF86dIHNDz0W1"
74 crossorigin="anonymous"></script>
75<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js"
76 integrity="sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM"
77 crossorigin="anonymous"></script>
78</body>
79</html>
Note: See TracBrowser for help on using the repository browser.