<form appFormSubmit (ngSubmit)="objectController.actionCallback(primaryAction)" [formGroup]="registrarFrom">
  <app-form-errors #formErrors [formGroup]="registrarFrom"></app-form-errors>
  <div layoutDirection="column">
    <mat-form-field>
      <mat-label i18n>Name</mat-label>
      <input matInput placeholder="Name" i18n-placeholder type="text" formControlName="name" required>
      <mat-error>{{fieldErrors['name']}}</mat-error>
    </mat-form-field>
    <app-autocomplete [control]="registrarFrom.controls.connector"
                      [placeholderUnselected]="connectorPlaceholderUnselected"
                      [placeholderSelected]="connectorPlaceholderSelected"
                      [optionsService]="registrarConnectorApiService"></app-autocomplete>
  </div>
</form>
