<form appFormSubmit (ngSubmit)="objectController.actionCallback(primaryAction)" [formGroup]="loadBalancerForm">
  <!--suppress JSUnusedGlobalSymbols -->
  <app-form-errors #formErrors [formGroup]="loadBalancerForm"></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>
    <mat-form-field>
      <mat-label i18n>Description</mat-label>
      <input matInput placeholder="Description" i18n-placeholder type="text" formControlName="description">
      <mat-error>{{fieldErrors['description']}}</mat-error>
    </mat-form-field>
    <mat-checkbox formControlName="admin_state_up" color="primary" i18n>Admin state up</mat-checkbox>
  </div>
</form>
