@@ -12,21 +12,56 @@ <h4 class="mat-h4 flex-98">
1212
1313 < mat-form-field class ="flex-31 ">
1414 < mat-label > {{ 'labels.inputs.Minimum' | translate }}</ mat-label >
15- < input type ="number " matInput formControlName ="minimumShares " />
15+ < input type ="number " matInput formControlName ="minimumShares " min ="1 " step ="1 " required />
16+ < mat-error *ngIf ="shareProductSettingsForm.get('minimumShares').hasError('required') ">
17+ Minimum is < strong > required</ strong >
18+ </ mat-error >
19+ < mat-error *ngIf ="shareProductSettingsForm.get('minimumShares').hasError('min') ">
20+ {{ 'labels.inputs.Minimum Shares per Client' | translate }}
21+ {{ 'labels.commons.must be greater than zero' | translate }}
22+ </ mat-error >
23+ < mat-error *ngIf ="shareProductSettingsForm.get('minimumShares').hasError('pattern') ">
24+ {{ 'labels.inputs.Minimum Shares per Client' | translate }}
25+ {{ 'labels.commons.must be an integer' | translate }}
26+ </ mat-error >
1627 </ mat-form-field >
1728
1829 < mat-form-field class ="flex-31 ">
1930 < mat-label > {{ 'labels.inputs.Default' | translate }}</ mat-label >
20- < input type ="number " matInput formControlName ="nominalShares " required />
21- < mat-error >
22- {{ 'labels.inputs.Default Shares per Client' | translate }} {{ 'labels.commons.is' | translate }}
23- < strong > {{ 'labels.commons.required' | translate }}</ strong >
31+ < input type ="number " matInput formControlName ="nominalShares " min ="1 " step ="1 " required />
32+ < mat-error *ngIf ="shareProductSettingsForm.get('nominalShares').hasError('required') ">
33+ Default is < strong > required</ strong >
34+ </ mat-error >
35+ < mat-error *ngIf ="shareProductSettingsForm.get('nominalShares').hasError('min') ">
36+ {{ 'labels.inputs.Default Shares per Client' | translate }}
37+ {{ 'labels.commons.must be greater than zero' | translate }}
38+ </ mat-error >
39+ < mat-error *ngIf ="shareProductSettingsForm.get('nominalShares').hasError('pattern') ">
40+ {{ 'labels.inputs.Default Shares per Client' | translate }}
41+ {{ 'labels.commons.must be an integer' | translate }}
2442 </ mat-error >
2543 </ mat-form-field >
2644
2745 < mat-form-field class ="flex-31 ">
2846 < mat-label > {{ 'labels.inputs.Maximum' | translate }}</ mat-label >
29- < input type ="number " matInput formControlName ="maximumShares " />
47+ < input type ="number " matInput formControlName ="maximumShares " min ="1 " step ="1 " required />
48+ < mat-error *ngIf ="shareProductSettingsForm.get('maximumShares').hasError('required') ">
49+ Maximum is < strong > required</ strong >
50+ </ mat-error >
51+ < mat-error *ngIf ="shareProductSettingsForm.get('maximumShares').hasError('min') ">
52+ {{ 'labels.inputs.Maximum Shares per Client' | translate }}
53+ {{ 'labels.commons.must be greater than zero' | translate }}
54+ </ mat-error >
55+ < mat-error *ngIf ="shareProductSettingsForm.get('maximumShares').hasError('pattern') ">
56+ {{ 'labels.inputs.Maximum Shares per Client' | translate }}
57+ {{ 'labels.commons.must be an integer' | translate }}
58+ </ mat-error >
59+ < mat-error *ngIf ="shareProductSettingsForm.hasError('sharesOrder') ">
60+ {{
61+ 'labels.commons.minimum must be less than or equal to default and default must be less than or equal to maximum'
62+ | translate
63+ }}
64+ </ mat-error >
3065 </ mat-form-field >
3166
3267 < h4 class ="mat-h4 flex-98 ">
0 commit comments