Yangman - rename controllers
[dlux.git] / modules / yangman-resources / src / main / resources / yangman / views / rightpanel / form / config / 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-init="yangList.init()">
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                         add-list-item-func="yangList.addListElem()"
26                         add-list-item="!yangList.disableAddingListElement"
27                         yang-form="yangForm"
28                         yang-list="yangList"
29                         node="node"></yang-form-menu>
30
31         <!--<ng-include src="currentPath+'/filter.tpl.html'"></ng-include>-->
32
33         <section layout="row"
34                  layout-align="start center"
35                  class="yangmanModule__right-panel__form__list__paginator"
36                  ng-include="yangForm.viewPath + '/list-data-top.tpl.html'"
37                  ng-if="!(node.filteredListData && node.filteredListData.length)"></section>
38
39         <div class="listItemWrapper"
40              ng-include="yangForm.viewPath + '/config/list-filtered-data-top.tpl.html'"
41              ng-if="(node.filteredListData && node.filteredListData.length)"></div>
42
43     </div>
44
45     <!-- list's children -->
46     <div ng-if="node.actElemStructure" ng-show="node.expanded">
47         <div ng-repeat="node in node.actElemStructure.getChildren(null,null,constants.NODE_UI_DISPLAY) | ymOnlyConfigElem"
48              ng-include="yangForm.viewPath + '/config/' + node.type+'.tpl.html'"
49              ng-hide="node.augmentationId && !augmentations.getAugmentation(node.parent, node.augmentationId).expanded">
50         </div>
51     </div>
52 </div>