40 lines
1.7 KiB
HTML
40 lines
1.7 KiB
HTML
<div>
|
|
<form [formGroup]="form" (ngSubmit)="save()" novalidate>
|
|
<mat-card appearance="outlined">
|
|
<mat-toolbar color="secondary">
|
|
Edycja zbioru danych
|
|
<span class="fill-to-right"></span>
|
|
<button mat-button type="submit" [disabled]="form.invalid">Zapisz</button>
|
|
<button mat-button type="button" routerLink="../..">Anuluj</button>
|
|
</mat-toolbar>
|
|
<mat-card-content>
|
|
<mat-grid-list cols="2" rowHeight="90px">
|
|
<mat-grid-tile>
|
|
<mat-form-field class="detail-input">
|
|
<mat-label>Numer</mat-label>
|
|
<input matInput formControlName="number">
|
|
<mat-error *ngIf="form.controls['number'].touched && form.controls['number'].invalid">
|
|
Pole obowiązkowe
|
|
</mat-error>
|
|
</mat-form-field>
|
|
</mat-grid-tile>
|
|
|
|
<mat-grid-tile>
|
|
<mat-form-field class="detail-input">
|
|
<mat-select placeholder="Źródło" formControlName="name" (selectionChange)="generateNumber()">
|
|
<mat-option value="Import ręczny">Import ręczny</mat-option>
|
|
<mat-option value="Arkusz Google">Arkusz Google</mat-option>
|
|
<mat-option value="SAP">SAP</mat-option>
|
|
<mat-option value="Symfonia">Symfonia</mat-option>
|
|
</mat-select>
|
|
<mat-error *ngIf="form.controls['name'].touched && form.controls['name'].invalid">
|
|
Pole obowiązkowe
|
|
</mat-error>
|
|
</mat-form-field>
|
|
</mat-grid-tile>
|
|
</mat-grid-list>
|
|
|
|
</mat-card-content>
|
|
</mat-card>
|
|
</form>
|
|
</div> |