nexus site path corrected
[portal.git] / ecomp-portal-FE / client / app / views / users / users.tpl.html
1 <!--
2   ================================================================================
3   eCOMP Portal
4   ================================================================================
5   Copyright (C) 2017 AT&T Intellectual Property
6   ================================================================================
7   Licensed under the Apache License, Version 2.0 (the "License");
8   you may not use this file except in compliance with the License.
9   You may obtain a copy of the License at
10   
11        http://www.apache.org/licenses/LICENSE-2.0
12   
13   Unless required by applicable law or agreed to in writing, software
14   distributed under the License is distributed on an "AS IS" BASIS,
15   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16   See the License for the specific language governing permissions and
17   limitations under the License.
18   ================================================================================
19   -->
20 <div class="w-ecomp-main">
21     <div class="w-ecomp-main-container">
22         <div class="users-page-main"  id="contentId">
23             <div id="users-page-title" class="w-ecomp-main-view-title">Users</div>
24             <div class="users-table">
25             
26             
27                 <div class="table-control">
28                     <div class="c-ecomp-att-abs-select default">
29                         <div class="form-field" id="form-field"
30                              att-select="users.adminApps"
31                              ng-model="users.selectedApp"
32                              ng-disabled="users.isAppSelectDisabled"
33                              ng-class="{disabled: users.isAppSelectDisabled}"></div>
34                     </div>
35                     <input class="table-search" type="text" id="input-search"
36                            placeholder="Search in entire table"
37                            ng-model="users.searchString"/>
38
39                     <div id="users-page-button-add" class="add-button" ng-click="users.openAddNewUserModal()">Add User</div>
40                 </div>
41                 <div ng-hide="users.isLoadingTable">
42                     <div class="error-text"
43                          id="div-error-app-down"
44                          ng-show="appsIsDown===true">
45                         <h1 class="error-help-bold">Attention:</h1>
46                         <p>&nbsp;</p>
47                         <p class="error-help">Select "Add User" in order to add User and Roles to the '{{users.selectedApp.name}}' Application.</p>
48                     </div>
49                 </div>
50                 <span class="ecomp-spinner" ng-show="users.isLoadingTable"></span>
51                 <div class="c-ecomp-att-abs-table default" ng-hide="users.isLoadingTable">
52                     <table att-table id="table-main"
53                            table-data="users.accountUsers"
54                            search-string="users.searchString"
55                            view-per-page="users.viewPerPageIgnored"
56                            current-page="users.currentPageIgnored"
57                            total-page="users.totalPageIgnored">
58                         <thead att-table-row type="header">
59                         <tr>
60                             <th id="th-users-0" att-table-header key="firstName" default-sort="a">{{users.usersTableHeaders[0]}}</th>
61                             <th id="th-users-1" att-table-header key="lastName" sortable="true">{{users.usersTableHeaders[1]}}</th>
62                             <th id="th-users-2" att-table-header key="userId" sortable="true">{{users.usersTableHeaders[2]}}</th>
63                             <th id="th-users-3" att-table-header key="roles" sortable="false">{{users.usersTableHeaders[3]}}</th>
64                         </tr>
65                         </thead>
66                         <tbody att-table-row type="body"
67                                class="table-body"
68                                track-by="$index"
69                                row-repeat="rowData in users.accountUsers">
70                         <tr id="tr-rowData" ng-click="users.openAddNewUserModal(rowData)">
71                             <td class="td-first" att-table-body>
72                                 <div id="users-page-td-firstName-{{rowData.userId}}" ng-bind="rowData.firstName"></div>
73                             </td>
74                             <td att-table-body>
75                                 <div id="users-page-td-lastName-{{rowData.userId}}"  ng-bind="rowData.lastName"></div>
76                             </td>
77                             <td att-table-body>
78                                 <div id="users-page-td-userId-{{rowData.userId}}" style="float: left;" ng-bind="rowData.orgUserId"></div>
79                                 <div>
80                                     <span style="float: left; margin-left:15px" class="ion-person" ng-click="users.openEditUserModal(rowData.orgUserId);$event.stopPropagation()"></span>
81                                 </div>
82                             </td>
83                             <td>
84                                 <div id="users-page-td-role-name-{{rowData.userId}}"  ng-repeat="role in rowData.roles" ng-bind="role.name"></div>
85                             </td>
86                         </tr>
87                         </tbody>
88                     </table>
89                 </div>
90
91             </div>
92             <div class="error-text"
93                  id="div-error-403"
94                  ng-show="adminAppsIsNull==true">
95                 <h1>Attention:</h1>
96                 <p>&nbsp;</p>
97                 <p class="error-help">It appears that you have not been added as an admin yet to an application.</p>
98                 <p>&nbsp;</p>
99                 <p class="error-help">Click on the Admins link to the left and check and see if you are listed as an admin for an application.
100                     If not, you can add yourself to the appropriate application.</p>
101             </div>
102         </div>
103     </div>
104
105 </div>