49 lines
1.5 KiB
HTML
49 lines
1.5 KiB
HTML
<div class="container">
|
|
|
|
<mat-card>
|
|
|
|
<form [formGroup]="groupsAddRoleForm" (ngSubmit)="submit()">
|
|
|
|
<mat-card-content>
|
|
|
|
<div fxLayout="column">
|
|
|
|
<mat-form-field>
|
|
<mat-label>Client</mat-label>
|
|
<mat-select formControlName="clientId">
|
|
<mat-option *ngFor="let client of clientMemberData" [value]="client.id">
|
|
{{ client.displayName }}
|
|
</mat-option>
|
|
</mat-select>
|
|
<mat-error *ngIf="groupsAddRoleForm.controls.clientId.hasError('required')">
|
|
Client Member is <strong>required</strong>
|
|
</mat-error>
|
|
</mat-form-field>
|
|
|
|
<mat-form-field>
|
|
<mat-label>Role</mat-label>
|
|
<mat-select formControlName="role">
|
|
<mat-option *ngFor="let role of roleData" [value]="role.id">
|
|
{{ role.name }}
|
|
</mat-option>
|
|
</mat-select>
|
|
<mat-error *ngIf="groupsAddRoleForm.controls.role.hasError('required')">
|
|
Role is <strong>required</strong>
|
|
</mat-error>
|
|
</mat-form-field>
|
|
|
|
</div>
|
|
|
|
</mat-card-content>
|
|
|
|
<mat-card-actions fxLayout="row" fxLayout.xs="column" fxLayoutAlign="center" fxLayoutGap="5px">
|
|
<button type="button" mat-raised-button [routerLink]="['../']">Cancel</button>
|
|
<button mat-raised-button color="primary" [disabled]="!groupsAddRoleForm.valid">Confirm</button>
|
|
</mat-card-actions>
|
|
|
|
</form>
|
|
|
|
</mat-card>
|
|
|
|
</div>
|