aboutsummaryrefslogtreecommitdiffstats
path: root/ecomp-sdk-app/src/main/webapp/app/policyApp/policy-models/policy_PDPManagement.html
blob: 85931ce781f42e8c1a65e20cbe9c85204b5bb694 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
<!--
  ============LICENSE_START=======================================================
  ECOMP Policy Engine
  ================================================================================
  Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
  ================================================================================
  Licensed under the Apache License, Version 2.0 (the "License");
  you may not use this file except in compliance with the License.
  You may obtain a copy of the License at
  
       http://www.apache.org/licenses/LICENSE-2.0
  
  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an "AS IS" BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions and
  limitations under the License.
  ============LICENSE_END=========================================================
  -->

<div style="margin-bottom: 20px; width: 100%">
	<div class="pageTitle">
		<h3><b>PDP Management</b></h3>
		<div ng-show ="isDisabled" class="ion-locked" style="clear: left; float: left">
  		</div>
		<br />
	</div>
	<div class="fn-ebz-container">
		<button>
			<combo type="submit" ng-click="addNewPDPGroupPopUpWindow();"
				att-button btn-type="primary" size="small" ng-show ="createPdpGroupId" >Create Group</combo>
		</button>  
	</div>
	<div class="fn-ebz-container" style= "margin-left : 400px">
	     <input type="text" class="search" ng-disabled="isDisabled" style = "width:500px" placeholder="{{'search'}}..." ng-model="search"> 
	</div>
	<div id="pdpGroupTable">
		<table att-table table-data="pdpdatas" current-page="1" table-bordered
			table-striped>
			<thead att-table-row type="header">
				<tr>
					<th att-table-header width="15%">Name</th>
					<th att-table-header width="15%">Description</th>
					<th att-table-header width="10%">Status</th>
					<th att-table-header width="35%">PDP's</th>
					<th att-table-header width="5%">Default</th>
					<th att-table-header width="15%">View Policies/ Add or Edit PDP's?</th>
					<th att-table-header width="5%">Delete?</th>
				</tr>
			</thead>
			<tbody att-table-row type="body" ng-repeat="pdpdata in pdpdatas | filter:search"
				style="max-height: 980px;" on-right-click="ShowContextMenu()">
				<tr>
					<td width="15%">{{ pdpdata.name }}</td>
					<td width="15%">{{ pdpdata.description }}</td>
					<td width="10%">{{ pdpdata.status.status }}</td>
					<td width="35%">
						<table current-page="1">
							<tr>
								<th>PDP Name</th>
								<th>Status</th>
							</tr>
							<tbody  ng-repeat="pdp in pdpdata.pdps | filter:search">
								<tr context="context1">
									<td>{{pdp.name}}</td>
									<td>{{pdp.status.status}}</td>
								</tr>
							</tbody>
						</table>
					</td>
					<td width="5%">
						<div ng-click="toggleRole( pdpdata.defaultGroup, pdpdata);" >
							<input type="checkbox" ng-model=" pdpdata.defaultGroup"
								ng-true-value="on" ng-false-value="off" att-toggle-main>
						</div>
					</td>
					<td att-table-body width="15%">
						<div ng-click="editPDPGroupFunctionModalPopup(pdpdata);"
							style="font-size: 20px;"  ng-show= "editPdpGroupId">
							<a href="javascript:void(0)" class="ion-edit"></a>
						</div>
					</td>
					<td att-table-body width="5%">
						<div ng-click="removePDPGroup(pdpdata);" style="font-size: 20px;"  ng-show= "deletePdpGroupId">
							<a href="javascript:void(0)" class="ion-trash-a"></a>
						</div>
					</td>
				</tr>
			</tbody>
		</table>
		<ul id="context1" class="dropdown-menu">
			<li><a ng-click="">Edit</a></li>
			<li><a ng-click="">Link</a></li>
			<li><a ng-click="">Delete</a></li>
		</ul>
	</div>

</div>