2012-05-31 14:00:17 +00:00
|
|
|
<#-- $This file is distributed under the terms of the license in /doc/license.txt$ -->
|
|
|
|
|
|
|
|
<#--
|
|
|
|
Used to display both the object and data property hierarchies, though there are
|
|
|
|
separate controllers for those. Also used to display lists of "all" object and
|
|
|
|
data properties, though there are separate controllers for those, too.
|
|
|
|
-->
|
2012-07-03 15:33:52 +00:00
|
|
|
<#if propertyType??>
|
|
|
|
<#assign propType = propertyType>
|
|
|
|
<#else>
|
|
|
|
<#assign propType = "group">
|
|
|
|
</#if>
|
2012-05-31 14:00:17 +00:00
|
|
|
|
|
|
|
|
|
|
|
<section role="region">
|
|
|
|
|
|
|
|
<h2>${pageTitle!}</h2>
|
|
|
|
|
|
|
|
<#if !displayOption?has_content>
|
|
|
|
<#assign displayOption = "hierarchy">
|
|
|
|
</#if>
|
|
|
|
|
2012-07-03 15:33:52 +00:00
|
|
|
<#if propType == "group">
|
|
|
|
<form action="editForm" method="get">
|
2013-05-20 15:36:37 -04:00
|
|
|
<input type="submit" class="form-button" id="addProperty" value="${i18n().add_property_group}"/>
|
2012-07-03 15:33:52 +00:00
|
|
|
<input type="hidden" name="controller" value="PropertyGroup"/>
|
|
|
|
</form>
|
2013-05-20 15:36:37 -04:00
|
|
|
<div id="expandLink"><span id="expandAll" ><a href="javascript:" title="${i18n().hide_show_properties}">${i18n().hide_properties}</a></span></div>
|
2012-07-03 15:33:52 +00:00
|
|
|
<#else>
|
|
|
|
<form name="classHierarchyForm" id="classHierarchyForm" action="show<#if propType == "object">Object<#else>Data</#if>PropertyHierarchy" method="post" role="classHierarchy">
|
2013-05-20 15:36:37 -04:00
|
|
|
<label id="displayOptionLabel" class="inline">${i18n().display_options}</label>
|
2012-07-03 15:33:52 +00:00
|
|
|
<select id="displayOption" name="displayOption">
|
2013-05-20 15:36:37 -04:00
|
|
|
<option value="hierarchy" <#if displayOption == "asserted">selected</#if> >${propType?capitalize} ${i18n().property_hierarchy}</option>
|
|
|
|
<option value="all" <#if displayOption == "all">selected</#if> >${i18n().all_x_properties(propType?capitalize)}</option>
|
|
|
|
<option value="group" <#if displayOption == "group">selected</#if> >${i18n().property_groups}</option>
|
2012-07-03 15:33:52 +00:00
|
|
|
</select>
|
2013-05-20 15:36:37 -04:00
|
|
|
<input type="submit" class="form-button" id="addProperty" value="${i18n().add_new} <#if propType == "object">${i18n().object}<#else>${i18n().data}</#if> ${i18n().property}"/>
|
2012-07-03 15:33:52 +00:00
|
|
|
</form>
|
2013-05-20 15:36:37 -04:00
|
|
|
<div id="expandLink"><span id="expandAll" ><a href="#" title="${i18n().expand_all}">${i18n().expand_all}</a></span></div>
|
2012-07-03 15:33:52 +00:00
|
|
|
</#if>
|
2012-05-31 14:00:17 +00:00
|
|
|
|
|
|
|
<section id="container">
|
|
|
|
</section>
|
|
|
|
|
|
|
|
</section>
|
|
|
|
<script language="javascript" type="text/javascript" >
|
|
|
|
var json = [${jsonTree!}];
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
|
|
<script language="javascript" type="text/javascript" >
|
|
|
|
$(document).ready(function() {
|
2012-07-03 15:33:52 +00:00
|
|
|
objectPropHierarchyUtils.onLoad("${urls.base!}","${displayOption!}","${propType}");
|
2012-05-31 14:00:17 +00:00
|
|
|
});
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
|
|
${stylesheets.add('<link rel="stylesheet" href="${urls.base}/css/classHierarchy.css" />')}
|
|
|
|
|
|
|
|
${scripts.add('<script type="text/javascript" src="${urls.base}/js/jquery-ui/js/jquery-ui-1.8.9.custom.min.js"></script>',
|
|
|
|
'<script type="text/javascript" src="${urls.base}/js/siteAdmin/objectPropertyHierarchyUtils.js"></script>')}
|
|
|
|
|