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