source: trip-planner/src/main/resources/templates/trip-locations-country.html@ 6a3a178

Last change on this file since 6a3a178 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 1.9 KB
Line 
1<!DOCTYPE html>
2<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">
3<head>
4 <meta charset="UTF-8">
5 <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.1/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-+0n0xVW2eSR5OomGNYDnhzAbDsOXxcvSN1TPprVMTNDbiYZCxYbOOl7+AMvyTG2x" crossorigin="anonymous">
6
7 <title>Trip Locations</title>
8</head>
9<body>
10
11<div class="container mb-4">
12 <div class="row">
13 <div class="col-12">
14 <div class="table-responsive">
15 <table class="table table-striped">
16 <thead>
17 <tr>
18 <th scope="col">Location name</th>
19 </tr>
20 </thead>
21 <tbody>
22 <tr th:each="loc : ${countryLocations}">
23 <td th:text="${loc.getName()}">
24 </td>
25
26 <td th:if="${loc.getCity() != null}">
27 <span th:text="${loc.getCity().getName()}"/>
28 </td>
29 <!-- <td><img th:src="*{'data:image/jpeg;base64,'+ imgUtil.getImgData(loc.getPhoto())}" alt="" /></td> -->
30
31 <td>
32 <form th:action="@{'/trip/locations/{id}' (id=${loc.getId()})}" th:method="GET">
33 <button type="submit"
34 class="btn btn-sm btn-primary cart-product">
35 <i class="fa fa-trash">Details</i>
36 </button>
37 </form>
38 </td>
39 </tr>
40 </tbody>
41 </table>
42 </div>
43 </div>
44 </div>
45</div>
46
47<script src="https://cdn.jsdelivr.net/npm/@popperjs/core@2.9.2/dist/umd/popper.min.js" integrity="sha384-IQsoLXl5PILFhosVNubq5LC7Qb9DXgDA9i+tQ8Zj3iwWAwPtgFTxbJ8NT4GN1R8p" crossorigin="anonymous"></script>
48<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.1/dist/js/bootstrap.min.js" integrity="sha384-Atwg2Pkwv9vp0ygtn1JAojH0nYbwNJLPhwyoVbhoPwBhjQPR5VtM2+xf0Uwh9KtT" crossorigin="anonymous"></script>
49
50</body>
51</html>
Note: See TracBrowser for help on using the repository browser.