<div *ngIf="object" layoutDirection="column" class="fl-content fl-content-min-height">
  <p>Copy file: {{fileId}}</p>
  <form appFormSubmit (ngSubmit)="objectController.actionCallback(primaryAction)"
        [formGroup]="copyForm" layoutDirection="column">
    <!--suppress JSUnusedGlobalSymbols -->
    <app-form-errors #formErrors [formGroup]="copyForm"></app-form-errors>

    <app-autocomplete [control]="copyForm.controls.container"
                      [placeholderUnselected]="containerUnselectedPlaceholder"
                      [placeholderSelected]="containerSelectedPlaceholder"
                      [switchMapHandler]="containerOptionsSwitchMap"></app-autocomplete>

    <mat-form-field>
      <mat-label i18n>Destination file name</mat-label>
      <input matInput placeholder="Destination file name" i18n-placeholder
             type="text" formControlName="name"
             [maxLength]="maxObjectNameLength" required>
      <mat-error>{{fieldErrors['name']}}</mat-error>
    </mat-form-field>
  </form>
</div>
