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