date labels now display correctly

This commit is contained in:
tworrall 2011-11-17 16:43:59 +00:00
parent cd161798c8
commit 4c49f270c9
2 changed files with 16 additions and 14 deletions

View file

@ -111,12 +111,13 @@
<h4>Years of Participation in Grant</h4>
<#if htmlForElements?keys?seq_contains("startField")>
<label for="startField">Start Year ${yearHint}</label>
${htmlForElements["startField"]}
<label class="dateTime" for="startField">Start</label>
${htmlForElements["startField"]} ${yearHint}
</#if>
<p></p>
<#if htmlForElements?keys?seq_contains("endField")>
<label for="endField">End Year ${yearHint}</label>
${htmlForElements["endField"]}
<label class="dateTime" for="endField">End</label>
${htmlForElements["endField"]} ${yearHint}
</#if>
<p class="submit">

View file

@ -88,14 +88,14 @@
</#if>
</#if>
</#list>
<#--Checking if role field is empty-->
<#if lvf.submissionErrorExists(editSubmission, "roleLabel")>
Please specify a role for this activity.
</#if>
<#--Checking if Name field is empty-->
<#if lvf.submissionErrorExists(editSubmission, "activityLabel")>
Please enter or select a value in the Name field.
</#if>
<#--Checking if role field is empty-->
<#if lvf.submissionErrorExists(editSubmission, "roleLabel")>
Please specify a role for this activity.
</#if>
</p>
</section>
@ -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")>
<label for="startField">Start Year ${yearHint}</label>
${htmlForElements["startField"]}
<label class="dateTimeLabel" for="startField">Start Year</label>
${htmlForElements["startField"]} ${yearHint}
</#if>
<#else>
<h4>Years of Participation in ${roleDescriptor?capitalize}</h4>
<#if htmlForElements?keys?seq_contains("startField")>
<label for="startField">Start Year ${yearHint}</label>
${htmlForElements["startField"]}
<label class="dateTime" for="startField">Start</label>
${htmlForElements["startField"]} ${yearHint}
</#if>
<p></p>
<#if htmlForElements?keys?seq_contains("endField")>
<label for="endField">End Year ${yearHint}</label>
${htmlForElements["endField"]}
<label class="dateTime" for="endField">End</label>
${htmlForElements["endField"]} ${yearHint}
</#if>
</#if>
</div>