Changeset ab49338 for src/main/resources/templates/post.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/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.