Changeset ab49338 for src/main/resources/templates/moderatorPost.html
- Timestamp:
- 09/04/21 12:17:17 (3 years ago)
- Branches:
- master
- Children:
- 0f4f552
- Parents:
- 5306751
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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>
Note:
See TracChangeset
for help on using the changeset viewer.