Yangman - rename controllers
[dlux.git] / modules / yangman-resources / src / main / resources / yangman / views / rightpanel / form / operational / list.tpl.html
1 <div ng-controller="YMListCtrl as yangList"
2      class="yangmanModule__right-panel__form__element-container"
3      ng-class="{'expanded' : node.expanded}"
4      ng-show="node.isFilled()">
5
6     <!-- container title -->
7     <div layout="row"
8          layout-align="start center"
9          class="container-label">
10
11         <!-- Expand Icon -->
12         <md-icon md-font-set="material-icons" class="top-icon top-element pointer" ng-click="yangList.toggleExpanded()">
13             <md-tooltip md-direction="left">{{ 'YANGMAN_SHOW_HIDE_CON' | translate }}</md-tooltip>
14             {{node.expanded ? 'keyboard_arrow_down':'keyboard_arrow_right'}}
15         </md-icon>
16
17         <!-- list label -->
18         <p class="top-element pointer list-label" ng-click="yangList.toggleExpanded()" ym-info-box node="node">
19             {{yangForm.getNodeName(node.localeLabel, node.label)}}
20         </p>
21
22         <!-- Action menu -->
23         <yang-form-menu is-action-menu="yangList.isActionMenu()"
24                         augmentations="augmentations"
25                         yang-form="yangForm"
26                         yang-list="yangList"
27                         node="node"></yang-form-menu>
28
29         <!--<ng-include src="currentPath+'/filter.tpl.html'"></ng-include>-->
30
31         <section layout="row"
32                  layout-align="start center"
33                  class="yangmanModule__right-panel__form__list__paginator"
34                  ng-include="yangForm.viewPath + '/list-data-top.tpl.html'"
35                  ng-if="!(node.filteredListData && node.filteredListData.length)"></section>
36
37         <div class="listItemWrapper"
38              ng-include="yangForm.viewPath + '/config/list-filtered-data-top.tpl.html'"
39              ng-if="(node.filteredListData && node.filteredListData.length)"></div>
40
41     </div>
42
43     <!-- list's children -->
44     <div ng-if="node.actElemStructure" ng-show="node.expanded">
45         <div ng-repeat="node in node.actElemStructure.getChildren(null,null,constants.NODE_UI_DISPLAY)"
46              ng-include="yangForm.viewPath + '/operational/' + node.type+'.tpl.html'"
47              ng-hide="node.augmentationId && !augmentations.getAugmentation(node.parent, node.augmentationId).expanded">
48         </div>
49     </div>
50 </div>
51