<app-common-dialog [dialogContent]="dialogContent" [dialogRef]="dialogRef">
  <ng-template #dialogContent>
    <form appFormSubmit (ngSubmit)="renameVolume()" [formGroup]="renameForm">
      <app-form-errors #formErrors [formGroup]="renameForm"></app-form-errors>
      <mat-form-field class="full-width">
        <mat-label i18n>Name</mat-label>
        <input matInput placeholder="Name" i18n-placeholder type="text" formControlName="name">
        <mat-error i18n>{{renameForm.controls.name.errors | errorFormatter}}</mat-error>
      </mat-form-field>
    </form>
  </ng-template>
</app-common-dialog>
