source: src/main/resources/templates/moderatorPost.html@ ab49338

Last change on this file since ab49338 was ab49338, checked in by KostaFortumanov <kfortumanov@…>, 3 years ago

Dodadeno prijavuvanje na objavi

  • Property mode set to 100644
File size: 5.5 KB
Line 
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"
27 data-bs-target="#myCarousel"
28 th:data-bs-slide-to="${itrStat.index}"
29 th:classappend="${itrStat.index} == 0 ? active"></button>
30 </div>
31 <div class="carousel-inner">
32 <div th:each="image, itrStat : ${post.moderatorPath}"
33 th:classappend="${itrStat.index} == 0 ? active"
34 class="carousel-item">
35 <img class="card-img" th:src="${image}" style="object-fit: contain">
36 </div>
37 </div>
38 <button class="carousel-control-prev" type="button" data-bs-target="#myCarousel"
39 data-bs-slide="prev">
40 <span class="carousel-control-prev-icon" aria-hidden="true"></span>
41 <span class="visually-hidden">Previous</span>
42 </button>
43 <button class="carousel-control-next" type="button" data-bs-target="#myCarousel"
44 data-bs-slide="next">
45 <span class="carousel-control-next-icon" aria-hidden="true"></span>
46 <span class="visually-hidden">Next</span>
47 </button>
48 </div>
49 </div>
50 </div>
51 <div class="col-md-5" style="margin-left: 5px">
52 <div class="col-md-12">
53 <h1 th:text="${post.title}"></h1>
54 <h5>Description:</h5>
55 <p th:text="${post.description}"></p>
56 <h5>Funds needed:</h5>
57 <p><span th:text="${total}"></span>/<span th:text="${post.fundsNeeded}"></span> - <span
58 th:text="${post.currency}"></span></p>
59 <h5>Date due:</h5>
60 <p th:text="${post.dateDue}"></p>
61 <h5>Bank account:</h5>
62 <p th:text="${post.bankAccount}"></p>
63 <h5>Phone numbers:</h5>
64 <p><span th:text="${post.phoneNumbers[0]}"></span> - Telekom</p>
65 <p><span th:text="${post.phoneNumbers[1]}"></span> - A1</p>
66 <h5>Created by:</h5>
67 <p><span th:text="${createdByFirstName}"></span> <span th:text="${createdByLastName}"></span></p>
68
69 <div th:unless="${approved}">
70 <a class="btn btn-success" th:href="@{/moderator/approvePost(postid=${post.id})}">Approve</a>
71 <button type="button" class="btn btn-danger" data-bs-toggle="modal"
72 data-bs-target="#staticBackdrop">
73 Dont Approve
74 </button>
75 </div>
76
77 <!-- Modal -->
78 <div class="modal fade" id="staticBackdrop" data-bs-backdrop="static" data-bs-keyboard="false"
79 tabindex="-1" aria-labelledby="staticBackdropLabel" aria-hidden="true">
80 <div class="modal-dialog modal-dialog-centered">
81 <div class="modal-content">
82 <div class="modal-header">
83 <h5 class="modal-title" id="staticBackdropLabel">Dont approve</h5>
84 <button type="button" class="btn-close" data-bs-dismiss="modal"
85 aria-label="Close"></button>
86 </div>
87 <div class="modal-body">
88 <div class="card-body">
89 <form th:action="@{/moderator/dontApprove(postid=${post.id})}" method="post"
90 id="myForm">
91 <label for="description">Description</label>
92 <textarea class="form-control" id="description" name="description"
93 rows="5"></textarea>
94 </form>
95 </div>
96 </div>
97 <div class="modal-footer">
98 <button type="button" class="btn btn-secondary" data-bs-dismiss="modal">Close</button>
99 <input type="submit" class="btn btn-primary" form="myForm" value="Confirm">
100 </div>
101 </div>
102 </div>
103 </div>
104 </div>
105 </div>
106 </div>
107</div>
108<script src="/js/bootstrap.min.js"></script>
109</body>
110</html>
Note: See TracBrowser for help on using the repository browser.