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