NIHVIVO-1071 Attempting to restore function where we jump back to the property in when returning from an edit form. Still needs work (have to run a couple questions by Rebecca)
This commit is contained in:
parent
02b1ef29a7
commit
f5fb93df93
1 changed files with 17 additions and 18 deletions
|
@ -3,9 +3,9 @@
|
||||||
<#-- Template for property listing on individual profile page -->
|
<#-- Template for property listing on individual profile page -->
|
||||||
|
|
||||||
<#import "lib-properties.ftl" as p>
|
<#import "lib-properties.ftl" as p>
|
||||||
|
<#import "lib-dump.ftl" as dumper>
|
||||||
|
|
||||||
<#list propertyGroups.all as group>
|
<#list propertyGroups.all as group>
|
||||||
|
|
||||||
<#assign groupname = group.name(nameForOtherGroup)>
|
<#assign groupname = group.name(nameForOtherGroup)>
|
||||||
|
|
||||||
<section class="property-group" role="region">
|
<section class="property-group" role="region">
|
||||||
|
@ -14,32 +14,31 @@
|
||||||
<img src="${urls.images}/individual/scroll-up.png" alt="scroll to property group menus" />
|
<img src="${urls.images}/individual/scroll-up.png" alt="scroll to property group menus" />
|
||||||
</a>
|
</a>
|
||||||
</nav>
|
</nav>
|
||||||
|
|
||||||
<#-- Display the group heading -->
|
<#-- Display the group heading -->
|
||||||
<#if groupname?has_content>
|
<#if groupname?has_content>
|
||||||
<h2 id="${groupname}">${groupname?capitalize}</h2>
|
<h2 id="${groupname}">${groupname?capitalize}</h2>
|
||||||
</#if>
|
</#if>
|
||||||
|
|
||||||
<#-- List the properties in the group -->
|
<#-- List the properties in the group -->
|
||||||
<#list group.properties as property>
|
<#list group.properties as property>
|
||||||
|
<#assign propertyNameCamel = property.name?capitalize?replace(" ", "")?uncap_first />
|
||||||
<article class="property" role="article">
|
<article class="property" role="article">
|
||||||
<#-- Property display name -->
|
<#-- Property display name -->
|
||||||
<h3>${property.name} <@p.addLink property editing /></h3>
|
<h3 id="${propertyNameCamel}">${property.name} <@p.addLink property editing /></h3>
|
||||||
<#-- List the statements for each property -->
|
<#-- List the statements for each property -->
|
||||||
<ul class="property-list" role="list">
|
<ul class="property-list" role="list">
|
||||||
<#-- data property -->
|
<#-- data property -->
|
||||||
<#if property.type == "data">
|
<#if property.type == "data">
|
||||||
<@p.dataPropertyList property.statements editing />
|
<@p.dataPropertyList property.statements editing />
|
||||||
|
<#-- object property -->
|
||||||
<#-- object property -->
|
<#elseif property.collatedBySubclass> <#-- collated -->
|
||||||
<#elseif property.collatedBySubclass> <#-- collated -->
|
|
||||||
<@p.collatedObjectPropertyList property editing />
|
<@p.collatedObjectPropertyList property editing />
|
||||||
<#else> <#-- uncollated -->
|
<#else> <#-- uncollated -->
|
||||||
<@p.objectPropertyList property.statements property.template editing />
|
<@p.objectPropertyList property.statements property.template editing />
|
||||||
</#if>
|
</#if>
|
||||||
</ul>
|
</ul>
|
||||||
</article> <!-- end property -->
|
</article> <!-- end property -->
|
||||||
</#list>
|
</#list>
|
||||||
</section> <!-- end property-group -->
|
</section> <!-- end property-group -->
|
||||||
</#list>
|
</#list>
|
||||||
|
|
Loading…
Add table
Reference in a new issue