Merge branch 'maint-rel-1.6' into develop
This commit is contained in:
commit
0c9ad8bd08
4 changed files with 12 additions and 6 deletions
|
@ -862,3 +862,5 @@ view_labels_capitalized = Ver etiquetas
|
|||
view_labels_for = Ver Etiquetas de
|
||||
|
||||
select_an_existing_document = Seleccione un documento existente
|
||||
|
||||
datetime_year_required = Intervalos de fecha / hora deben empezar por un año. Ingrese una Fecha de inicio, un fin de año o los dos.
|
|
@ -63,8 +63,11 @@ public class DateTimeIntervalValidationVTwo implements N3ValidatorVTwo {
|
|||
// errors.put(startFieldName, "If there is an end date, there should be a start date");
|
||||
// return errors;
|
||||
// }
|
||||
|
||||
|
||||
// We need to ensure that the user has entered a start year or end year -- tlw72
|
||||
if ( literalListIsNull(formStartYear) && literalListIsNull(formStartYear) ) {
|
||||
errors.put(startFieldName, "Date/time intervals must begin with a year. Please enter a start year or an end year.");
|
||||
return errors;
|
||||
}
|
||||
//Assuming form start year and form end year are working in conjunction with multiple values
|
||||
int index;
|
||||
if (!literalListIsNull(formStartYear) && !literalListIsNull(formEndYear)) {
|
||||
|
|
|
@ -876,3 +876,5 @@ view_labels_capitalized = View Labels
|
|||
view_labels_for = View Labels for
|
||||
|
||||
select_an_existing_document = Select an existing document
|
||||
|
||||
datetime_year_required = Date/time intervals must begin with a year. Enter either a Start Year, an End Year or both.
|
|
@ -58,7 +58,7 @@
|
|||
<#if htmlForElements?keys?seq_contains("endField")>
|
||||
${i18n().end_capitalized} ${htmlForElements["endField"]}
|
||||
</#if>
|
||||
|
||||
<span class="requiredHint"> *${i18n().datetime_year_required}</span>
|
||||
<p class="submit">
|
||||
<input type="hidden" name="editKey" value="${editKey}" />
|
||||
<input type="submit" id="submit" value="${submitButtonText}" role="button" />
|
||||
|
@ -69,8 +69,7 @@
|
|||
</p>
|
||||
</form>
|
||||
|
||||
${stylesheets.add('<link rel="stylesheet" href="${urls.base}/edit/forms/css/customForm.css" />',
|
||||
'<link rel="stylesheet" href="${urls.base}/edit/forms/css/personHasEducationalTraining.css" />')}
|
||||
${stylesheets.add('<link rel="stylesheet" href="${urls.base}/templates/freemarker/edit/forms/css/customForm.css" />')}
|
||||
|
||||
${scripts.add('<script type="text/javascript" src="${urls.base}/js/utils.js"></script>',
|
||||
'<script type="text/javascript" src="${urls.base}/js/customFormUtils.js"></script>')}
|
Loading…
Add table
Reference in a new issue