diff --git a/productMods/templates/freemarker/edit/forms/personHasEducationalTraining.ftl b/productMods/templates/freemarker/edit/forms/personHasEducationalTraining.ftl index 47cc3259..515b9538 100644 --- a/productMods/templates/freemarker/edit/forms/personHasEducationalTraining.ftl +++ b/productMods/templates/freemarker/edit/forms/personHasEducationalTraining.ftl @@ -22,6 +22,11 @@ <#assign majorFieldValue = lvf.getFormFieldValue(editSubmission, editConfiguration, "majorField") /> <#assign degreeValue = lvf.getFormFieldValue(editSubmission, editConfiguration, "degree") /> +<#--If edit submission exists, then retrieve validation errors if they exist--> +<#if editSubmission?has_content && editSubmission.submissionExists = true && editSubmission.validationErrors?has_content> + <#assign submissionErrors = editSubmission.validationErrors/> + + <#if editMode == "edit"> <#assign titleVerb="Edit"> <#assign submitButtonText="Edit Educational Training"> @@ -45,23 +50,40 @@

${titleVerb} educational training entry for ${subjectName}${editConfiguration.subjectName}

-<#-- -<#if errorTypeFieldIsEmpty??> - <#assign errorMessage = "Select a type of organization." /> - - -<#if errorNameFieldIsEmpty??> - <#assign errorMessage = "Enter a name for the organization." /> - ---> - -<#if errorMessage?has_content> +<#--Display error messages if any--> +<#if submissionErrors?has_content> -
@@ -81,6 +103,8 @@

+ +

@@ -93,16 +117,9 @@ -

-

- - - (Verify this match) -

- + <@lvf.acSelection urls.base /> - -
+

@@ -135,16 +152,17 @@ <#--Need to draw edit elements for dates here--> <#if htmlForElements?keys?seq_contains("startField")> - - ${htmlForElements["startField"]} + + ${htmlForElements["startField"]} ${yearHint} +

<#if htmlForElements?keys?seq_contains("endField")> - - ${htmlForElements["startField"]} + + ${htmlForElements["endField"]} ${yearHint} <#--End draw elements--> - +

or