aboutsummaryrefslogtreecommitdiffstats
path: root/POLICY-SDK-APP/src/main/webapp/app/policyApp/policy-models/Editor/PolicyTemplates/ClosedLoopPMPolicyTemplate.html
diff options
context:
space:
mode:
Diffstat (limited to 'POLICY-SDK-APP/src/main/webapp/app/policyApp/policy-models/Editor/PolicyTemplates/ClosedLoopPMPolicyTemplate.html')
-rw-r--r--POLICY-SDK-APP/src/main/webapp/app/policyApp/policy-models/Editor/PolicyTemplates/ClosedLoopPMPolicyTemplate.html158
1 files changed, 158 insertions, 0 deletions
diff --git a/POLICY-SDK-APP/src/main/webapp/app/policyApp/policy-models/Editor/PolicyTemplates/ClosedLoopPMPolicyTemplate.html b/POLICY-SDK-APP/src/main/webapp/app/policyApp/policy-models/Editor/PolicyTemplates/ClosedLoopPMPolicyTemplate.html
new file mode 100644
index 000000000..e22070308
--- /dev/null
+++ b/POLICY-SDK-APP/src/main/webapp/app/policyApp/policy-models/Editor/PolicyTemplates/ClosedLoopPMPolicyTemplate.html
@@ -0,0 +1,158 @@
+<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 the Policy Name without any spaces" />
+ </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" />
+ </div>
+ </div>
+ <div class="form-group row">
+ <div class="form-group col-sm-3">
+ <label>Ecomp Name:<sup><b>*</b></sup></label> <select
+ class="form-control" ng-disabled="temp.policy.readOnly"
+ ng-model="temp.policy.ecompName"
+ ng-options="option for option in ecompNameDictionaryDatas track by option"
+ required pattern="\S+" title="EcompName is required"></select>
+ </div>
+ <div class="form-group col-sm-3">
+ <label>Time to Live Date:</label> <input type="date"
+ class="form-control" name="ttlDate" class="date"
+ ng-model="temp.policy.ttlDate" />
+ </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="Guard is required">
+ <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="RiskType is required"></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="RiskLevel is required">
+ <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);"></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" />
+ </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" />
+ </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);">Validate</button>
+ <button class="btn btn-success" herf="javascript:void(0)"
+ ng-disabled="savebutton" ng-disabled="temp.policy.readOnly"
+ ng-click="saveCLPMPolicy(temp);">Save</button>
+ <button type="button" class="btn btn-default" data-dismiss="modal"
+ ng-disabled="temp.inprocess" ng-model="finalPath"
+ ng-controller="FileManagerCtrl"
+ ng-click="closefunction(finalPath);">Close</button>
+ </div>
+ </div>
+ </form>
+</div> \ No newline at end of file