<app-common-dialog [dialogContent]="dialogContent" [dialogRef]="dialogRef">
  <ng-template #dialogContent>
    <form [formGroup]="createDatabaseInstanceFromBackupForm" appFormSubmit layoutDirection="column" (ngSubmit)="createDatabaseInstance()">
      <app-form-errors #formErrors [formGroup]="createDatabaseInstanceFromBackupForm"></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>{{createDatabaseInstanceFromBackupForm.controls.name.errors | errorFormatter}}</mat-error>
      </mat-form-field>
    </form>
  </ng-template>
</app-common-dialog>
