mirror of
https://github.com/GNS3/gns3-web-ui.git
synced 2024-12-28 00:38:50 +00:00
Enforce min/max for mat-input fields for ATM switch
This commit is contained in:
parent
a3d149dcbe
commit
6c292aeb24
@ -50,18 +50,19 @@
|
|||||||
</form>
|
</form>
|
||||||
<form [formGroup]="abstractForm">
|
<form [formGroup]="abstractForm">
|
||||||
<mat-form-field class="form-field">
|
<mat-form-field class="form-field">
|
||||||
<input matInput type="number" min="0" [(ngModel)]="sourceVpi" formControlName="sourceVpi" placeholder="VPI" />
|
<input matInput type="number" min="1" [(ngModel)]="sourceVpi" formControlName="sourceVpi" placeholder="VPI" />
|
||||||
</mat-form-field>
|
</mat-form-field>
|
||||||
</form>
|
</form>
|
||||||
<form [formGroup]="inputForm">
|
<form [formGroup]="inputForm">
|
||||||
<mat-form-field class="form-field">
|
<mat-form-field class="form-field">
|
||||||
<input matInput type="number" min="0" [(ngModel)]="sourceVci" formControlName="sourceVci" placeholder="VCI" />
|
<input matInput type="number" min="1" [(ngModel)]="sourceVci" formControlName="sourceVci" placeholder="VCI" />
|
||||||
</mat-form-field>
|
</mat-form-field>
|
||||||
Destination
|
Destination
|
||||||
<mat-form-field class="form-field">
|
<mat-form-field class="form-field">
|
||||||
<input
|
<input
|
||||||
matInput
|
matInput
|
||||||
type="number"
|
type="number"
|
||||||
|
min="0"
|
||||||
[(ngModel)]="destinationPort"
|
[(ngModel)]="destinationPort"
|
||||||
formControlName="destinationPort"
|
formControlName="destinationPort"
|
||||||
placeholder="Port"
|
placeholder="Port"
|
||||||
@ -73,6 +74,7 @@
|
|||||||
<input
|
<input
|
||||||
matInput
|
matInput
|
||||||
type="number"
|
type="number"
|
||||||
|
min="1"
|
||||||
[(ngModel)]="destinationVpi"
|
[(ngModel)]="destinationVpi"
|
||||||
formControlName="destinationVpi"
|
formControlName="destinationVpi"
|
||||||
placeholder="VPI"
|
placeholder="VPI"
|
||||||
@ -84,6 +86,7 @@
|
|||||||
<input
|
<input
|
||||||
matInput
|
matInput
|
||||||
type="number"
|
type="number"
|
||||||
|
min="1"
|
||||||
[(ngModel)]="destinationVci"
|
[(ngModel)]="destinationVci"
|
||||||
formControlName="destinationVci"
|
formControlName="destinationVci"
|
||||||
placeholder="VCI"
|
placeholder="VCI"
|
||||||
|
Loading…
Reference in New Issue
Block a user