Vivo 1630 Year field keeps the same label even when language is changed (#98)
* [VIVO-1630] Year field keeps the same label even when language is changed Resolves: https://jira.duraspace.org/browse/VIVO-1630
This commit is contained in:
parent
b45d20c9e4
commit
0bab502eb5
2 changed files with 6 additions and 1 deletions
|
@ -922,3 +922,7 @@ minimum_hour=Invalid entry. Please specify at least an Hour.
|
|||
year_month=Invalid entry. Please enter a Year and Month.
|
||||
decimal_only=Invalid entry. A decimal point is allowed, but thousands-separators are not.
|
||||
whole_number=Invalid entry. Enter a whole number with no decimal point or thousands-separators.
|
||||
|
||||
|
||||
label.dateTimeWithPrecision.year_capitalized = Year
|
||||
|
||||
|
|
|
@ -72,7 +72,8 @@ precisionConstants.second -- URI for precision
|
|||
|
||||
<#if precLevel gte 1>
|
||||
<#-- Only text input field in the mix. We should have some validation to ensure it's a valid year (4 digits, integer, etc) -->
|
||||
<label for="${fieldName}-year">Year<#if reqLevel gte 1> <span class="requiredHint">*</span></#if></label>
|
||||
<label for="${fieldName}-year">${i18n()[('label.dateTimeWithPrecision.year_capitalized')]}
|
||||
<#if reqLevel gte 1> <span class="requiredHint">*</span></#if></label>
|
||||
<input class="text-field" name="${fieldName}-year" id="${fieldName}-year" type="text" value="${year!}" size="4" maxlength="4" <#if reqLevel gte 1>required </#if>/>
|
||||
</#if>
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue