argos/dmp-frontend/src/app/users/components/roles/user-role-editor.component....

16 lines
781 B
HTML
Raw Normal View History

2018-02-01 15:04:36 +01:00
<form class="user-role-editor" [formGroup]="formGroup" (ngSubmit)="formSubmit()">
<mat-form-field class="roles-width-80">
2018-10-05 17:00:54 +02:00
<mat-select formControlName="appRoles" multiple required>
2018-02-01 15:04:36 +01:00
<mat-option *ngFor="let role of getPrincipalAppRoleValues()" [value]="role">{{getPrincipalAppRoleWithLanguage(role)}}</mat-option>
</mat-select>
2018-11-27 18:33:17 +01:00
<mat-error *ngIf="getFormControl('appRoles').hasError('required')">{{'GENERAL.VALIDATION.REQUIRED' | translate}}</mat-error>
2018-02-01 15:04:36 +01:00
</mat-form-field>
<button *ngIf="!this.nowEditing" mat-icon-button color="primary" type="button" (click)="editItem()">
<mat-icon class="mat-24">edit</mat-icon>
</button>
<button *ngIf="this.nowEditing" mat-icon-button color="primary" type="submit">
<mat-icon class="mat-24">save</mat-icon>
</button>
2018-10-05 17:00:54 +02:00
</form>