source: src/main/resources/templates/activity-reservations.html@ f7c05a1

Last change on this file since f7c05a1 was f7c05a1, checked in by Elena Shulevska <elena.shulevska@…>, 15 months ago

initial commit of the source code on origin

  • Property mode set to 100644
File size: 7.0 KB
Line 
1<!DOCTYPE html>
2<html lang="en" xmln="http://www.w3.org/1999/xhtml">
3<head>
4 <!-- Required meta tags -->
5 <meta charset="utf-8">
6 <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
7 <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css" integrity="sha384-JcKb8q3iqJ61gNV9KGb8thSsNjpSL0n8PARn9HuZOnIxN0hoP+VmmDGMN5t9UJ0Z" crossorigin="anonymous">
8 <script src="https://code.jquery.com/jquery-3.5.1.slim.min.js" integrity="sha384-DfXdz2htPH0lsSSs5nCTpuj/zy4C+OGpamoFVy38MVBnE+IbbVYUew+OrCXaRkfj" crossorigin="anonymous"></script>
9 <script src="https://cdn.jsdelivr.net/npm/popper.js@1.16.1/dist/umd/popper.min.js" integrity="sha384-9/reFTGAW83EW2RDu2S0VKaIzap3H66lZH81PoYlFhbGU+6BZp6G7niu735Sk7lN" crossorigin="anonymous"></script>
10 <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js" integrity="sha384-B4gt1jrGC7Jh4AgTPSdUtOBvfO8shuf57BaghqFfPlYxofvL8/KUEfYiJOMMV+rV" crossorigin="anonymous"></script>
11 <!-- Bootstrap CSS -->
12 <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css"
13 integrity="sha384-JcKb8q3iqJ61gNV9KGb8thSsNjpSL0n8PARn9HuZOnIxN0hoP+VmmDGMN5t9UJ0Z" crossorigin="anonymous">
14 <link href='https://fonts.googleapis.com/css?family=Montserrat' rel='stylesheet'>
15 <title>Activity Reservations</title>
16 <style>
17 header{
18 font-size: 30px;
19 }
20 body {
21 font-family: 'Montserrat', sans-serif;
22 }
23 h1{
24 font-size:25px;
25 }
26 table{
27 font-size: 20px;
28 text-align: center;
29 }
30 .buttons
31 {
32 width: 100px;
33 }
34 .dropbtn {
35 background: white;
36 border: none;
37 }
38 .dropdown {
39 position: relative;
40 display: inline-block;
41 }
42 .dropdown-content {
43 display: none;
44 position: absolute;
45 background-color: #f1f1f1;
46 font-size: 20px;
47 min-width: 160px;
48 box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
49 z-index: 1;
50 }
51 .dropdown-content a {
52 padding: 12px 16px;
53 text-decoration: none;
54 display: block;
55 }
56 .dropdown-content a:hover {background-color: #ddd;}
57 .dropdown:hover .dropdown-content {display: block;}
58 /*.dropdown:hover .dropbtn {background-color: darkolivegreen;}*/
59 </style>
60</head>
61<body>
62<header>
63 <nav class="navbar navbar-expand-lg navbar-light bg-white">
64 <div class="container-fluid">
65 <img th:src="@{../logo.png}" class="img-fluid mx-auto d-block ms-0" width="200px" height="150px" alt="Logo">
66 <div class="collapse navbar-collapse justify-content-end mr-5" id="navbarNavAltMarkup">
67 <div class="navbar-nav me-0 text-black ml-5">
68 <a class="nav-link active mr-5 " aria-current="page" th:href="@{/home}">Home</a>
69 <div class="dropdown">
70 <button class="dropbtn nav-link mr-5">Reservations</button>
71 <div class="dropdown-content">
72 <li><a th:href="@{/reservations/rooms}" class="text-secondary">New Reservations</a></li>
73 <li><a th:href="@{/rooms/available}" class="text-secondary">Available Reservations</a></li>
74 </div>
75 </div>
76 <a class="nav-link mr-5" th:href="@{/home/contact}">Contact</a>
77 <a class="nav-link mr-5" href="/logout" th:if="${session.user != null}">Log Out</a>
78 </div>
79 </div>
80 </div>
81 </nav>
82</header>
83<div class="row mt-5 bg-light" >
84 <div class="col-12 pl-5 my-5 ml-0 justify-content-center text-secondary">
85 <h1>All your reservations are here!</h1>
86 </div>
87 <div class="col-12 justify-content-center d-flex mb-5">
88 <button type="submit" class="btn btn-secondary mx-3 my-2 btn-block" th:onclick="'location.href = \'/reservations/rooms\''">Rooms</button>
89 <button type="submit" class="btn btn-secondary mx-3 my-2 btn-block" th:onclick="'location.href = \'/reservations/food\''">Food</button>
90 <button type="submit" class="btn btn-secondary mx-3 my-2 btn-block" th:onclick="'location.href = \'/reservations/beverage\''">Beverages</button>
91 <button type="submit" class="btn btn-secondary mx-3 my-2 btn-block" th:onclick="'location.href = \'/reservations/event\''">Events</button>
92 <button type="submit" class="btn btn-secondary mx-3 my-2 btn-block" th:onclick="'location.href = \'/reservations/activity\''">Activities</button>
93 <button type="submit" class="btn btn-secondary mx-3 my-2 btn-block" th:onclick="'location.href = \'/reservations/service\''">Service</button>
94 </div>
95 <br> <br>
96 <div class="container-fluid">
97 <button type="submit" class="btn btn-secondary mx-3 my-2 btn-block" th:onclick="'location.href = \'/reservations/activity/statistics\''">Statistics</button>
98 <div th:each="reservation : ${activityReservations}" class="d-flex">
99 <table class="table table-striped table-bordered table-hover">
100 <tr>
101 <td>
102 <h6 class="text-secondary">Activity type</h6>
103 <th:block th:text="${reservation.activity_type}"></th:block>
104 </td>
105 <td>
106 <h6 class="text-secondary">Price</h6>
107 <th:block th:text="${reservation.price}">евра</th:block>
108 </td>
109 <td>
110 <h6 class="text-secondary">Start Date</h6>
111 <th:block th:text="${reservation.start_date}"></th:block>
112 </td>
113 <td>
114 <h6 class="text-secondary">End Date</h6>
115 <th:block th:text="${reservation.end_date}"></th:block>
116 </td>
117 <td>
118 <h6 class="text-secondary">Number of guests</h6>
119 <th:block th:text="${reservation.number_of_interested_guests}"></th:block>
120 </td>
121 <td>
122 <h6 class="text-secondary">Location</h6>
123 <th:block th:text="${reservation.activity_location}"></th:block>
124 </td>
125 </tr>
126 </table>
127 </div>
128 </div>
129</div>
130</body>
131</html>
132
133<script src="https://code.jquery.com/jquery-3.5.1.slim.min.js" integrity="sha384-DfXdz2htPH0lsSSs5nCTpuj/zy4C+OGpamoFVy38MVBnE+IbbVYUew+OrCXaRkfj" crossorigin="anonymous"></script>
134<script src="https://cdn.jsdelivr.net/npm/@popperjs/core@2.16.6/dist/umd/popper.min.js" integrity="sha384-wHAiFfRlMFy6i5SRaxvfOCifBUQy1xHdJ/yoi7FRNXMRBu5WHdZYu1hA6ZOblgut" crossorigin="anonymous"></script>
135<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min"></script>
Note: See TracBrowser for help on using the repository browser.