Initial OpenECOMP policy/engine commit
[policy/engine.git] / ecomp-sdk-app / src / main / webapp / app / policyApp / policy-models / policy_PDPManagement.html
1 <!--
2   ============LICENSE_START=======================================================
3   ECOMP Policy Engine
4   ================================================================================
5   Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
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   ============LICENSE_END=========================================================
19   -->
20
21 <div style="margin-bottom: 20px; width: 100%">
22         <div class="pageTitle">
23                 <h3><b>PDP Management</b></h3>
24                 <div ng-show ="isDisabled" class="ion-locked" style="clear: left; float: left">
25                 </div>
26                 <br />
27         </div>
28         <div class="fn-ebz-container">
29                 <button>
30                         <combo type="submit" ng-click="addNewPDPGroupPopUpWindow();"
31                                 att-button btn-type="primary" size="small" ng-show ="createPdpGroupId" >Create Group</combo>
32                 </button>  
33         </div>
34         <div class="fn-ebz-container" style= "margin-left : 400px">
35              <input type="text" class="search" ng-disabled="isDisabled" style = "width:500px" placeholder="{{'search'}}..." ng-model="search"> 
36         </div>
37         <div id="pdpGroupTable">
38                 <table att-table table-data="pdpdatas" current-page="1" table-bordered
39                         table-striped>
40                         <thead att-table-row type="header">
41                                 <tr>
42                                         <th att-table-header width="15%">Name</th>
43                                         <th att-table-header width="15%">Description</th>
44                                         <th att-table-header width="10%">Status</th>
45                                         <th att-table-header width="35%">PDP's</th>
46                                         <th att-table-header width="5%">Default</th>
47                                         <th att-table-header width="15%">View Policies/ Add or Edit PDP's?</th>
48                                         <th att-table-header width="5%">Delete?</th>
49                                 </tr>
50                         </thead>
51                         <tbody att-table-row type="body" ng-repeat="pdpdata in pdpdatas | filter:search"
52                                 style="max-height: 980px;" on-right-click="ShowContextMenu()">
53                                 <tr>
54                                         <td width="15%">{{ pdpdata.name }}</td>
55                                         <td width="15%">{{ pdpdata.description }}</td>
56                                         <td width="10%">{{ pdpdata.status.status }}</td>
57                                         <td width="35%">
58                                                 <table current-page="1">
59                                                         <tr>
60                                                                 <th>PDP Name</th>
61                                                                 <th>Status</th>
62                                                         </tr>
63                                                         <tbody  ng-repeat="pdp in pdpdata.pdps | filter:search">
64                                                                 <tr context="context1">
65                                                                         <td>{{pdp.name}}</td>
66                                                                         <td>{{pdp.status.status}}</td>
67                                                                 </tr>
68                                                         </tbody>
69                                                 </table>
70                                         </td>
71                                         <td width="5%">
72                                                 <div ng-click="toggleRole( pdpdata.defaultGroup, pdpdata);" >
73                                                         <input type="checkbox" ng-model=" pdpdata.defaultGroup"
74                                                                 ng-true-value="on" ng-false-value="off" att-toggle-main>
75                                                 </div>
76                                         </td>
77                                         <td att-table-body width="15%">
78                                                 <div ng-click="editPDPGroupFunctionModalPopup(pdpdata);"
79                                                         style="font-size: 20px;"  ng-show= "editPdpGroupId">
80                                                         <a href="javascript:void(0)" class="ion-edit"></a>
81                                                 </div>
82                                         </td>
83                                         <td att-table-body width="5%">
84                                                 <div ng-click="removePDPGroup(pdpdata);" style="font-size: 20px;"  ng-show= "deletePdpGroupId">
85                                                         <a href="javascript:void(0)" class="ion-trash-a"></a>
86                                                 </div>
87                                         </td>
88                                 </tr>
89                         </tbody>
90                 </table>
91                 <ul id="context1" class="dropdown-menu">
92                         <li><a ng-click="">Edit</a></li>
93                         <li><a ng-click="">Link</a></li>
94                         <li><a ng-click="">Delete</a></li>
95                 </ul>
96         </div>
97
98 </div>