23 lines
784 B
HTML
23 lines
784 B
HTML
<h2>Role</h2>
|
|
|
|
<form [formGroup]="form" class="flex flex-col wrapped">
|
|
<div class="row-container">
|
|
<mat-form-field class="flex-auto">
|
|
<mat-label>Name</mat-label>
|
|
<input matInput #nameElement formControlName="name" />
|
|
</mat-form-field>
|
|
</div>
|
|
<div formArrayName="permissions">
|
|
@for (p of item.permissions; track p; let i = $index) {
|
|
<div class="flex flex-row justify-around content-start items-start" [formGroupName]="i">
|
|
<mat-checkbox formControlName="permission" class="flex-auto">{{ p.name }}</mat-checkbox>
|
|
</div>
|
|
}
|
|
</div>
|
|
</form>
|
|
|
|
<div class="row-container">
|
|
<button mat-raised-button color="primary" (click)="save()">Save</button>
|
|
<button mat-raised-button color="warn" (click)="confirmDelete()">Delete</button>
|
|
</div>
|