<form appFormSubmit (ngSubmit)="objectController.actionCallback(primaryAction)"
      [formGroup]="flavorGroupForm" layoutDirection="column" class="fl-content fl-content-min-height">
  <app-form-errors #formErrors [formGroup]="flavorGroupForm"></app-form-errors>
  <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>Priority</mat-label>
    <input matInput placeholder="Priority" i18n-placeholder type="number" formControlName="priority" required>
    <mat-error>{{fieldErrors['priority']}}</mat-error>
  </mat-form-field>
  <mat-form-field>
    <mat-label i18n>Description</mat-label>
    <input matInput placeholder="Description" i18n-placeholder type="text" formControlName="description" required>
    <mat-error>{{fieldErrors['description']}}</mat-error>
  </mat-form-field>
  <mat-checkbox color="primary" formControlName="is_default" i18n>Is default</mat-checkbox>
</form>
