Updates to Tenderfoot individual display
This commit is contained in:
parent
7b7bffdc41
commit
7fd772c772
2 changed files with 42 additions and 33 deletions
|
@ -0,0 +1,8 @@
|
||||||
|
$(document).ready(function(){
|
||||||
|
$("#viewAllTab").on("click",function(){
|
||||||
|
$('[data-toggle="tab"]').parent().removeClass("active");
|
||||||
|
$("#viewAllTab").parent().addClass("active");
|
||||||
|
$("#viewAllTab").addClass("active");
|
||||||
|
$(".tab-pane").addClass("fade active in");
|
||||||
|
});
|
||||||
|
});
|
|
@ -8,58 +8,58 @@
|
||||||
<#assign sectionCount = 1 >
|
<#assign sectionCount = 1 >
|
||||||
|
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-md-12">
|
<div class="col-md-12">
|
||||||
<ul class="nav nav-tabs">
|
<ul class="nav nav-tabs">
|
||||||
<#list propertyGroups.all as groupTabs>
|
<#list propertyGroups.all as groupTabs>
|
||||||
<#if ( groupTabs.properties?size > 0 ) >
|
<#if ( groupTabs.properties?size > 0 ) >
|
||||||
<#assign groupName = groupTabs.getName(nameForOtherGroup)>
|
<#assign groupName = groupTabs.getName(nameForOtherGroup)>
|
||||||
<#if groupName?has_content>
|
<#if groupName?has_content>
|
||||||
<#--the function replaces spaces in the name with underscores, also called for the property group menu-->
|
<#--the function replaces spaces in the name with underscores, also called for the property group menu-->
|
||||||
<#assign groupNameHtmlId = p.createPropertyGroupHtmlId(groupName) >
|
<#assign groupNameHtmlId = p.createPropertyGroupHtmlId(groupName) >
|
||||||
<#else>
|
<#else>
|
||||||
<#assign groupName = "${i18n().properties_capitalized}">
|
<#assign groupName = "${i18n().properties_capitalized}">
|
||||||
<#assign groupNameHtmlId = "${i18n().properties}" >
|
<#assign groupNameHtmlId = "${i18n().properties}" >
|
||||||
</#if>
|
|
||||||
<#if tabCount = 1 >
|
|
||||||
<li data-toggle="tab" class="active" href="#${groupNameHtmlId?replace("/","-")}"><a href="#">${groupName?capitalize}</a></li>
|
|
||||||
<#assign tabCount = 2>
|
|
||||||
<#else>
|
|
||||||
<li data-toggle="tab" href="#${groupNameHtmlId?replace("/","-")}"><a href="#">${groupName?capitalize}</a></li>
|
|
||||||
</#if>
|
|
||||||
</#if>
|
</#if>
|
||||||
</#list>
|
<#if tabCount = 1 >
|
||||||
<#-- if (propertyGroups.all?size > 1) >
|
<li data-toggle="tab" class="active" href="#${groupNameHtmlId?replace("/","-")}"><a href="#">${groupName?capitalize}</a></li>
|
||||||
<li data-toggle="tab" href="viewAll"><a href="#">${i18n().view_all_capitalized}</a></li>
|
<#assign tabCount = 2>
|
||||||
</#if -->
|
<#else>
|
||||||
</ul>
|
<li data-toggle="tab" href="#${groupNameHtmlId?replace("/","-")}"><a href="#">${groupName?capitalize}</a></li>
|
||||||
</div>
|
</#if>
|
||||||
|
</#if>
|
||||||
|
</#list>
|
||||||
|
<#if (propertyGroups.all?size > 1) >
|
||||||
|
<li id="viewAllTab" data-toggle="tab" href="#viewAll"><a href="#">${i18n().view_all_capitalized}</a></li>
|
||||||
|
</#if>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-md-12 tab-content">
|
<div class="col-md-12 tab-content">
|
||||||
<#list propertyGroups.all as group>
|
<#list propertyGroups.all as group>
|
||||||
<#if (group.properties?size > 0)>
|
<#if (group.properties?size > 0)>
|
||||||
<#assign groupName = group.getName(nameForOtherGroup)>
|
<#assign groupName = group.getName(nameForOtherGroup)>
|
||||||
<#assign groupNameHtmlId = p.createPropertyGroupHtmlId(groupName) >
|
<#assign groupNameHtmlId = p.createPropertyGroupHtmlId(groupName) >
|
||||||
<#assign verbose = (verbosePropertySwitch.currentValue)!false>
|
<#assign verbose = (verbosePropertySwitch.currentValue)!false>
|
||||||
|
|
||||||
<div id="${groupNameHtmlId?replace("/","-")}"
|
<div id="${groupNameHtmlId?replace("/","-")}"
|
||||||
class="tab-pane <#if (sectionCount == 1) >active</#if>"
|
class="tab-pane <#if (sectionCount == 1) >active</#if>"
|
||||||
role="tabpanel">
|
role="tabpanel">
|
||||||
<#-- Display the group heading -->
|
<#-- Display the group heading -->
|
||||||
<#if groupName?has_content>
|
<#if groupName?has_content>
|
||||||
<#--the function replaces spaces in the name with underscores, also called for the property group menu-->
|
<#--the function replaces spaces in the name with underscores, also called for the property group menu-->
|
||||||
<#assign groupNameHtmlId = p.createPropertyGroupHtmlId(groupName) >
|
<#assign groupNameHtmlId = p.createPropertyGroupHtmlId(groupName) >
|
||||||
<h2 id="${groupNameHtmlId?replace("/","-")}" pgroup="tabs" class="hidden">${groupName?capitalize}</h2>
|
<h2 id="${groupNameHtmlId?replace("/","-")}" pgroup="tabs" class="hidden">${groupName?capitalize}</h2>
|
||||||
<#else>
|
<#else>
|
||||||
<h2 id="properties" pgroup="tabs" class="hidden">${i18n().properties_capitalized}</h2>
|
<h2 id="properties" pgroup="tabs" class="hidden">${i18n().properties_capitalized}</h2>
|
||||||
</#if>
|
</#if>
|
||||||
<#-- List the properties in the group -->
|
<#-- List the properties in the group -->
|
||||||
<#include "individual-properties.ftl">
|
<#include "individual-properties.ftl">
|
||||||
</div>
|
</div>
|
||||||
<#assign sectionCount = 2 >
|
<#assign sectionCount = 2 >
|
||||||
</#if>
|
</#if>
|
||||||
</#list>
|
</#list>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<script>
|
<script>
|
||||||
var individualLocalName = "${individual.localName}";
|
var individualLocalName = "${individual.localName}";
|
||||||
|
@ -68,3 +68,4 @@
|
||||||
${stylesheets.add('<link rel="stylesheet" href="${urls.base}/css/individual/individual-property-groups.css" />')}
|
${stylesheets.add('<link rel="stylesheet" href="${urls.base}/css/individual/individual-property-groups.css" />')}
|
||||||
${headScripts.add('<script type="text/javascript" src="${urls.base}/js/amplify/amplify.store.min.js"></script>')}
|
${headScripts.add('<script type="text/javascript" src="${urls.base}/js/amplify/amplify.store.min.js"></script>')}
|
||||||
${scripts.add('<script type="text/javascript" src="${urls.base}/js/individual/propertyGroupControls.js"></script>')}
|
${scripts.add('<script type="text/javascript" src="${urls.base}/js/individual/propertyGroupControls.js"></script>')}
|
||||||
|
${scripts.add('<script src="${urls.theme}/js/propertyGroupControls-bootstrap.js"></script>')}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue