<form appFormSubmit (ngSubmit)="objectController.actionCallback(primaryAction)" class="fl-content"
      *ngIf="createOptions" [formGroup]="routerForm" layoutDirection="column">
  <app-form-errors #formErrors [formGroup]="routerForm"></app-form-errors>

  <mat-form-field>
    <mat-label i18n>Subnet</mat-label>
    <mat-select formControlName="subnet" placeholder="Subnet" i18n-placeholder required>
      <mat-option *ngFor="let subnet of createOptions.subnets" [value]="subnet.id">
        {{ subnet.name }}: {{ subnet.cidr }} ({{ subnet.name }})
      </mat-option>
    </mat-select>
    <mat-error>{{fieldErrors['subnet']}}</mat-error>
  </mat-form-field>

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