related to VIVO-628, there was no validation on the datetimeinterval form when no years are specified

This commit is contained in:
tworrall 2013-12-09 16:18:02 -05:00
parent 1ee2f64f13
commit 4e216e9360
4 changed files with 12 additions and 6 deletions

View file

@ -875,4 +875,6 @@ selection_in_process = Your selection is being processed.
view_labels_capitalized = View Labels
view_labels_for = View Labels for
select_an_existing_document = Select an existing document
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.

View file

@ -58,7 +58,7 @@
<#if htmlForElements?keys?seq_contains("endField")>
${i18n().end_capitalized}&nbsp; ${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>')}