Deliver centralized role management feature
[portal.git] / ecomp-portal-FE-common / client / app / views / role / role_childrole_popup.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 <link rel="stylesheet" href="role.css">
21 <div class="application-details-modal">
22     <div class="b2b-modal-header ng-scope in">
23                 <h2 id="myModalLabel" modal-title="">Select Role Functions</h2>
24                 <div class="corner-button in">
25                         <button type="button" class="close" aria-label="Close" id="div-childrole-cancel-button"
26                                 ng-click="$dismiss('cancel')"></button>
27                 </div>
28         </div>
29 <div class="b2b-modal-body">
30 <div class="scrolling-table">
31
32         <div b2b-table table-data="availableRoles"   class="b2b-table-div">
33                 <table>
34                         <thead b2b-table-row type="header">
35                                 <tr >
36                                         <th b2b-table-header key="firstName" sortable="true" id="col1"></th>
37                                         <th b2b-table-header key="name" sortable="true" id="col2">Name</th>
38                                 </tr>
39                         </thead>
40                         <tbody b2b-table-row type="body"        row-repeat="rowData in availableRoles">
41                                 <tr>
42                                         <td b2b-table-body id="rowheader_t1_{{$index}}" headers="col1">
43                                                 <label class="btn-switch-label" tabindex="0" role="option">
44                                                         <input id="row-input-{{$index}}" type="checkbox" b2b-switches ng-model="rowData.selected" ng-click="toggleChildRole(rowData.selected,rowData);">
45                                             </label> 
46                                         </td>
47                                         <td b2b-table-body headers="rowheader_t1_{{$index}} col2" ng-bind="rowData.name"></td>
48                                                                                         
49                                 </tr>
50                         </tbody>
51                 </table>
52         </div>
53 </div>
54 </div>
55         <div class="b2b-modal-footer ng-scope ng-isolate-scope in">
56                 <div class="cta-button-group in">
57                         <button class="btn btn-alt btn-small" type="button" id="div-childrole-close-button"
58                                 ng-click="$dismiss('cancel')">Close</button>
59                 </div>
60         </div>
61 </div>
62 <script>
63 $(document).ready(function(){
64     $(".ngdialog-close").attr('id','dialog-close');
65 });
66 </script>