f9ea3ff94decc9ddf0667d4cb57215ff3383d67e
[portal.git] / ecomp-portal-FE-common / client / app / views / admins / admins.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-admins-page-main">
21     <div class="admins-home-container" id="page-content">
22             <div id="title" class="w-ecomp-main-view-title">
23                                 <h1 class="heading-page" >Admins</h1>
24                         </div>
25             <div class="admins-table">
26                 <div class="table-control">
27                          <div class="table-control-fields">             
28                                                 <div class="table-dropdown">
29                                                         <select id="dropdown1" name="dropdown1" b2b-dropdown placeholder-text="All application" ng-model="admins.filterByApp.value">
30                                                 <option b2b-dropdown-list option-repeat="d in admins.availableApps" value="{{d.value}}">{{d.title}}</option>
31                                             </select>
32                                                 </div>
33                                                 <div >
34                                                         <input id="input-table-search" placeholder="Search in entire table" class="table-search-field" type="text" data-ng-model="admins.searchString">
35                                                 </div>
36                                                 <button class="btn btn-alt btn-small" ng-click="admins.openAddNewAdminModal()"><i class="icon-people-userbookmark" aria-hidden="true"></i>&nbsp;Add Admin</button> 
37                                         </div>                  
38                 </div>
39                 <span class="ecomp-spinner" ng-show="admins.isLoadingTable"></span>
40                 <div b2b-table table-data="admins.adminsTableData"  ng-hide="admins.isLoadingTable"     search-string="admins.searchString" class="b2b-table-div">
41                                         <table>
42                                                 <thead b2b-table-row type="header">
43                                                         <tr >
44                                                                 <th b2b-table-header key="firstName" sortable="true" id="col1" default-sort="a">First Name</th>
45                                                                 <th b2b-table-header key="lastName" sortable="true" id="col2">Last Name</th>
46                                                                 <th b2b-table-header key="orgUserId" sortable="true" id="col3">User ID</th>
47                                                                 <th b2b-table-header key="" sortable="falses" id="col4">Applications</th>
48                                                         </tr>
49                                                 </thead>
50                                                 <tbody b2b-table-row type="body"        row-repeat="rowData in admins.adminsTableData | filter: admins.portalsRowFilter" class="table-admins-div">
51                                                         <tr ng-click="admins.openAddNewAdminModal(rowData)"  >
52                                                                 <td b2b-table-body id="rowheader_t1_{{$index}}" headers="col1" ng-bind="rowData.firstName"></td>
53                                                                 <td b2b-table-body headers="rowheader_t1_{{$index}} col2" ng-bind="rowData.lastName"></td>
54                                                                 <td b2b-table-body headers="rowheader_t1_{{$index}} col3" ng-bind="rowData.orgUserId"></td>
55                                                                 <td b2b-table-body headers="rowheader_t1_{{$index}} col4">
56                                                                         <div class="ecomp-table-repeat" ng-repeat="app in rowData.apps" ng-bind="app.appName"></div>
57                                                                 </td>                                                   
58                                                         </tr>
59                                                 </tbody>
60                                         </table>
61                                 </div>
62             </div>
63         </div>
64     </div>
65
66 </div>