Moved display of personInPosition and hasResearchArea properties to a macro. Adjusted css selectors accordingly to align with auto-generated ids.
This commit is contained in:
parent
f33d0eac83
commit
43e18bf8af
2 changed files with 17 additions and 6 deletions
|
@ -33,6 +33,17 @@
|
|||
</#list>
|
||||
</#macro>
|
||||
|
||||
<#-- Full object property listing, including heading and ul wrapper element. -->
|
||||
<#macro objectPropertyListing property editable template=property.template>
|
||||
<#if property?has_content> <#-- true when the property is in the list, even if not populated (when editing) -->
|
||||
<#local localName = property.localName>
|
||||
<h2 id="${localName}">${property.name?capitalize} <@addLink property editable /></h2>
|
||||
<ul id="individual-${localName}" role="list">
|
||||
<@p.objectProperty property editable />
|
||||
</ul>
|
||||
</#if>
|
||||
</#macro>
|
||||
|
||||
<#macro objectPropertyList property editable statements=property.statements template=property.template>
|
||||
<#list statements as statement>
|
||||
<@propertyListItem property statement editable><#include "${template}"></@propertyListItem>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue