[PORTAL-7] Rebase
[portal.git] / ecomp-portal-FE-common / client / app / views / users / users.tpl.html
1 <!--\r
2   ================================================================================\r
3   ECOMP Portal\r
4   ================================================================================\r
5   Copyright (C) 2017 AT&T Intellectual Property\r
6   ================================================================================\r
7   Licensed under the Apache License, Version 2.0 (the "License");\r
8   you may not use this file except in compliance with the License.\r
9   You may obtain a copy of the License at\r
10   \r
11        http://www.apache.org/licenses/LICENSE-2.0\r
12   \r
13   Unless required by applicable law or agreed to in writing, software\r
14   distributed under the License is distributed on an "AS IS" BASIS,\r
15   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
16   See the License for the specific language governing permissions and\r
17   limitations under the License.\r
18   ================================================================================\r
19   -->\r
20 <div class="w-ecomp-main">\r
21     <div class="w-ecomp-main-container" >\r
22         <div class="users-page-main" id="page-content">\r
23             <div id="users-page-title" class="w-ecomp-main-view-title">\r
24                  <h1 class="heading-page" >Users</h1>\r
25             </div>\r
26             <div class="users-table">\r
27                 <div class="table-control">\r
28                     <div class="table-control-fields">          \r
29                                                 <div class="table-dropdown">\r
30                                                         <select id="dropdown1" name="dropdown1" b2b-dropdown placeholder-text="Select Application" ng-model="users.selectedApp.value">\r
31                                                 <option b2b-dropdown-list option-repeat="d in users.adminApps" value="{{d.value}}">{{d.title}}</option>\r
32                                             </select>\r
33                                                 </div>\r
34                                                 <div>\r
35                                                         <input id="input-table-search" placeholder="Search" class="table-search-field" type="text" data-ng-model="users.searchString">\r
36                                                 </div>\r
37                                                 <button class="btn btn-alt btn-small" ng-click="users.openAddNewUserModal()"><i class="icon-people-userbookmark" aria-hidden="true"></i>&nbsp;Add User</button> \r
38                                 <button class="btn btn-alt btn-small" ng-click="users.openBulkUserUploadModal()"><i class="icon-arrows-upload" aria-hidden="true"></i>&nbsp;Bulk Upload</button>\r
39                                         </div>\r
40                 </div>\r
41                 <div ng-hide="users.isLoadingTable">\r
42                     <div class="error-text" id="div-select-app" ng-show="noAppSelected">\r
43                         <p class="error-help">Use the 'Select application' dropdown to see users.</p>\r
44                     </div>\r
45                     <div class="error-text"\r
46                          id="div-error-no-users"\r
47                          ng-show="noUsersInApp">\r
48                         <p>&nbsp;</p>\r
49                         <p class="error-help">\r
50                                 No users found. Select "Add User" to add a User to the application.\r
51                         </p>\r
52                     </div>\r
53                     <div class="error-text"\r
54                          id="div-error-app-down"\r
55                          ng-show="appsIsDown" >\r
56                         <p>&nbsp;</p>\r
57                         <p class="error-help">\r
58                                 Failed to communicate with the application.\r
59                             Please try again later or contact a system administrator.\r
60                         </p>\r
61                     </div>\r
62                 </div>\r
63                 <span class="ecomp-spinner" ng-show="users.isLoadingTable"></span>\r
64                 <div b2b-table table-data="users.accountUsers"  ng-hide="users.isLoadingTable"  search-string="users.searchString" class="b2b-table-div">\r
65                                         <table>\r
66                                                 <thead b2b-table-row type="header">\r
67                                                         <tr >\r
68                                                                 <th b2b-table-header key="firstName" sortable="true" id="col1">First Name</th>\r
69                                                                 <th b2b-table-header key="lastName" sortable="true" id="col2">Last Name</th>\r
70                                                                 <th b2b-table-header key="orgUserId" sortable="true" id="col3">User ID</th>\r
71                                                                 <th b2b-table-header key="" sortable="falses" id="col4">Roles</th>\r
72                                                         </tr>\r
73                                                 </thead>\r
74                                                 <tbody b2b-table-row type="body"        row-repeat="rowData in users.accountUsers">\r
75                                                         <tr ng-click="users.openAddNewUserModal(rowData)">\r
76                                                                 <td b2b-table-body id="rowheader_t1_{{$index}}" headers="col1" ng-bind="rowData.firstName"></td>\r
77                                                                 <td b2b-table-body headers="rowheader_t1_{{$index}} col2" ng-bind="rowData.lastName"></td>\r
78                                                                 <td b2b-table-body headers="rowheader_t1_{{$index}} col3" ng-bind="rowData.orgUserId"></td>\r
79                                                                 <td b2b-table-body headers="rowheader_t1_{{$index}} col4">\r
80                                                                         <div class="ecomp-table-repeat" ng-repeat="role in rowData.roles" ng-bind="role.name"></div>\r
81                                                                 </td>                                                   \r
82                                                         </tr>\r
83                                                 </tbody>\r
84                                         </table>\r
85                                 </div>\r
86             </div>\r
87             <div class="error-text"  id="div-error-403" ng-show="adminAppsIsNull==true">\r
88                 <h1>Attention:</h1>\r
89                 <p>&nbsp;</p>\r
90                 <p class="error-help">It appears that you have not been added as an admin yet to an application.</p>\r
91                 <p>&nbsp;</p>\r
92                 <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.\r
93                     If not, you can add yourself to the appropriate application.</p>\r
94             </div>\r
95         </div>\r
96     </div>\r
97 \r
98 </div>\r