<app-common-dialog [dialogContent]="dialogContent" [dialogRef]="dialogRef">
  <ng-template #dialogContent>
    <div *ngIf="testError" class="fl-red-color">
      <div>
        <p *ngFor="let err of testError | keyvalue">
          <span *ngIf="err.key === 'non_field_errors'; else fieldErr">{{err.value}}</span>
          <ng-template #fieldErr>{{err.key}}: {{err.value}}</ng-template>
        </p>
      </div>
    </div>
    <div *ngIf="testResults" class="fl-detail" layoutDirection="row">
      <i [attr.fl-tooltip]="connectedTxt" fl-tooltip-direction="right"
         class="material-icons fl-green-color fl-margin-right-small">
        check
      </i>
      {{testResults.detail}}
    </div>
  </ng-template>
</app-common-dialog>
