Merge "Yangman - operational data views bug fixing"
[dlux.git] / modules / yangman-resources / src / main / resources / yangman / views / rightpanel / form / config / list-filtered-data-top.tpl.html
1 <!-- previous item button -->
2 <button ng-click="shiftDisplayPrev()"
3         ng-show="showPrevButton()"
4         tooltip="{{ 'LIST_PREV_ITEM' | translate }}"
5         class="yangButton iconPrev"></button>
6
7 <!-- item list -->
8 <div class="listButtonWrapper"
9      ng-repeat="offset in displayOffsets"
10      ng-if="currentDisplayIndex + offset > -1 && node.filteredListData.length > currentDisplayIndex + offset">
11
12     <button class="btn btn-like-tab {{ (currentDisplayIndex + offset === node.actElemIndex ? 'btn-selected':'') }}"
13              ng-click="node.changeActElementData(currentDisplayIndex + offset,false)"
14              tooltip="{{getListName(offset, false).tooltip}}">
15         {{yangForm.getNodeName(node.localeLabel, node.label)}}&nbsp;{{ getListName(offset, true).name }}
16     </button>
17
18     <!-- delete button -->
19     <button class="yangButton iconClose"
20             tooltip="{{ 'LIST_DELETE_ITEM' | translate }}"
21             ng-click='removeListElem(currentDisplayIndex + offset,true)'></button>
22
23     <!-- duplicate indicator -->
24     <button class="yangButton iconDanger"
25             tooltip="{{ 'LIST_INDEX_DUPLICATE' | translate }}"
26             ng-show="node.doubleKeyIndexes.indexOf(currentDisplayIndex + offset)>-1"></button>
27 </div>
28
29 <!-- next item button -->
30 <button ng-click="shiftDisplayNext('filteredListData')"
31         ng-show="showNextButton('filteredListData')"
32         tooltip="{{ 'LIST_NEXT_ITEM' | translate }}"
33         class="yangButton iconNext"></button>