yangui fixes
[dlux.git] / modules / yangui-resources / src / main / resources / yangui / views / leaf-list.tpl.html
1 <div ng-controller="leafListCtrl" class="customContainer leaflist {{ 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         <button class="btn-name ng-scope btn-slim">\r
6             {{getNodeName(node.localeLabel, node.label)}}\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         <button class="yangButton iconPlus inlineBlock" ng-click='addListElem()' tooltip="{{ 'LIST_ADD_ITEM' | translate }}" title="{{ 'LEAF_LIST_ADD_ELEM' | translate }}"></button>\r
10     </div>\r
11 \r
12     <div class="leafListValue" ng-repeat="elem in node.value" ng-show="node.expanded">\r
13         <input type="text" class="leaf-list-value form-control input-small" ng-model="elem.value" ng-change="changed()" />\r
14         <!-- <button class="btn btn-md btn-danger btn-slim" ng-click='removeListElem(elem)'><i class="icon-remove-sign"></i> {{ 'REMOVE_ELEM' | translate }}</button> -->\r
15         <button class="yangButton iconClose" tooltip="{{ 'REMOVE_ELEM' | translate }}" ng-click='removeListElem(elem)'></button>\r
16     </div>\r
17 \r
18     <i class="icon-caret-down borderArrow" ng-show="node.expanded"></i>\r
19 </div>