72 lines
2.5 KiB
HTML
72 lines
2.5 KiB
HTML
<div class="overview">
|
|
|
|
<h2>Admin Panel</h2>
|
|
|
|
<span *ngIf="showSuccessLabel"
|
|
class="label label-success label-small"
|
|
style="margin-left: inherit">
|
|
Erfolgreich gespeichert
|
|
</span>
|
|
|
|
<div class="pull-left" style="margin-top:20px;">
|
|
<div class="table-container" style="width: 75%; min-width: 500px">
|
|
<table class="table table-hover">
|
|
<thead>
|
|
<tr class="table-head">
|
|
<th class="col-sm-1" style="border-radius: 10px 0 0 0;">Username</th>
|
|
<th class="col-sm-1">Activated</th>
|
|
<th class="col-sm-1">Secret</th>
|
|
<th class="col-sm-1">Fraktion/ Squad</th>
|
|
<th class="col-sm-1">Permission</th>
|
|
<th class="col-sm-1 text-center" style="border-radius: 0 10px 0 0;"></th>
|
|
</tr>
|
|
</thead>
|
|
<tbody *ngFor="let user of users$ | async">
|
|
<tr class="cell-outline">
|
|
<td>
|
|
{{user.username}}
|
|
</td>
|
|
<td style="font-weight: bold">
|
|
<select id="activated" name="activated" class="form-control btn dropdown-toggle"
|
|
[(ngModel)]="user.activated" (change)="updateAppUser(user)">
|
|
<option value="true">activated</option>
|
|
<option value="false">deactivated</option>
|
|
</select>
|
|
</td>
|
|
<td>
|
|
{{user.secret}}
|
|
</td>
|
|
<td>
|
|
<select class="form-control"
|
|
name="squad"
|
|
id="squad"
|
|
[(ngModel)]="user.squad"
|
|
[compareWith]="equals"
|
|
(change)="updateAppUser(user)">
|
|
<option [value]="0">Ohne Fraktion/ Squad</option>
|
|
<option *ngFor="let squad of squads" [ngValue]="squad">
|
|
{{squad.fraction == 'BLUFOR'? 'NATO' : 'CSAT'}}: {{squad.name}}
|
|
</option>
|
|
</select>
|
|
</td>
|
|
<td>
|
|
<select id="permission" name="permission" class="form-control btn dropdown-toggle"
|
|
[(ngModel)]="user.permission" (change)="updateAppUser(user)">
|
|
<option value="0">User</option>
|
|
<option value="1">SQL</option>
|
|
<option value="2">HL</option>
|
|
<option value="3">MT</option>
|
|
<option value="4">Admin</option>
|
|
</select>
|
|
</td>
|
|
<td class="text-center">
|
|
<span class="glyphicon glyphicon-trash trash" title="Löschen" (click)="deleteUser(user)"></span>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|