30 lines
1.4 KiB
HTML
30 lines
1.4 KiB
HTML
<div *ngIf="loadSpinner == true" class="body_modal">
|
|
<mat-spinner></mat-spinner>
|
|
</div>
|
|
<div class="body_modal" *ngIf="arrAssing && loadSpinner == false">
|
|
<div class="body_modal-tittle">
|
|
<h1>{{type == 'assing' ? 'Asignar' : 'Remover'}} Usuario</h1>
|
|
</div>
|
|
<div class="body_modal-form">
|
|
<div class="body_modal-form_row">
|
|
<mat-form-field appearance="fill" class="body_modal-form_row-field" *ngIf="arrAssing.length > 0">
|
|
<mat-label>Usuario</mat-label>
|
|
<mat-select multiple>
|
|
<mat-option [disabled]="opcAll" (onSelectionChange)="assingAll($event)" *ngIf="type === 'assing'">
|
|
Todos
|
|
</mat-option>
|
|
<mat-option (onSelectionChange)="assingCase(user, $event)" *ngFor="let user of arrAssing" [disabled]="opcUser"
|
|
[value]="user.id">{{user.name}} {{user.lastname}} ({{user.acronym}})
|
|
</mat-option>
|
|
</mat-select>
|
|
</mat-form-field>
|
|
<h3 *ngIf="arrAssing.length == 0">No hay usuarios para {{type == 'assing' ? 'asignar' : 'remover'}}</h3>
|
|
</div>
|
|
<button mat-raised-button color="primary" (click)="submit()" style="margin-bottom: 5%;"
|
|
[disabled]="assingUsers.length < 1 || spinner"
|
|
[class.spinner]="spinner">{{type == 'assing' ? 'Asignar' : 'Remover'}}</button>
|
|
<button mat-raised-button color="warn" (click)="this.dialogRef.close(false)">Cerrar</button>
|
|
|
|
</div>
|
|
</div>
|