<app-common-dialog [dialogContent]="dialogContent" [dialogRef]="dialogRef">
  <ng-template #dialogContent>
    <form [formGroup]="createDatabaseReplicaForm" appFormSubmit layoutDirection="column" (ngSubmit)="createReplica()">
      <app-form-errors #formErrors [formGroup]="createDatabaseReplicaForm"></app-form-errors>
      <mat-form-field appFlex="100">
        <mat-label i18n>Name</mat-label>
        <input matInput placeholder="Name" i18n-placeholder formControlName="name" type="text" required>
        <mat-error i18n>{{createDatabaseReplicaForm.controls.name.errors | errorFormatter}}</mat-error>
      </mat-form-field>
    </form>
  </ng-template>
</app-common-dialog>
