<form appFormSubmit (ngSubmit)="objectController.actionCallback(primaryAction)"
      [formGroup]="addCreditForm" class="fl-content">
  <app-form-errors #formErrors [formGroup]="addCreditForm"></app-form-errors>
  <div layoutDirection="row" class="fl-margin-top-small">
    <mat-form-field appFlex="100">
      <mat-label>{{amountPlaceholder}}</mat-label>
      <input matInput [placeholder]="amountPlaceholder"
             type="number" formControlName="credit" required>
      <mat-error>{{fieldErrors['credit']}}</mat-error>
    </mat-form-field>
  </div>
</form>

