e96fb06217b7bd5518dc477fbbe6e730dffccef0
[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 id="title" class="title">Select Role Functions</div>
23 <div class="scrolling-table">
24
25         <div b2b-table table-data="availableRoles"   class="b2b-table-div">
26                 <table>
27                         <thead b2b-table-row type="header">
28                                 <tr >
29                                         <th b2b-table-header key="firstName" sortable="true" id="col1"></th>
30                                         <th b2b-table-header key="name" sortable="true" id="col2">Name</th>
31                                 </tr>
32                         </thead>
33                         <tbody b2b-table-row type="body"        row-repeat="rowData in availableRoles">
34                                 <tr>
35                                         <td b2b-table-body id="rowheader_t1_{{$index}}" headers="col1">
36                                                 <label class="btn-switch-label" tabindex="0" role="option">
37                                                         <input id="row-input-{{$index}}" type="checkbox" b2b-switches ng-model="rowData.selected" ng-click="toggleChildRole(rowData.selected,rowData);">
38                                             </label> 
39                                         </td>
40                                         <td b2b-table-body headers="rowheader_t1_{{$index}} col2" ng-bind="rowData.name"></td>
41                                                                                         
42                                 </tr>
43                         </tbody>
44                 </table>
45         </div>
46 </div>
47     <div class="dialog-control">
48         <button id="button-app-cancel" class="btn btn-alt btn-small" ng-click="closeThisDialog()">Close</button>      
49     </div>
50 </div>
51 <script>
52 $(document).ready(function(){
53     $(".ngdialog-close").attr('id','dialog-close');
54 });
55 </script>