| | | 1 | | @inject MunityContext dbContext |
| | | 2 | | |
| | | 3 | | @page "/admin/users" |
| | | 4 | | |
| | | 5 | | <AuthorizeView Roles="Head-Admin, Admin"> |
| | | 6 | | <Authorized> |
| | | 7 | | <table class="table"> |
| | | 8 | | <thead> |
| | | 9 | | <tr> |
| | | 10 | | <th>Username</th> |
| | | 11 | | <th>Vorname</th> |
| | | 12 | | <th>Nachname</th> |
| | | 13 | | <th>Mail</th> |
| | | 14 | | </tr> |
| | | 15 | | </thead> |
| | | 16 | | <tbody> |
| | 0 | 17 | | @foreach(var user in dbContext.Users.OrderBy(n => n.UserName).Take(100)) |
| | 0 | 18 | | { |
| | | 19 | | <tr class="@((user.IsShadowUser) ? "table-warning" : null)"> |
| | 0 | 20 | | <td>@user.UserName</td> |
| | 0 | 21 | | <td>@user.Forename</td> |
| | 0 | 22 | | <td>@user.Lastname</td> |
| | 0 | 23 | | <td>@user.Email</td> |
| | | 24 | | </tr> |
| | 0 | 25 | | } |
| | | 26 | | </tbody> |
| | | 27 | | </table> |
| | | 28 | | |
| | | 29 | | </Authorized> |
| | | 30 | | <NotAuthorized> |
| | | 31 | | <p>Zugriff verweigert!</p> |
| | | 32 | | </NotAuthorized> |
| | | 33 | | </AuthorizeView> |
| | | 34 | | |
| | | 35 | | @code { |
| | | 36 | | |
| | | 37 | | } |