NIHVIVO-1332 Add object property add links
This commit is contained in:
parent
35e722f47a
commit
c02c26a393
9 changed files with 74 additions and 33 deletions
|
@ -6,6 +6,7 @@
|
|||
|
||||
<div class="contents">
|
||||
<div class="individualList">
|
||||
|
||||
<h2>${title}</h2>
|
||||
<#if subtitle??>
|
||||
<h4>${subtitle}</h4>
|
||||
|
|
|
@ -24,7 +24,7 @@
|
|||
<#list group.properties as property>
|
||||
<article class="property" role="article">
|
||||
<#-- Property display name -->
|
||||
<h3>${property.name}</h3>
|
||||
<h3>${property.name}</h3> <@p.addLink property showEditingLinks />
|
||||
|
||||
<#-- List the statements for each property -->
|
||||
<ul class="property-list" role="list">
|
||||
|
|
|
@ -32,6 +32,15 @@
|
|||
</#list>
|
||||
</#macro>
|
||||
|
||||
<#macro addLink property showEditingLinks>
|
||||
<#if showEditingLinks>
|
||||
<#local url = property.addUrl>
|
||||
<#if url?has_content>
|
||||
<a href="${url}">add</a>
|
||||
</#if>
|
||||
</#if>
|
||||
</#macro>
|
||||
|
||||
<#macro propertyListItem statement showEditingLinks>
|
||||
<li role="listitem">
|
||||
<#nested>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue