<app-common-dialog [dialogContent]="dialogContent" [dialogRef]="dialogRef">
  <ng-template #dialogContent>
    <form [formGroup]="changeRolesForm" (ngSubmit)="saveRoles()">
      <app-form-errors #formErrors [formGroup]="changeRolesForm"></app-form-errors>
      <mat-selection-list formControlName="roles">
        <mat-list-option *ngFor="let role of roles" [value]="role.id" color="primary">
          {{role.display_name}}
        </mat-list-option>
      </mat-selection-list>
    </form>
  </ng-template>
</app-common-dialog>
