From fae7b016243cd0b8348d5a984f4a5660f458aa84 Mon Sep 17 00:00:00 2001
From: tworrall ${errorMessage}
+ <#--below shows examples of both printing out all error messages and checking the error message for a specific field-->
+ <#list submissionErrors?keys as errorFieldName>
+ <#if errorFieldName == "startField">
+ <#if submissionErrors[errorFieldName]?contains("before")>
+ The Start Year must be earlier than the End Year.
+ <#else>
+ ${submissionErrors[errorFieldName]}
+ #if>
+ ${titleVerb} educational training entry for ${subjectName}${editConfiguration.subjectName}
-<#--
-<#if errorTypeFieldIsEmpty??>
- <#assign errorMessage = "Select a type of organization." />
-#if>
-
-<#if errorNameFieldIsEmpty??>
- <#assign errorMessage = "Enter a name for the organization." />
-#if>
--->
-
-<#if errorMessage?has_content>
+<#--Display error messages if any-->
+<#if submissionErrors?has_content>
-
+ <#elseif errorFieldName == "endField">
+ <#if submissionErrors[errorFieldName]?contains("after")>
+ The End Year must be later than the Start Year.
+ <#else>
+ ${submissionErrors[errorFieldName]}
+ #if>
+ #if>
+ #list>
+ <#--Checking if Org Type field is empty-->
+ <#if lvf.submissionErrorExists(editSubmission, "orgType")>
+ Please select a value in the Organization Type field.
+ #if>
+ <#--Checking if Org Name field is empty-->
+ <#if lvf.submissionErrorExists(editSubmission, "orgLabel")>
+ Please enter or select a value in the Name field.
+ #if>
+
+
@@ -93,16 +117,9 @@ #if> -
- - - (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> +
<#if htmlForElements?keys?seq_contains("endField")> - - ${htmlForElements["startField"]} + + ${htmlForElements["endField"]} ${yearHint} #if> <#--End draw elements--> - +or