NIHVIVO-1332 Add object property add links

This commit is contained in:
rjy7 2011-01-11 19:21:11 +00:00
parent 35e722f47a
commit c02c26a393
9 changed files with 74 additions and 33 deletions

View file

@ -6,6 +6,7 @@
<div class="contents">
<div class="individualList">
<h2>${title}</h2>
<#if subtitle??>
<h4>${subtitle}</h4>

View file

@ -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">

View file

@ -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>