<h2 mat-dialog-title>{{ titleForm }}</h2>
<mat-dialog-content class="override-content-dynamic">
  <div class="is-loading" *ngIf="isLoading">
    <mat-spinner></mat-spinner>
    <h1>Cargando...</h1>
  </div>
  <!-- CONTENT -->
  <div *ngIf="arrFields.length <= 1 && !isLoading">
    <app-dynamic-form-structure *ngFor="let fields of arrFields" [typeForm]="dialogData.action" [fields]="fields" (dataValue)="getInformation($event)"></app-dynamic-form-structure>
  </div>
  <div *ngIf="arrFields.length > 1 && !isLoading">
    <mat-stepper #stepper>
      <mat-step *ngFor="let fields of arrFields">
        <ng-template matStepLabel>{{ fields.step }}</ng-template>
          <app-dynamic-form-structure [fields]="fields" [typeForm]="dialogData.action" (dataValue)="getInformation($event)"></app-dynamic-form-structure>
      </mat-step>
    </mat-stepper>
  </div>
</mat-dialog-content>
