aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/admin/users/user-list/user-list.component.html
blob: 2aca05f2bab937273b78009883f764e4f5007818 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<table class="table table-hover">
  <thead>
    <tr>
      <th>Id</th>
      <th>Username</th>
      <th class="text-right">Remove</th>
    </tr>
  </thead>

  <tbody>
    <tr *ngFor="let user of users">
      <td>{{ user.id }}</td>
      <td>{{ user.username }}</td>
      <td class="text-right">
        <span class="glyphicon glyphicon-remove" *ngIf="!user.isAdmin()" (click)="removeUser(user)"></span>
      </td>
    </tr>
  </tbody>
</table>

<a class="add-user btn btn-success pull-right" [routerLink]="['/admin/users/add']">
  <span class="glyphicon glyphicon-plus"></span>
  Add user
</a>