yangui fixes
[dlux.git] / modules / yangui-resources / src / main / resources / yangui / views / operational / list.tpl.html
1 <div ng-controller="listCtrl" class="customContainer listContainer {{ node.expanded ? '' : 'withoutBorder' }}" ng-show='node.isFilled()'>\r
2     <div class="topContainerPart">\r
3         <span class="treeBullet containerBullet" ng-show="node !== selSubApi.node">&#8226;</span>\r
4         <button class="yangButton {{ node.expanded ? 'iconArrowDown' : 'iconArrowRight' }} inlineBlock" tooltip="{{ 'SHOW_HIDE_LIST' | translate }}" ng-click='toggleExpanded()'></button>\r
5         <button class="btn-slim btn-name inlineBlock">\r
6             {{getNodeName(node.localeLabel, node.label)}}&nbsp;{{ 'YANGUI_LIST_LABEL' | translate }}\r
7         </button>\r
8         <button ng-if="node.getChildren('description', null, null, 'label').length > 0" class="yangButton iconQuestion inlineBlock" tooltip="{{node.getChildren('description', null, null, 'label')[0]}}" ></button>\r
9 \r
10         <div class="modalWrapper">\r
11             <button ng-click="showModalWin()" ng-show="node.listData.length > 0  && !showModal" tooltip="{{ 'LIST_SHOW_ALL' | translate }}" class="yangButton iconList"></button>\r
12             <div class="listModal simpleContainer listFilterWindow" ng-show="showModal && node.listData.length > 0">\r
13                 <button class="yangButton iconListBck inlineBlock iconFilterOver" ng-click="showModalWin()"></button>\r
14                 <div class="leaf ng-scope">\r
15                     <span class="leaf-label list-title">{{ 'YANGUI_LIST_OF_NODES' | translate }}</span>\r
16                     <button class="yangButton icon-remove close" ng-click="showModalWin()"></button>\r
17                 </div>\r
18                 <div class="listWrapper">\r
19                     <ul>\r
20                         <li ng-repeat="_ in node.listData" class="pl30">\r
21                             <button class="yangButton iconView" ng-if="[currentDisplayIndex, currentDisplayIndex + 1, currentDisplayIndex - 1].indexOf($index) !== -1"></button>\r
22                             <button class="btn btn-like-tab {{ (node.actElemIndex === $index ? 'btn-selected':'') }} {{ ((node.doubleKeyIndexes.indexOf($index)>-1) ? 'btn-red':'') }}" style="margin-right: 5px" ng-click="node.changeActElementData($index)">\r
23                                 {{getNodeName(node.localeLabel, node.label)}}&nbsp;{{node.createListName($index)}}\r
24                             </button>\r
25                         </li>\r
26                     </ul>\r
27                 </div>\r
28             </div>\r
29         </div>\r
30 \r
31         <ng-include src="currentPath+'/filter.tpl.html'"></ng-include>\r
32 \r
33         <div class="listItemWrapper" ng-include="currentPath+'/operational/list-data-top.tpl.html'" ng-if="!(node.filteredListData && node.filteredListData.length)"></div>\r
34         <div class="listItemWrapper" ng-include="currentPath+'/operational/list-filtered-data-top.tpl.html'" ng-if="(node.filteredListData && node.filteredListData.length)"></div>\r
35     </div>\r
36 \r
37     <!-- <button ng-repeat="_ in node.listData" class="btn btn-orange {{ (node.actElemIndex === $index ? 'btn-selected':'') }} {{ ((node.doubleKeyIndexes.indexOf($index)>-1) ? 'btn-red':'') }} add-row ng-scope btn-slim" style="margin-right: 5px" ng-click="node.changeActElementData($index)">\r
38         {{node.localeLabel | translate}}&nbsp;{{node.createListName($index)}}\r
39     </button> -->\r
40 \r
41     <div ng-if="node.actElemStructure" ng-show="node.expanded"><!-- class="simpleContainer"  -->\r
42         <div ng-repeat="node in node.actElemStructure.getChildren(null,null,constants.NODE_UI_DISPLAY) | filter:filterNodes" ng-include="currentPath+'/operational/'+node.type+'.tpl.html'" >\r
43             <div class="clear"></div>\r
44         </div>\r
45     </div>\r
46 \r
47     \r
48     <i class="icon-caret-down borderArrow" ng-show="node.expanded"></i>\r
49 </div>\r