aboutsummaryrefslogtreecommitdiffstats
path: root/POLICY-SDK-APP/src/main/webapp/app/policyApp/policy-models/policy_PDPManagement.html
blob: 55e7a07cdbdb3379574efd849d145da176dd2de5 (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
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
<!--/*-
 * ============LICENSE_START=======================================================
 * ONAP 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=========================================================
 */-->
<style>
/* The Modal (background) */
.modal {
	overflow-y: auto;
    display: block; 
    position: fixed; 
    z-index: 2; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: auto; 
    background-color: rgb(0,0,0); 
    background-color: rgba(0,0,0,0.4);
}
</style>
<div id="page-content" style="margin-bottom: 20px; width: 99%">
	<div>
		<h1 style="text-align: left; color: #157bb2">PDP Management</h1>
		<div ng-show="isDisabled" class="icon-lock"
			style="clear: left; float: left">
			<div class="lock-top-1" style="background-color: #2CC3B5"></div>
			<div class="lock-top-2"></div>
			<div class="lock-body" style="background-color: #2CC3B5"></div>
			<div class="lock-hole"></div>
		</div>
		<br />
		<div class="form-group row">
			<div class="form-group col-sm-3">
				<button class="btn btn-primary btn-small" type="button"
					ng-click="addNewPDPGroupPopUpWindow();" ng-show="createPdpGroupId">Create
					Group</button>
			</div>
			<div class="form-group col-sm-6">
				<input type="text" class="form-control" class="search"
					ng-disabled="isDisabled" 
					placeholder="{{'search'}}..." ng-model="search">
			</div>
		</div>


		<div id="pdpGroupTable">
			<table class="striped" table-data="pdpdatas" current-page="1"
				table-bordered table-striped>
				<thead>
					<tr>
						<th width="15%">Name</th>
						<th width="15%">Description</th>
						<th width="10%">Status</th>
						<th width="35%">PDP's</th>
						<th width="5%">Default</th>
						<th width="15%">View Policies/ Add or Edit PDP's?</th>
						<th width="5%">Delete?</th>
					</tr>
				</thead>
				<tbody 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%">
						<label class="btn-switch-label">
							<div ng-click="toggleRole( pdpdata.defaultGroup, pdpdata);">
								<input type="checkbox" ng-model="pdpdata.defaultGroup"
									  b2b-switches>		
							</div>
						</label>	
						</td>
						<td width="15%">
							<div ng-click="editPDPGroupFunctionModalPopup(pdpdata);"
								style="font-size: 20px;" ng-show="editPdpGroupId">
								 <span href="javascript:void(0)" class="glyphicon glyphicon-edit"></span>
							</div>
						</td>
						<td width="5%">
							<div ng-click="removePDPGroup(pdpdata);" style="font-size: 20px;"
								ng-show="deletePdpGroupId">
								<span href="javascript:void(0)" class="glyphicon glyphicon-trash"></span>
							</div>
						</td>
					</tr>
				</tbody>
			</table>
		</div>
		<!-- PDP Group Window -->
		<div ng-include
			src="'app/policyApp/Windows/PushtabWindow/removeGroupPoliciesWindow.html'"></div>
		<div ng-include
			src="'app/policyApp/Windows/PDPTabWindows/AddorEditPDPtoGroup.html'"></div>
		<div ng-include
			src="'app/policyApp/Windows/PDPTabWindows/PdpStatusWindow.html'"></div>
		<div ng-include src="'app/policyApp/Windows/new_PDPGroup_Window.html'"></div>
	</div>

</div>