[PORTAL-7] Rebase
[portal.git] / ecomp-portal-FE-common / client / app / directives / b2b-leftnav-ext / b2b-leftnav-ext.tpl.html
diff --git a/ecomp-portal-FE-common/client/app/directives/b2b-leftnav-ext/b2b-leftnav-ext.tpl.html b/ecomp-portal-FE-common/client/app/directives/b2b-leftnav-ext/b2b-leftnav-ext.tpl.html
new file mode 100644 (file)
index 0000000..240c8c9
--- /dev/null
@@ -0,0 +1,62 @@
+<!--\r
+  ================================================================================\r
+  ECOMP Portal\r
+  ================================================================================\r
+  Copyright (C) 2017 AT&T Intellectual Property\r
+  ================================================================================\r
+  Licensed under the Apache License, Version 2.0 (the "License");\r
+  you may not use this file except in compliance with the License.\r
+  You may obtain a copy of the License at\r
+  \r
+       http://www.apache.org/licenses/LICENSE-2.0\r
+  \r
+  Unless required by applicable law or agreed to in writing, software\r
+  distributed under the License is distributed on an "AS IS" BASIS,\r
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+  See the License for the specific language governing permissions and\r
+  limitations under the License.\r
+  ================================================================================\r
+  -->\r
+<div class="b2b-nav-menu" id="left-menu-main-div" ng-init="(showmenu = true)" ng-class="{false: 'left-menu-collapsed'}[showmenu]">\r
+       <div class="b2b-subnav-container" id="left-menu-subnav-container">\r
+               <ul class="b2b-subnav-content" id="left-menu-subnav-content">\r
+                       <li id="left-menu-subnav-content-li">\r
+                               <div ng-class="{true: 'leftmenu-arrow-expand', false: 'leftmenu-arrow-collapse'}[showmenu]"     id="left-menu-arrow-toggle-div">\r
+                                       <a ng-click="toggleDrawer(showmenu);(showmenu = !showmenu) " class="text-right" id="left-menu-arrow-toggle-anchor"> \r
+                                               <i ng-class="{true: 'icon-controls-left', false: 'icon-controls-right'}[showmenu]" id="left-menuf-arrow-toggle-icon">&nbsp;</i>\r
+                                       </a>\r
+                               </div>\r
+                       </li>\r
+                       <li ng-repeat="menu in menuData" ui-sref="{{menu.state}}" id="left-menu-li-{{menu.name.split(' ').join('-')}}">\r
+                               <span ng-class="{true: 'menu-icon', false: 'menu-icon-collapse'}[showmenu]"     \r
+                                       id="left-menu-span-{{menu.name.split(' ').join('-')}}"> \r
+                                       <span class="{{menu.imageSrc}}" id="icon-image-{{menu.name.split(' ').join('-')}}"></span>\r
+                               </span> \r
+                               <a ng-class="{expand: isOpen($index)}" ng-if="showmenu" title="{{menu.name}}"\r
+                                       aria-label="{{menu.name}}" aria-expanded="{{(idx==$index)?true:false;}}"\r
+                                       href="javascript:void(0);" id="parent-item-{{menu.name.split(' ').join('-')}}">\r
+                                       {{menu.name}} \r
+                                       <i aria-hidden="true" ng-if="(menu.menuItems.length > 0)"\r
+                                               class="b2b-icon-primary-plus-minus"\r
+                                               ng-class="idx==$index ? 'icon-primary-expanded' : 'icon-primary-collapsed'"></i>\r
+                               </a>\r
+                               <div role="region" aria-hidden="{{(isOpen($index))?false:true;}}" \r
+                                       id="left-menu-child-div-{{menu.name.split(' ').join('-')}}">\r
+                                       <ul ng-class="{expand: idx==$index}"\r
+                                               id="left-menu-child-ul-{{menu.name.split(' ').join('-')}}">\r
+                                               <li ng-repeat="menuItem in menu.menuItems"\r
+                                                       ng-click="liveLink($event, $index, $parent.$index)"\r
+                                                       id="left-menu-child-li-{{menuItem.name.split(' ').join('-')}}-{{menu.name.split(' ').join('-')}}">\r
+                                                       <a ng-class="{active: itemIdx==$index && navIdx==$parent.$index}"\r
+                                                               aria-hidden="{{!(idx==$parent.$index)}}" aria-label="{{menuItem.name}}" \r
+                                                               title="{{menuItem.name}}" href="{{menuItem.href}}"\r
+                                                               tabindex="{{(idx==$parent.$index)?0:-1;}}"\r
+                                                               id="child-item-{{menuItem.name.split(' ').join('-')}}">{{menuItem.name}}\r
+                                                       </a>\r
+                                               </li>\r
+                                       </ul>\r
+                               </div>\r
+                       </li>\r
+               </ul>\r
+       </div>\r
+</div>\r