Add max-length=4 and text-center in inputs of year-range
This commit is contained in:
parent
7e699ae8e7
commit
6be478cacc
|
@ -152,15 +152,13 @@ declare var UIkit;
|
||||||
</ng-template>
|
</ng-template>
|
||||||
<ng-template [ngIf]="type === 'year-range' && yearRange && formAsGroup">
|
<ng-template [ngIf]="type === 'year-range' && yearRange && formAsGroup">
|
||||||
<div class="uk-width-2-5">
|
<div class="uk-width-2-5">
|
||||||
<input #input class="input uk-text-truncate" [attr.placeholder]="yearRange.from.placeholder"
|
<input #input class="input uk-text-center uk-text-truncate" [attr.placeholder]="yearRange.from.placeholder"
|
||||||
(click)="activeIndex = 0;$event.preventDefault()"
|
maxlength="4" (click)="activeIndex = 0;$event.preventDefault()" [formControl]="getFormByName(yearRange.from.control)">
|
||||||
[formControl]="getFormByName(yearRange.from.control)">
|
|
||||||
</div>
|
</div>
|
||||||
<div class="uk-width-1-5 uk-text-center">-</div>
|
<div class="uk-width-1-5 uk-text-center">-</div>
|
||||||
<div class="uk-width-2-5">
|
<div class="uk-width-2-5">
|
||||||
<input #input class="input uk-text-truncate" [attr.placeholder]="yearRange.to.placeholder"
|
<input #input class="input uk-text-center uk-text-truncate" [attr.placeholder]="yearRange.to.placeholder"
|
||||||
(click)="activeIndex = 1;$event.preventDefault()"
|
maxlength="4" (click)="activeIndex = 1;$event.preventDefault()" [formControl]="getFormByName(yearRange.to.control)">
|
||||||
[formControl]="getFormByName(yearRange.to.control)">
|
|
||||||
</div>
|
</div>
|
||||||
</ng-template>
|
</ng-template>
|
||||||
<div
|
<div
|
||||||
|
|
Loading…
Reference in New Issue