suffix-details.component.html 2.73 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50
<div class="form-row">
    <div class="col">
      <form class="form-group form-inline">
        <mat-form-field class="example-full-width">
          <mat-label>Suffix</mat-label>
          <input type="text"
                placeholder="Pick one"
                aria-label="Number"
                matInput
                [formControl]="suffixControl"
                [matAutocomplete]="autosuffix"
                >
            <mat-autocomplete autoActiveFirstOption #autosuffix="matAutocomplete">
            <mat-option *ngFor="let option of suffixfilteredOptions  | async" [value]="option">
              {{option}}
            </mat-option>
          </mat-autocomplete>
        </mat-form-field>
      </form>
    </div>
    <div class="col" >
        <form class="form-group form-inline">
          <mat-form-field class="example-full-width">
            <mat-label>Numerical Value</mat-label>
            <input type="number" matInput value=0 [(ngModel)]="currentsuffix.numerical" name="numerical">
          </mat-form-field>
        </form>
    </div>
    <div class="col">
        <form class="form-group form-inline">
          <mat-form-field class="example-full-width">
            <mat-label>Unit</mat-label>
            <input type="text"
                  placeholder="Pick one"
                  aria-label="Number"
                  matInput
                  [formControl]="mumerical_unitsControl"
                  [matAutocomplete]="automumerical_units"
                  >
              <mat-autocomplete autoActiveFirstOption #automumerical_units="matAutocomplete">
              <mat-option *ngFor="let option of mumerical_unitsfilteredOptions  | async" [value]="option">
                {{option}}
              </mat-option>
            </mat-autocomplete>
          </mat-form-field>
        </form>
      </div>
      <div class="col">
        <form class="form-group form-inline">
          <mat-form-field class="example-full-width">
51
            <mat-label>Flow</mat-label>
52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76
            <input type="text"
                  placeholder="Pick one"
                  aria-label="Number"
                  matInput
                  [formControl]="flowControl"
                  [matAutocomplete]="autoflow"
                  >
              <mat-autocomplete autoActiveFirstOption #autoflow="matAutocomplete">
              <mat-option *ngFor="let option of flowfilteredOptions  | async" [value]="option">
                {{option}}
              </mat-option>
            </mat-autocomplete>
          </mat-form-field>
        </form>
      </div>
      <div class="col">
        <button
          type="submit"
          class="badge badge-success mb-2"
          (click)="updateSuffix()"
        >
          Update Suffix
        </button>
      </div>
</div>