Changeset ab49338 for src/main/resources
- Timestamp:
- 09/04/21 12:17:17 (3 years ago)
- Branches:
- master
- Children:
- 0f4f552
- Parents:
- 5306751
- Location:
- src/main/resources/templates
- Files:
-
- 2 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
src/main/resources/templates/common/navbar.html
r5306751 rab49338 38 38 <a sec:authorize="isAnonymous()" type="button" class="btn btn-outline-light me-2" th:href="@{/login}">Login</a> 39 39 <a sec:authorize="isAnonymous()" type="button" class="btn btn-warning" th:href="@{/register}">Sign-up</a> 40 <a sec:authorize="isAuthenticated()" type="button" class="btn btn-outline-light me-2" th:href="@{/userInformation}">My profile - <span th:text="${user.firstName}"></span></a> 40 <a sec:authorize="isAuthenticated() and hasAuthority('USER')" type="button" class="btn btn-outline-light me-2" th:href="@{/userInformation}">My profile - <span th:text="${user.firstName}"></span></a> 41 <a sec:authorize="isAuthenticated() and hasAuthority('MODERATOR')" type="button" class="btn btn-outline-light me-2" th:href="@{/moderator/myApprovedPosts}">My approved posts - <span th:text="${user.firstName} + ${user.lastName}"></span></a> 41 42 <a sec:authorize="isAuthenticated()" type="button" class="btn btn-warning" th:href="@{/logout}">Logout</a> 42 43 </div> -
src/main/resources/templates/moderatorPost.html
r5306751 rab49338 24 24 <div id="myCarousel" class="carousel carousel-dark slide card" data-bs-ride="carousel"> 25 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> 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> 28 30 </div> 29 31 <div class="carousel-inner"> 30 <div th:each="image, itrStat : ${post.moderatorPath}" th:classappend="${itrStat.index} == 0 ? active" 32 <div th:each="image, itrStat : ${post.moderatorPath}" 33 th:classappend="${itrStat.index} == 0 ? active" 31 34 class="carousel-item"> 32 35 <img class="card-img" th:src="${image}" style="object-fit: contain"> 33 36 </div> 34 37 </div> 35 <button class="carousel-control-prev" type="button" data-bs-target="#myCarousel" data-bs-slide="prev"> 38 <button class="carousel-control-prev" type="button" data-bs-target="#myCarousel" 39 data-bs-slide="prev"> 36 40 <span class="carousel-control-prev-icon" aria-hidden="true"></span> 37 41 <span class="visually-hidden">Previous</span> 38 42 </button> 39 <button class="carousel-control-next" type="button" data-bs-target="#myCarousel" data-bs-slide="next"> 43 <button class="carousel-control-next" type="button" data-bs-target="#myCarousel" 44 data-bs-slide="next"> 40 45 <span class="carousel-control-next-icon" aria-hidden="true"></span> 41 46 <span class="visually-hidden">Next</span> … … 50 55 <p th:text="${post.description}"></p> 51 56 <h5>Funds needed:</h5> 52 <p><span th:text="${total}"></span>/<span th:text="${post.fundsNeeded}"></span> - <span th:text="${post.currency}"></span></p> 57 <p><span th:text="${total}"></span>/<span th:text="${post.fundsNeeded}"></span> - <span 58 th:text="${post.currency}"></span></p> 53 59 <h5>Date due:</h5> 54 60 <p th:text="${post.dateDue}"></p> … … 61 67 <p><span th:text="${createdByFirstName}"></span> <span th:text="${createdByLastName}"></span></p> 62 68 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> 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> 67 76 68 77 <!-- Modal --> 69 <div class="modal fade" id="staticBackdrop" data-bs-backdrop="static" data-bs-keyboard="false" tabindex="-1" aria-labelledby="staticBackdropLabel" aria-hidden="true"> 78 <div class="modal fade" id="staticBackdrop" data-bs-backdrop="static" data-bs-keyboard="false" 79 tabindex="-1" aria-labelledby="staticBackdropLabel" aria-hidden="true"> 70 80 <div class="modal-dialog modal-dialog-centered"> 71 81 <div class="modal-content"> 72 82 <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> 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> 75 86 </div> 76 87 <div class="modal-body"> 77 88 <div class="card-body"> 78 <form th:action="@{/moderator/dontApprove(postid=${post.id})}" method="post" id="myForm"> 89 <form th:action="@{/moderator/dontApprove(postid=${post.id})}" method="post" 90 id="myForm"> 79 91 <label for="description">Description</label> 80 <textarea class="form-control" id="description" name="description" rows="5"></textarea> 92 <textarea class="form-control" id="description" name="description" 93 rows="5"></textarea> 81 94 </form> 82 95 </div> -
src/main/resources/templates/myProfile.html
r5306751 rab49338 245 245 Add collected funds 246 246 </button> 247 <a class="btn btn-sm btn-danger"248 th:href="@{/deletePost(postid=${post.id})}">Delete</a>249 247 </div> 250 248 </div> -
src/main/resources/templates/post.html
r5306751 rab49338 60 60 <h5>Created by:</h5> 61 61 <p><span th:text="${createdByFirstName}"></span> <span th:text="${createdByLastName}"></span></p> 62 63 <button type="button" class="btn btn-primary" data-bs-toggle="modal" data-bs-target="#staticBackdrop"> 62 <h5>Approved by:</h5> 63 <p th:unless="${moderatorFirstName}">Not approved</p> 64 <p><span th:text="${moderatorFirstName}"></span> <span th:text="${moderatorLastName}"></span></p> 65 66 <button sec:authorize="isAuthenticated()" type="button" class="btn btn-primary" data-bs-toggle="modal" data-bs-target="#staticBackdrop"> 64 67 Donate 68 </button> 69 <a sec:authorize="isAnonymous()" type="button" class="btn btn-primary" th:href="@{/login}"> 70 Donate 71 </a> 72 <button type="button" class="btn btn-danger" data-bs-toggle="modal" 73 data-bs-target="#staticBackdrop1"> 74 Report 65 75 </button> 66 76 … … 126 136 </div> 127 137 </div> 138 <div class="modal fade" id="staticBackdrop1" data-bs-backdrop="static" data-bs-keyboard="false" 139 tabindex="-1" aria-labelledby="staticBackdropLabel1" aria-hidden="true"> 140 <div class="modal-dialog modal-dialog-centered"> 141 <div class="modal-content"> 142 <div class="modal-header"> 143 <h5 class="modal-title" id="staticBackdropLabel1">Report post</h5> 144 <button type="button" class="btn-close" data-bs-dismiss="modal" 145 aria-label="Close"></button> 146 </div> 147 <div class="modal-body"> 148 <div class="card-body"> 149 <form th:action="@{/report(postid=${post.id})}" method="post" 150 id="myForm1"> 151 <label for="description">Description</label> 152 <textarea class="form-control" id="description" name="description" 153 rows="5"></textarea> 154 </form> 155 </div> 156 </div> 157 <div class="modal-footer"> 158 <button type="button" class="btn btn-secondary" data-bs-dismiss="modal">Close</button> 159 <input type="submit" class="btn btn-primary" form="myForm1" value="Confirm"> 160 </div> 161 </div> 162 </div> 163 </div> 128 164 </div> 129 165 </div>
Note:
See TracChangeset
for help on using the changeset viewer.