<app-common-dialog [dialogContent]="dialogContent" [dialogRef]="dialogRef">
  <ng-template #dialogContent>
    <form appFormSubmit (ngSubmit)="savePTR()" [formGroup]="ptrForm">
      <app-form-errors #formErrors [formGroup]="ptrForm"></app-form-errors>
      <div layoutDirection="column">
        <mat-form-field appFlex="100">
          <mat-label i18n>PTR</mat-label>
          <input matInput i18n-placeholder placeholder="PTR" type="text" maxlength="2080" name="record"
                 formControlName="record" required>
          <mat-error>{{backendErrors['record'] || fieldRequiredTxt}}</mat-error>
        </mat-form-field>
      </div>
    </form>
  </ng-template>
</app-common-dialog>
