1 | <html lang="en" xmlns:th="http://www.w3.org/1999/xhtml" xmlns:sec="http://www.w3.org/1999/xhtml">
|
---|
2 | <head>
|
---|
3 | <meta charset="UTF-8"/>
|
---|
4 | <meta name="viewport" content="width=device-width, initial-scale=1"/>
|
---|
5 | <title>Register</title>
|
---|
6 | <!-- Bootstrap core CSS -->
|
---|
7 | <link href="/css/bootstrap.min.css" rel="stylesheet"/>
|
---|
8 | <link href="/css/carousel.css" rel="stylesheet"/>
|
---|
9 | <meta name="theme-color" content="#7952b3"/>
|
---|
10 | </head>
|
---|
11 | <body>
|
---|
12 | <header th:replace="common/navbar :: navbar"></header>
|
---|
13 | <br/>
|
---|
14 | <br/>
|
---|
15 | <br/>
|
---|
16 | <div th:if="${notFound}">
|
---|
17 | Post not found
|
---|
18 | </div>
|
---|
19 | <div th:unless="${notFound}">
|
---|
20 | <div class="row">
|
---|
21 | <div class="col-md-6" style="margin-left: 5px">
|
---|
22 | <div class="col-md-12">
|
---|
23 |
|
---|
24 | <div id="myCarousel" class="carousel carousel-dark slide card" data-bs-ride="carousel">
|
---|
25 | <div class="carousel-indicators">
|
---|
26 | <button th:each="image, itrStat : ${post.moderatorPath}" type="button" data-bs-target="#myCarousel"
|
---|
27 | th:data-bs-slide-to="${itrStat.index}" th:classappend="${itrStat.index} == 0 ? active"></button>
|
---|
28 | </div>
|
---|
29 | <div class="carousel-inner">
|
---|
30 | <div th:each="image, itrStat : ${post.moderatorPath}" th:classappend="${itrStat.index} == 0 ? active"
|
---|
31 | class="carousel-item">
|
---|
32 | <img class="card-img" th:src="${image}" style="object-fit: contain">
|
---|
33 | </div>
|
---|
34 | </div>
|
---|
35 | <button class="carousel-control-prev" type="button" data-bs-target="#myCarousel" data-bs-slide="prev">
|
---|
36 | <span class="carousel-control-prev-icon" aria-hidden="true"></span>
|
---|
37 | <span class="visually-hidden">Previous</span>
|
---|
38 | </button>
|
---|
39 | <button class="carousel-control-next" type="button" data-bs-target="#myCarousel" data-bs-slide="next">
|
---|
40 | <span class="carousel-control-next-icon" aria-hidden="true"></span>
|
---|
41 | <span class="visually-hidden">Next</span>
|
---|
42 | </button>
|
---|
43 | </div>
|
---|
44 | </div>
|
---|
45 | </div>
|
---|
46 | <div class="col-md-5" style="margin-left: 5px">
|
---|
47 | <div class="col-md-12">
|
---|
48 | <h1 th:text="${post.title}"></h1>
|
---|
49 | <h5>Description:</h5>
|
---|
50 | <p th:text="${post.description}"></p>
|
---|
51 | <h5>Funds needed:</h5>
|
---|
52 | <p><span th:text="${total}"></span>/<span th:text="${post.fundsNeeded}"></span> - <span th:text="${post.currency}"></span></p>
|
---|
53 | <h5>Date due:</h5>
|
---|
54 | <p th:text="${post.dateDue}"></p>
|
---|
55 | <h5>Bank account:</h5>
|
---|
56 | <p th:text="${post.bankAccount}"></p>
|
---|
57 | <h5>Phone numbers:</h5>
|
---|
58 | <p><span th:text="${post.phoneNumbers[0]}"></span> - Telekom</p>
|
---|
59 | <p><span th:text="${post.phoneNumbers[1]}"></span> - A1</p>
|
---|
60 | <h5>Created by:</h5>
|
---|
61 | <p><span th:text="${createdByFirstName}"></span> <span th:text="${createdByLastName}"></span></p>
|
---|
62 |
|
---|
63 | <a class="btn btn-success" th:href="@{/moderator/approvePost(postid=${post.id})}">Approve</a>
|
---|
64 | <button type="button" class="btn btn-danger" data-bs-toggle="modal" data-bs-target="#staticBackdrop">
|
---|
65 | Dont Approve
|
---|
66 | </button>
|
---|
67 |
|
---|
68 | <!-- Modal -->
|
---|
69 | <div class="modal fade" id="staticBackdrop" data-bs-backdrop="static" data-bs-keyboard="false" tabindex="-1" aria-labelledby="staticBackdropLabel" aria-hidden="true">
|
---|
70 | <div class="modal-dialog modal-dialog-centered">
|
---|
71 | <div class="modal-content">
|
---|
72 | <div class="modal-header">
|
---|
73 | <h5 class="modal-title" id="staticBackdropLabel">Donate</h5>
|
---|
74 | <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
|
---|
75 | </div>
|
---|
76 | <div class="modal-body">
|
---|
77 | <div class="card-body">
|
---|
78 | <form th:action="@{/moderator/dontApprove(postid=${post.id})}" method="post" id="myForm">
|
---|
79 | <label for="description">Description</label>
|
---|
80 | <textarea class="form-control" id="description" name="description" rows="5"></textarea>
|
---|
81 | </form>
|
---|
82 | </div>
|
---|
83 | </div>
|
---|
84 | <div class="modal-footer">
|
---|
85 | <button type="button" class="btn btn-secondary" data-bs-dismiss="modal">Close</button>
|
---|
86 | <input type="submit" class="btn btn-primary" form="myForm" value="Confirm">
|
---|
87 | </div>
|
---|
88 | </div>
|
---|
89 | </div>
|
---|
90 | </div>
|
---|
91 | </div>
|
---|
92 | </div>
|
---|
93 | </div>
|
---|
94 | </div>
|
---|
95 | <script src="/js/bootstrap.min.js"></script>
|
---|
96 | </body>
|
---|
97 | </html> |
---|