From 4c49f270c907c0d73ac9f7317be145e596d239d5 Mon Sep 17 00:00:00 2001 From: tworrall Date: Thu, 17 Nov 2011 16:43:59 +0000 Subject: [PATCH] date labels now display correctly --- .../edit/forms/addGrantRoleToPerson.ftl | 9 ++++---- .../edit/forms/addRoleToPersonTwoStage.ftl | 21 ++++++++++--------- 2 files changed, 16 insertions(+), 14 deletions(-) diff --git a/productMods/templates/freemarker/edit/forms/addGrantRoleToPerson.ftl b/productMods/templates/freemarker/edit/forms/addGrantRoleToPerson.ftl index 20beb5b7..0a7c73ea 100644 --- a/productMods/templates/freemarker/edit/forms/addGrantRoleToPerson.ftl +++ b/productMods/templates/freemarker/edit/forms/addGrantRoleToPerson.ftl @@ -111,12 +111,13 @@

Years of Participation in Grant

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

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

diff --git a/productMods/templates/freemarker/edit/forms/addRoleToPersonTwoStage.ftl b/productMods/templates/freemarker/edit/forms/addRoleToPersonTwoStage.ftl index 6348da39..f56eceb6 100644 --- a/productMods/templates/freemarker/edit/forms/addRoleToPersonTwoStage.ftl +++ b/productMods/templates/freemarker/edit/forms/addRoleToPersonTwoStage.ftl @@ -88,14 +88,14 @@ - <#--Checking if role field is empty--> - <#if lvf.submissionErrorExists(editSubmission, "roleLabel")> - Please specify a role for this activity. - <#--Checking if Name field is empty--> <#if lvf.submissionErrorExists(editSubmission, "activityLabel")> Please enter or select a value in the Name field. + <#--Checking if role field is empty--> + <#if lvf.submissionErrorExists(editSubmission, "roleLabel")> + Please specify a role for this activity. +

@@ -155,18 +155,19 @@ <#if numDateFields == 1 > <#--Generated html is a map with key name mapping to html string--> <#if htmlForElements?keys?seq_contains("startField")> - - ${htmlForElements["startField"]} + + ${htmlForElements["startField"]} ${yearHint} <#else>

Years of Participation in ${roleDescriptor?capitalize}

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

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