wired sxp-mapper features to gbp distro
[groupbasedpolicy.git] / groupbasedpolicy-old-ui / module / src / main / resources / gbp / views / governance / node-structure.tpl.html
1 <div ng-controller="layerCtrl" ng-init="init(key,value)" class="{{ checkData(value, 'Object') ? 'customContainer' : '' }}">
2
3     <div ng-if="checkData(value, 'Object')" class="topContainerPart">
4         <span class="treeBullet containerBullet" ng-if="key !== 'subject-feature-definitions'">&#8226;</span>
5         <button class="yangButton {{ expanded ? 'iconArrowDown' : 'iconArrowRight' }} inlineBlock" tooltip="Show / Hide container" ng-click='toggleExpanded()'></button>
6         <button class="btn-name btn-slim">
7             {{key}}
8         </button>
9
10         <div ng-if="checkData(data, 'Array')" class="listPagination inlineBlock" ng-show="data.length > 0">
11             <button ng-click="shiftDisplayPrev()" ng-show="showPrevButton()" tooltip="Show previous item" class="yangButton iconPrev"></button>
12             <div class="paginationItemWrapper">
13                 <button ng-repeat="offset in displayOffsets track by $index" ng-if="currentDisplayIndex + offset > -1 && data.length > currentDisplayIndex + offset" class="btn  btn-like-tab {{ (data[currentDisplayIndex + offset] === actSelected ? 'btn-selected':'') }}" ng-click="setActData(data[currentDisplayIndex + offset])" tooltip="Select this node">
14                     {{ data[currentDisplayIndex + offset].name }}
15                 </button>
16             </div>
17             <button ng-click="shiftDisplayNext()"  ng-show="showNextButton('listData')" tooltip="Show next item" class="yangButton iconNext"></button>
18         </div>
19     </div>
20
21     <div class="leaf" ng-if="!checkData(value, 'Object') && !checkData(value, 'Array')">
22         <span class="treeBullet" ng-if="key !== 'subject-feature-definitions'">&#8226;</span>
23         <span class="leaf-label col-md-2">
24             {{ key }}
25         </span>
26         <span class="leaf-label col-md-9"><strong>{{value}}</strong></span>
27         <div class="clear"></div>
28     </div>
29
30     <div ng-if="checkData(data, 'Array')" ng-repeat="(key, value) in actSelected track by $index" ng-include src="view_path+'/node-structure.tpl.html'" ng-show="expanded">
31     </div>
32
33     <div ng-if="!checkData(data, 'Array') && checkData(data, 'Object')" ng-repeat="(key, value) in data track by $index" ng-include src="view_path+'/node-structure.tpl.html'" ng-show="expanded">
34     </div>
35
36     <i class="icon-caret-down borderArrow"></i>
37 </div>