aboutsummaryrefslogtreecommitdiffstats
path: root/POLICY-SDK-APP/src/main/webapp/app/policyApp/policy-models/Editor/PolicyTemplates/ClosedLoopPMPolicyTemplate.html
blob: b743224fb2c38fc7317fc337d13b2904e4e24d34 (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
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
<div ng-controller="clPMController">
	<form>
		<div class="well">
			<div class="form-group row">
				<div class="form-group col-sm-6">
					<label>Policy Name:<sup><b>*</b></sup></label> <input type="text"
						class="form-control" ng-disabled="temp.policy.readOnly"
						ng-readonly="temp.policy.editPolicy"
						ng-model="temp.policy.policyName" required pattern="\S+"
						title="Enter Policy Name without any spaces and special characters and will accept _."/>
				</div>
				<div class="form-group col-sm-6">
					<label>Description:</label> <input type="text" class="form-control"
						ng-disabled="temp.policy.readOnly"
						ng-model="temp.policy.policyDescription" 
						title="Description field will accept any type of data."/>
				</div>
			</div>
			<div class="form-group row">
				<div class="form-group col-sm-3">
					<label>Onap Name:<sup><b>*</b></sup></label> <select
						class="form-control" ng-disabled="temp.policy.readOnly"
						ng-model="temp.policy.onapName"
						ng-options="option for option in onapNameDictionaryDatas track by option"
						required pattern="\S+" title="Select the dropdown value driven from OnapName (common)Dictionary."></select>
				</div>
				<div class="form-group col-sm-3">
					<label>Time to Live Date:</label> <input type="text" id="ttlDate"
						class="form-control" name="ttlDate" ng-disabled="temp.policy.readOnly"
						ng-model="temp.policy.ttlDate" title="Select the date from calender onclick on the field."/>
				</div>
				<div class="form-group col-sm-3">
					<label>Guard:<sup><b>*</b></sup></label> <select
						class="form-control" ng-disabled="temp.policy.readOnly"
						ng-model="temp.policy.guard"
						required pattern="\S+" title="Select the dropdown Guard value.">
						<option>True</option>
						<option>False</option></select>
				</div>
				<div class="form-group col-sm-3">
					<label>Risk Type:<sup><b>*</b></sup></label> <select
						class="form-control" ng-disabled="temp.policy.readOnly"
						ng-model="temp.policy.riskType"
						ng-options="option for option in riskTypeDictionaryDatas track by option"
						required pattern="\S+" title="Select the dropdown value driven from RiskType (Safe Policy)Dictionary."></select>
				</div>
			</div>
			<div class="form-group row">
				<div class="form-group col-sm-3">
					<label>Risk Level:<sup><b>*</b></sup></label> <select
						class="form-control" ng-disabled="temp.policy.readOnly"
						ng-model="temp.policy.riskLevel"
						required pattern="\S+" title="Select the dropdown Risk level value.">
						<option>1</option>
						<option>2</option>
						<option>3</option>
						<option>4</option>
						<option>5</option></select>
				</div>
				<div class="form-group col-sm-5">
					<label>D2/Virtualized Services(s):<sup><b>*</b></sup></label><br>
					<input type="checkbox" ng-disabled="temp.policy.readOnly"
						ng-model="temp.policy.jsonBodyData.trinity"> Hosted Voice
					(Trinity)</input> <input type="checkbox" ng-disabled="temp.policy.readOnly"
						ng-model="temp.policy.jsonBodyData.vUSP"> vUSP</input> <input
						type="checkbox" ng-disabled="temp.policy.readOnly"
						ng-model="temp.policy.jsonBodyData.mcr"> MCR</input> <input
						type="checkbox" ng-disabled="temp.policy.readOnly"
						ng-model="temp.policy.jsonBodyData.gamma"> Gamma</input> <input
						type="checkbox" ng-disabled="temp.policy.readOnly"
						ng-model="temp.policy.jsonBodyData.vDNS"> vDNS</input>
				</div>
				<div class="form-group col-sm-3">
					<label>Service Type PolicyName:<sup><b>*</b></sup></label><br>
					<select style="width: 400px;" ng-disabled="temp.policy.readOnly"
						ng-model="temp.policy.serviceTypePolicyName" class="form-control"
						ng-options="option.serviceTypePolicyName for option in PMData track by option.serviceTypePolicyName"
						ng-click="addDataToFields(temp.policy.serviceTypePolicyName);"
						title="Select the Service Type PolicyName from dropdown value."></select>
				</div>
			</div>
		</div>
		<div class="well">
			<div class="form-group row">
				<label>Vertica Metrics:<sup><b>*</b></sup></label>
				<div>
					<textarea class="form-control"
						ng-model="temp.policy.verticaMetrics.verticaMetrics"
						ng-disabled="true" style="height: 150px;"></textarea>
				</div>
			</div>
			<div class="well">
				<div class="form-group row">
					<label>Attributes:<sup><b></b></sup></label>
					<div
						ng-repeat="(key, data) in temp.policy.attributeFields.attributes">
						<div class="well">
						<div class="form-group row" style="margin-left: 2%">
							<label class="control-label col-md-3">{{key}}</label>
							<div ng-repeat="(key, data) in data">
							<div class="form-group col-sm-3">
								<label>{{key}}</label><br /> <input type="text"
									class="form-control" title={{data}}
									ng-disabled="temp.policy.readOnly"
									ng-model="temp.policy.jsonBodyData.attributes[key]" />
							</div>
							</div>
							</div>
						</div>
					</div>
				</div>
			</div>
			<div class="form-group row">
				<label>Policy Description:<sup><b>*</b></sup></label>
				<div>
					<textarea class="form-control" ng-disabled="true"
						ng-model="temp.policy.description.policyDescription"
						style="height: 150px;"></textarea>
				</div>
			</div>
		</div>
		<div class="well">
			<div class="form-group row">
				<div class="form-group col-sm-6">
					<label>Text to Include in UEB messages for AOTS ticket and
						Geo Link:</label>
					<div>
						<input type="text" class="form-control"
							ng-disabled="temp.policy.readOnly"
							ng-model="temp.policy.jsonBodyData.geoLink" 
							title="Enter the UEB Message value."/>
					</div>
				</div>
				<div class="form-group col-sm-6">
					<label>Email Address:</label>
					<div>
						<input type="text" class="form-control"
							ng-disabled="temp.policy.readOnly"
							ng-model="temp.policy.jsonBodyData.emailAddress" 
							title="Enter the email address and for multiple use comma seperated value."/>
					</div>
				</div>
			</div>
		</div>
		<div id="validate" style="width: 70%"></div>
		<br>
		<div class="modal-footer">
			<div>
				<button class="btn btn-primary" herf="javascript:void(0)"
					ng-disabled="temp.policy.readOnly"
					ng-click="validatePolicy(temp.policy);" title="Validate the data entered in the Policy fields.">Validate</button>
				<button class="btn btn-success" herf="javascript:void(0)"
					ng-disabled="savebutton" ng-disabled="temp.policy.readOnly"
					ng-click="saveCLPMPolicy(temp);" title="Save the Policy with validated data.">Save</button>
				<button type="button" class="btn btn-default" ng-click="refresh();" title="Close the template.">Close</button>
			</div>
		</div>
	</form>
</div>