NIHVIVO-2584: Changed label EMAIL for ADDITIONAL EMAILS

This commit is contained in:
manolobevia 2011-06-24 16:54:48 +00:00
parent 451556e589
commit 6f42c8c992

View file

@ -3,10 +3,10 @@
<#-- Contact info on individual profile page -->
<#-- Primary Email -->
<@emailLinks "${core}primaryEmail" "primary-email" />
<@emailLinks "${core}primaryEmail" />
<#-- Additional Emails -->
<@emailLinks "${core}email" "additional-emails" />
<@emailLinks "${core}email" />
<#-- Phone -->
<#assign phone = propertyGroups.getPropertyAndRemoveFromList("${core}phoneNumber")!>
@ -24,10 +24,17 @@
</#if>
</#if>
<#macro emailLinks property listId>
<#macro emailLinks property>
<#assign email = propertyGroups.getPropertyAndRemoveFromList(property)!>
<#if property == "${core}primaryEmail">
<#local listId = "primary-email">
<#local label = "Primary Email">
<#else>
<#local listId = "additional-emails">
<#local label = "Additional Emails">
</#if>
<#if email?has_content> <#-- true when the property is in the list, even if not populated (when editing) -->
<@p.addLinkWithLabel email editable />
<@p.addLinkWithLabel email editable label/>
<#if email.statements?has_content> <#-- if there are any statements -->
<ul id="${listId}" class="individual-emails" role="list">
<#list email.statements as statement>