yangUI changes
[dlux.git] / modules / loader-resources / src / main / resources / assets / views / yangui / choice.tpl.html
1 <div ng-controller="choiceCtrl" class="customContainer {{ node.expanded ? '' : 'withoutBorder' }}">\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_ELEM' | translate }}" ng-click='toggleExpanded()'></button>\r
5         <span>{{node.localeLabel | translate}}</span>\r
6         <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
7         <select class="form-control input-sm" style="width:300px" ng-model="node.choice" ng-options="node.label for node in node.getChildren(null, null, constants.NODE_UI_DISPLAY)">\r
8             <option value="">-</option>\r
9         </select>\r
10     </div>\r
11     \r
12     <div ng-repeat="case in node.getChildren(null,null,constants.NODE_UI_DISPLAY)" ng-include="currentPath+'/'+case.type+'.tpl.html'" ng-show="node.choice.id === case.id && node.expanded" ></div>\r
13 \r
14     <i class="icon-caret-down borderArrow" ng-show="node.expanded"></i>\r
15 <div>