<app-common-dialog [dialogContent]="dialogContent" [dialogRef]="dialogRef">
  <ng-template #dialogContent>
  <div *ngIf="status" class="fl-margin-bottom" i18n>Status: {{status}}</div>
    <div layoutDirection="row">
      <form appFormSubmit (ngSubmit)="save()" [formGroup]="setFloatingIpPTRForm" class="full-width">
        <app-form-errors #formErrors [formGroup]="setFloatingIpPTRForm"></app-form-errors>
        <div layoutDirection="column">
          <mat-form-field>
            <mat-label i18n>Domain name</mat-label>
            <input matInput placeholder="Domain name" i18n-placeholder type="text" formControlName="ptrdname">
            <mat-error>{{ backendErrors['ptrdname'] }}</mat-error>
          </mat-form-field>
          <mat-form-field>
            <mat-label i18n>Description</mat-label>
            <input matInput placeholder="Description" i18n-placeholder type="text" formControlName="description">
            <mat-error>{{ backendErrors['description'] }}</mat-error>
          </mat-form-field>
          <mat-form-field>
            <mat-label i18n>TTL</mat-label>
            <input matInput placeholder="TTL" i18n-placeholder type="number" formControlName="ttl">
            <mat-error>{{ backendErrors['TTL'] }}</mat-error>
          </mat-form-field>
        </div>
      </form>
    </div>
  </ng-template>
</app-common-dialog>
