<h1 mat-dialog-title class="prevent-select">Ingresar bloqueo</h1>
<div mat-dialog-content class="prevent-select">
  <div class="is-loading animated fadeIn fast" *ngIf="isLoading">
    <mat-spinner align="center"></mat-spinner>
    <h3>Cargando datos ...</h3>
  </div>
  <div class="has-error animated fadeIn pt-64" *ngIf="!isLoading && hasError">
    <mat-icon class="red_primary_font">error</mat-icon>
    <h2>{{ errorStr }}</h2>
  </div>
  <mat-form-field class="mt-8 w-100 animated fadeIn" appearance="outline" *ngIf="!isLoading && !hasError">
    <mat-label>Empleado o subcontratista</mat-label>
    <mat-select [formControl]="formControl">
      <mat-optgroup label="Empleado">
        <mat-option *ngFor="let employee of employees" [value]="employee.ID_EMPLOYEE + '|USR'">
          {{ employee.NAME }}
        </mat-option>
      </mat-optgroup>
      <mat-optgroup label="Subcontratista">
        <mat-option *ngFor="let subcontratist of subcontratists" [value]="subcontratist.ID_SUBCONTRATIST + '|SUB'">
          {{ subcontratist.NAME }}
        </mat-option>
      </mat-optgroup>
    </mat-select>
  </mat-form-field>
</div>
<div mat-dialog-actions align="end">
  <button mat-button mat-dialog-close>Cerrar</button>
  <button mat-button [disabled]="formControl.invalid" (click)="confirmBlock()">Continuar</button>
</div>