1 | <div class="wrapper">
|
---|
2 | <form [formGroup]="forma" (ngSubmit)="save()">
|
---|
3 | <mat-form-field appearance="fill">
|
---|
4 | <mat-label>Име</mat-label>
|
---|
5 | <input matInput type="text" formControlName="name" required>
|
---|
6 | </mat-form-field><br/>
|
---|
7 | <mat-form-field appearance="fill">
|
---|
8 | <mat-label>Јачина</mat-label>
|
---|
9 | <input matInput type="text" formControlName="strength" required>
|
---|
10 | </mat-form-field><br/>
|
---|
11 | <mat-form-field appearance="fill">
|
---|
12 | <mat-label>Форма</mat-label>
|
---|
13 | <input matInput type="text" formControlName="form" required>
|
---|
14 | </mat-form-field><br/>
|
---|
15 | <mat-form-field appearance="fill">
|
---|
16 | <mat-label>Начин на издавање</mat-label>
|
---|
17 | <input matInput type="text" formControlName="wayOfIssuing" required>
|
---|
18 | </mat-form-field><br/>
|
---|
19 | <mat-form-field appearance="fill">
|
---|
20 | <mat-label>Производител</mat-label>
|
---|
21 | <input matInput type="text" formControlName="manufacturer" required>
|
---|
22 | </mat-form-field><br/>
|
---|
23 | <mat-form-field appearance="fill">
|
---|
24 | <mat-label>Цена</mat-label>
|
---|
25 | <input matInput type="text" formControlName="price" required>
|
---|
26 | </mat-form-field><br/>
|
---|
27 | <mat-form-field appearance="fill">
|
---|
28 | <mat-label>Пакување</mat-label>
|
---|
29 | <input matInput type="text" formControlName="packaging" required>
|
---|
30 | </mat-form-field><br/>
|
---|
31 | <button type="reset" class="btn btn-default" (click)="close()">Cancel</button>
|
---|
32 | <button type="submit" class="btn btn-success" [disabled]="!forma.valid">Save</button>
|
---|
33 | </form>
|
---|
34 | </div> |
---|