summaryrefslogtreecommitdiffstats
path: root/ecomp-sdk/epsdk-app-overlay/src/main/webapp/app/fusion/scripts/view-models/header.html
blob: e7616d944ca596ff604cc22e86bc7e7796b339e6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
<div style="position: relative; z-index: 999;">
    <div class="headerContainer" id="headerContainer" ng-show="{{showHeader}}">
        <div style="position: relative; z-index: 999;">
            <div class="headerContainer" id="headerContainer">
                <div id="megaMenuContainer" class="megaMenuContainer" style="margin-top: 0; overflow: visible;">
                    <!--for mega Menu-->
                    <!-- Mega Menu parent-tab directive with three models menu-items, active-sub-menu, active-menu -->
                    <div id="topMenu" class="top-megamenu" ng-mouseleave="activeClickSubMenu.x.active=false; activeClickMenu.x.active=false" >
                        <div style="float:left;width:100%;"parent-tab menu-items="megaMenuDataObject" active-sub-menu='activeClickSubMenu.x' active-menu='activeClickMenu.x'>
                            <div parentmenu-tabs mega-menu="true" menu-items="megaMenuDataObject" style="height:55px;">
                                <div style="float:left">
                                    <li class="megamenu__item" style="line-height:55px;" ng-click="returnToPortal()">
                                       
                                        <strong	style="font-weight: 400 !important; font-family: clearview_att_bold !important; font-size: 18px;" >ECOMP Portal</strong>
                                    </li>
                                    <div menu-tabs mega-menu="true" tab-name="item.text" menu-item="item"
                                         active-menu="activeClickMenu.x"
                                         ng-repeat="item in megaMenuDataObject"
                                         style="font-size: 18px;"
                                         ng-mousedown="loadFavorites()">
                                        <div parentmenu-tabs sub-menu="true" ng-show="activeClickMenu.x.active && item.active"
                                             menu-items="activeClickMenu.x.children">

                              <!-- Second level menu -->
                                            <div menu-tabs sub-menu="true" tab-name="subItem.text"
                                                 tab-url="subItem.url"  menu-item="subItem"
                                                 ng-repeat="subItem in activeClickMenu.x.children | orderBy : 'column'" active-menu="activeClickSubMenu.x"
                                                 sub-item-active="{{subItem.active}}" style="float:left;" aria-label="{{subItem.text}}"
                                                 ng-mouseenter="submenuLevelAction(subItem.text,subItem.column)"
                                                 ng-mouseleave="submenuLevelAction(subItem.text,subItem.column)"
                                                 ng-click="submenuLevelAction(subItem.text,subItem.column)"  >
                                                <i ng-if="subItem.text=='Favorites'" id="favorite-star"
                                                   class="icon-star favorites-icon-active">
                                                </i>
											</div>
                                                <div class="sub__menu" ng-mouseleave="activeClickSubMenu.x.active=false" >
                                                    <ul ng-show="activeClickSubMenu.x.active"  role="menubar" class="columns">
                                                        <!-- Third level menu -->
                                                        <div menu-tabs
                                                             menu-item="subItem"
                                                             class="columns-div"
                                                             ng-repeat="subItem in activeClickSubMenu.x.children | orderBy : 'column'"
                                                             ng-show="activeClickSubMenu.x.active">

                                                            <i id="favorite-selector-third-level"
                                                               ng-show="isUrlFavorite(subItem.menuId)==false"
                                                               class="icon-star favorites-icon-inactive"
                                                               ng-if="subItem.url.length > 1">
                                                            </i>
                                                            <i id="favorite-selector-third-level"
                                                               ng-show="isUrlFavorite(subItem.menuId)"
                                                               class="icon-star favorites-icon-active"
                                                               ng-if="subItem.url.length > 1">
                                                            </i>
															<span class="title" aria-label="{{subItem.text}}"
                                                                  ng-click="goToUrl(subItem)">{{subItem.text}}</span>
                                                            <!-- Fourth level menus -->
                                                            <div att-links-list="">
                                                                <i id="favorite-selector-fourth-level"
                                                                   class="icon-star favorites-icon-inactive"
                                                                   ng-show="isUrlFavorite(tabValue.menuId)==false"
                                                                   ng-if="tabValue.url.length > 1">

                                                                </i>
                                                                <i id="favorite-selector-fourth-level"
                                                                   class="icon-star favorites-icon-active"
                                                                   ng-show="isUrlFavorite(tabValue.menuId)"
                                                                   ng-if="tabValue.url.length > 1">

                                                                </i>
					                                            <span role="menuitem" att-links-list-item=""
                                                                      ng-repeat="tabValue in subItem.children"
                                                                      ng-click="goToUrl(tabValue)"
                                                                      att-accessibility-click="13,32"
                                                                      ng-class="{'disabled': tabValue.disabled}">{{tabValue.text}}</span>
                                                            </div>
                                                            <hr ng-show="!$last"/>
                                                        </div>
                                                    </ul>
									<!-- Favorites level menu -->
                                                    <div class="favorites-window" ng-show='favoritesWindow' ng-mouseleave="hideFavoritesWindow()">
                                                        <div id="favorites-menu-items" ng-show="showFavorites">
                                                            <div ng-repeat="subItem in favoritesMenuItems"
                                                                 att-links-list=""
                                                                 style='display: inline'>
                                                                <i id="favorite-selector-favorites-list"
                                                                   class="icon-star favorites-icon-active"
                                                                >
                                                                </i>
                                                                <a id="favorites-list" aria-label="{{subItem.text}}"
                                                                   ng-click="goToUrl(subItem)"
                                                                   style="margin-left: 3px; margin-right: 20px; text-decoration: none; color: #666666;">
                                                                    {{subItem.text}}
                                                                </a>
                                                            </div>
                                                            <div>
                                                                <br>
                                                                <p style='font-weight: 400; font-family: clearview_att_bold !important;
															    font-size: 18px; text-align: center; background-color: lightgray;
															    width: 400px; margin-left: 25%; margin-right: 25%;'>
                                                                    Manage favorites on ECOMP Portal.
                                                                </p>
                                                            </div>
                                                        </div>
                                                        <!-- Favorites when empty -->
                                                        <div id="favorites-empty" ng-show="emptyFavorites" class="favorites-window-empty">
                                                            <div>
                                                                <img src="app/fusion/external/ebz/images/no_favorites_star.png">
                                                                <p class='favoritesLargeText'>No Favorites</p>
                                                                <p class='favoritesNormalText'>Manage favorites on ECOMP Portal.</p>
                                                            </div>
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </div >
                                    <li class="megamenu__item" style="line-height:55px;" ng-if="loadMenufail">
                                        <strong	style="font-weight: 400 !important; font-family: clearview_att_bold !important; font-size: 18px;" >Unable to load menus</strong>
                                    </li>
                                    <div  style="float:right">
	                                    <li id="bcLoginSnippet" class="megamenu__item" style="width: 140px;" >
	                                        <div  popover="loginSnippet.html"  aria-label="Login Snippet"
	                                              referby="loginSnippet" att-accessibility-click="13,32" popover-style="\" popover-placement="below" style="width: 200px;">
	                                            <div class="icon-user-small login-snippet-icon"></div>
	                                            <div class="login-snippet-text" style="display: inline-block; font-size:12px; margin-left:5px;overflow: hidden; max-height: 31px; overflow: hidden; max-height: 31px;   max-width:120px; padding-top: 0px; margin-top: 0px; white-space: nowrap;">{{userFirstName}}</div>
	                                        </div>
	                                    </li>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div style="clear: both"></div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<script type="text/ng-template" id="loginSnippet.html">
    <div style="line-height: normal; right: 167px; min-height: 200px; height: auto; width: auto; " ng-controller="loginSnippetCtrl" >
        <div id="reg-header-snippet">
            <div class="reg-profilePicture" style="min-height: 215px; width: auto; " id="reg-profile-links">
                <div id="reg-profileImage">
                    <div style="clear: both; height: 80px; position: relative; width: 80px;">
                        <span style="  background-position: -1px -1px; height: 81px;left: 0;position: absolute;top: 0;width: 81px;">&nbsp;</span>
                    </div>
                </div>
                <div id="reg-logout-div">
                    <a class="reg-logout-btn" href="logout.htm">Log Out</a>
                </div>
            </div>
            <div tabindex="0" class="reg-profileDetails" id="reg-profiledetails-id">
                <ul class="reg-Details-table" style="list-style: none;">
                    <li><div class="reg-userName-table"><div id="reg-userName-table-row"><div id="reg-userName-table-cell"><h3 class="att-global-fonts" style="font-size:18px !important;" id="reg-userName">{{userProfile.fullName}}&nbsp;</h3><span class="visuallyhidden">.</span></div></div></div></li>
                    <li><div class="reg-userEmail-label"><span class="reg-userEmail-label-spn">EMAIL<span class="visuallyhidden">:</span></span></div></li>
                    <li><div class="reg-userEmail-value"><span class="reg-userEmail-value-spn">{{userProfile.email}}<span class="visuallyhidden">.</span></span></div></li>
                 </ul>
            </div>
        </div>
    </div>
</script>