<form appFormSubmit [formGroup]="userGroupForm" (ngSubmit)="objectController.actionCallback(primaryAction)"
      layoutDirection="column" class="fl-content">
  <app-form-errors #formErrors [formGroup]="userGroupForm"></app-form-errors>
  <mat-form-field>
    <mat-label i18n>Group name</mat-label>
    <input matInput placeholder="Group name" i18n-placeholder type="text" formControlName="name" required>
    <mat-error>{{fieldErrors['name']}}</mat-error>
  </mat-form-field>

  <mat-form-field>
    <mat-label i18n>Group description</mat-label>
    <input matInput placeholder="Group description" i18n-placeholder type="text" formControlName="description">
    <mat-error>{{fieldErrors['description'] }}</mat-error>
  </mat-form-field>

  <mat-checkbox formControlName="is_default" [color]="'primary'" i18n>Is default</mat-checkbox>
</form>
