main
Last change
on this file since f484b14 was 676144b, checked in by andrejtodorovski <82031894+andrejtodorovski@…>, 23 months ago |
Added admin view of pending roles and approve functionality
|
-
Property mode
set to
100644
|
File size:
547 bytes
|
Line | |
---|
1 | <div>
|
---|
2 | <table>
|
---|
3 | <thead>
|
---|
4 | <tr>
|
---|
5 | <th>Name</th>
|
---|
6 | <th>Username</th>
|
---|
7 | <th>Role</th>
|
---|
8 | <th>Approve</th>
|
---|
9 | </tr>
|
---|
10 | </thead>
|
---|
11 | <tbody>
|
---|
12 | <tr th:each="user : ${users}">
|
---|
13 | <td th:text="${user.getName()}"></td>
|
---|
14 | <td th:text="${user.getUsername()}"></td>
|
---|
15 | <td th:text="${user.getAuthorities()}"></td>
|
---|
16 | <td>
|
---|
17 | <form method="post" th:action="@{'/approve/{id}' (id=${user.getId()}) }">
|
---|
18 | <button type="submit">Approve</button>
|
---|
19 | </form>
|
---|
20 | </td>
|
---|
21 | </tr>
|
---|
22 | </tbody>
|
---|
23 | </table>
|
---|
24 | </div> |
---|
Note:
See
TracBrowser
for help on using the repository browser.