summaryrefslogtreecommitdiffstats
path: root/POLICY-SDK-APP/src/main/webapp
diff options
context:
space:
mode:
Diffstat (limited to 'POLICY-SDK-APP/src/main/webapp')
-rw-r--r--POLICY-SDK-APP/src/main/webapp/app/policyApp/Windows/Dictionary/CLSiteDictionary.html4
-rw-r--r--POLICY-SDK-APP/src/main/webapp/app/policyApp/Windows/Dictionary/CLVarbindDictionary.html4
-rw-r--r--POLICY-SDK-APP/src/main/webapp/app/policyApp/Windows/Dictionary/FWZoneDictionary.html4
-rw-r--r--POLICY-SDK-APP/src/main/webapp/app/policyApp/Windows/Dictionary/MSConfigNameDictionary.html4
-rw-r--r--POLICY-SDK-APP/src/main/webapp/app/policyApp/Windows/Dictionary/MSDCAEUUIDDictionary.html4
-rw-r--r--POLICY-SDK-APP/src/main/webapp/app/policyApp/Windows/Dictionary/MSLocationDictionary.html4
-rw-r--r--POLICY-SDK-APP/src/main/webapp/app/policyApp/Windows/Dictionary/MSModelsDictionary.html4
-rw-r--r--POLICY-SDK-APP/src/main/webapp/app/policyApp/Windows/Dictionary/ModelAttributeDictionary.html1
-rw-r--r--POLICY-SDK-APP/src/main/webapp/app/policyApp/Windows/Edit_Roles_Window.html6
-rw-r--r--POLICY-SDK-APP/src/main/webapp/app/policyApp/Windows/PDPTabWindows/AddorEditPDPtoGroup.html12
-rw-r--r--POLICY-SDK-APP/src/main/webapp/app/policyApp/Windows/PushtabWindow/removeGroupPoliciesWindow.html4
-rw-r--r--POLICY-SDK-APP/src/main/webapp/app/policyApp/Windows/new_PDPGroup_Window.html18
-rw-r--r--POLICY-SDK-APP/src/main/webapp/app/policyApp/controller/pdpController.js32
-rw-r--r--POLICY-SDK-APP/src/main/webapp/app/policyApp/controller/pdpGroupPopUpController.js80
-rw-r--r--POLICY-SDK-APP/src/main/webapp/app/policyApp/policy-models/Editor/PolicyTemplateController/BaseConfigPolicyController.js8
-rw-r--r--POLICY-SDK-APP/src/main/webapp/app/policyApp/policy-models/Editor/PolicyTemplateController/ClosedLoopFaultController.js57
-rw-r--r--POLICY-SDK-APP/src/main/webapp/app/policyApp/policy-models/Editor/PolicyTemplateController/DCAEMicroServicePolicyController.js114
-rw-r--r--POLICY-SDK-APP/src/main/webapp/app/policyApp/policy-models/Editor/PolicyTemplates/ActionPolicyTemplate.html34
-rw-r--r--POLICY-SDK-APP/src/main/webapp/app/policyApp/policy-models/Editor/PolicyTemplates/BRMSParamPolicyTemplate.html37
-rw-r--r--POLICY-SDK-APP/src/main/webapp/app/policyApp/policy-models/Editor/PolicyTemplates/BRMSRawPolicyTemplate.html33
-rw-r--r--POLICY-SDK-APP/src/main/webapp/app/policyApp/policy-models/Editor/PolicyTemplates/BasePolicyTemplate.html38
-rw-r--r--POLICY-SDK-APP/src/main/webapp/app/policyApp/policy-models/Editor/PolicyTemplates/ClosedLoopFaultPolicyTemplate.html119
-rw-r--r--POLICY-SDK-APP/src/main/webapp/app/policyApp/policy-models/Editor/PolicyTemplates/ClosedLoopPMPolicyTemplate.html30
-rw-r--r--POLICY-SDK-APP/src/main/webapp/app/policyApp/policy-models/Editor/PolicyTemplates/DCAEMicroServicePolicyTemplate.html41
-rw-r--r--POLICY-SDK-APP/src/main/webapp/app/policyApp/policy-models/Editor/PolicyTemplates/DecisionPolicyTemplate.html55
-rw-r--r--POLICY-SDK-APP/src/main/webapp/app/policyApp/policy-models/Editor/PolicyTemplates/FirewallPolicyTemplate.html36
-rw-r--r--POLICY-SDK-APP/src/main/webapp/app/policyApp/policy-models/Editor/css/main.css47
-rw-r--r--POLICY-SDK-APP/src/main/webapp/app/policyApp/policy-models/Editor/js/controllers/policySearchManager.js61
-rw-r--r--POLICY-SDK-APP/src/main/webapp/app/policyApp/policy-models/Editor/templates/item-context-menu.html2
-rw-r--r--POLICY-SDK-APP/src/main/webapp/app/policyApp/policy-models/Editor/templates/modals.html63
-rw-r--r--POLICY-SDK-APP/src/main/webapp/app/policyApp/policy-models/Editor/templates/navbar.html8
-rw-r--r--POLICY-SDK-APP/src/main/webapp/app/policyApp/policy-models/Editor/templates/searchNavbar.html30
-rw-r--r--POLICY-SDK-APP/src/main/webapp/app/policyApp/policy-models/policy_AdminTab.html2
-rw-r--r--POLICY-SDK-APP/src/main/webapp/app/policyApp/policy-models/policy_Dictionary.html6
-rw-r--r--POLICY-SDK-APP/src/main/webapp/app/policyApp/policy-models/policy_PDPManagement.html8
35 files changed, 567 insertions, 443 deletions
diff --git a/POLICY-SDK-APP/src/main/webapp/app/policyApp/Windows/Dictionary/CLSiteDictionary.html b/POLICY-SDK-APP/src/main/webapp/app/policyApp/Windows/Dictionary/CLSiteDictionary.html
index 569f7bf5d..02175f92e 100644
--- a/POLICY-SDK-APP/src/main/webapp/app/policyApp/Windows/Dictionary/CLSiteDictionary.html
+++ b/POLICY-SDK-APP/src/main/webapp/app/policyApp/Windows/Dictionary/CLSiteDictionary.html
@@ -23,10 +23,6 @@
<div class="modal-content">
<div class="modal-header">
<h2 class="font-showcase-font-name" style="color : #157bb2">{{label}}</h2>
- <div class="corner-button in">
- <button type="button" class="close" aria-label="Close"
- ng-click="$dismiss('cancel')"></button>
- </div>
</div>
<form name="formdata" ng-submit="saveCLSite(editCLSite);" novalidate>
<div class="modal-body">
diff --git a/POLICY-SDK-APP/src/main/webapp/app/policyApp/Windows/Dictionary/CLVarbindDictionary.html b/POLICY-SDK-APP/src/main/webapp/app/policyApp/Windows/Dictionary/CLVarbindDictionary.html
index 2271992b0..2858d9782 100644
--- a/POLICY-SDK-APP/src/main/webapp/app/policyApp/Windows/Dictionary/CLVarbindDictionary.html
+++ b/POLICY-SDK-APP/src/main/webapp/app/policyApp/Windows/Dictionary/CLVarbindDictionary.html
@@ -23,10 +23,6 @@
<div class="modal-content">
<div class="modal-header">
<h2 class="font-showcase-font-name" style="color : #157bb2">{{label}}</h2>
- <div class="corner-button in">
- <button type="button" class="close" aria-label="Close"
- ng-click="$dismiss('cancel')"></button>
- </div>
</div>
<form name="formdata" ng-submit="saveCLVarbind(editCLVarbind);" novalidate>
<div class="modal-body">
diff --git a/POLICY-SDK-APP/src/main/webapp/app/policyApp/Windows/Dictionary/FWZoneDictionary.html b/POLICY-SDK-APP/src/main/webapp/app/policyApp/Windows/Dictionary/FWZoneDictionary.html
index 194f4481f..380f22bb3 100644
--- a/POLICY-SDK-APP/src/main/webapp/app/policyApp/Windows/Dictionary/FWZoneDictionary.html
+++ b/POLICY-SDK-APP/src/main/webapp/app/policyApp/Windows/Dictionary/FWZoneDictionary.html
@@ -23,10 +23,6 @@
<div class="modal-content">
<div class="modal-header">
<h2 class="font-showcase-font-name" style="color : #157bb2">{{label}}</h2>
- <div class="corner-button in">
- <button type="button" class="close" aria-label="Close"
- ng-click="$dismiss('cancel')"></button>
- </div>
</div>
<form name="formdata" ng-submit="saveZoneName(editZoneName);" novalidate>
<div class="modal-body">
diff --git a/POLICY-SDK-APP/src/main/webapp/app/policyApp/Windows/Dictionary/MSConfigNameDictionary.html b/POLICY-SDK-APP/src/main/webapp/app/policyApp/Windows/Dictionary/MSConfigNameDictionary.html
index 0b89a3150..cfde1c2dd 100644
--- a/POLICY-SDK-APP/src/main/webapp/app/policyApp/Windows/Dictionary/MSConfigNameDictionary.html
+++ b/POLICY-SDK-APP/src/main/webapp/app/policyApp/Windows/Dictionary/MSConfigNameDictionary.html
@@ -23,10 +23,6 @@
<div class="modal-content">
<div class="modal-header">
<h2 class="font-showcase-font-name" style="color : #157bb2">{{label}}</h2>
- <div class="corner-button in">
- <button type="button" class="close" aria-label="Close"
- ng-click="$dismiss('cancel')"></button>
- </div>
</div>
<form name="formdata" ng-submit="saveMSConfig(editMSConfig);" novalidate>
<div class="modal-body">
diff --git a/POLICY-SDK-APP/src/main/webapp/app/policyApp/Windows/Dictionary/MSDCAEUUIDDictionary.html b/POLICY-SDK-APP/src/main/webapp/app/policyApp/Windows/Dictionary/MSDCAEUUIDDictionary.html
index 89e3aff1e..4fded51ec 100644
--- a/POLICY-SDK-APP/src/main/webapp/app/policyApp/Windows/Dictionary/MSDCAEUUIDDictionary.html
+++ b/POLICY-SDK-APP/src/main/webapp/app/policyApp/Windows/Dictionary/MSDCAEUUIDDictionary.html
@@ -23,10 +23,6 @@
<div class="modal-content">
<div class="modal-header">
<h2 class="font-showcase-font-name" style="color : #157bb2">{{label}}</h2>
- <div class="corner-button in">
- <button type="button" class="close" aria-label="Close"
- ng-click="$dismiss('cancel')"></button>
- </div>
</div>
<form name="formdata" ng-submit="saveDCAEUUID(editDCAEuuid);" novalidate>
<div class="modal-body">
diff --git a/POLICY-SDK-APP/src/main/webapp/app/policyApp/Windows/Dictionary/MSLocationDictionary.html b/POLICY-SDK-APP/src/main/webapp/app/policyApp/Windows/Dictionary/MSLocationDictionary.html
index a6919870f..609c9f326 100644
--- a/POLICY-SDK-APP/src/main/webapp/app/policyApp/Windows/Dictionary/MSLocationDictionary.html
+++ b/POLICY-SDK-APP/src/main/webapp/app/policyApp/Windows/Dictionary/MSLocationDictionary.html
@@ -23,10 +23,6 @@
<div class="modal-content">
<div class="modal-header">
<h2 class="font-showcase-font-name" style="color : #157bb2">{{label}}</h2>
- <div class="corner-button in">
- <button type="button" class="close" aria-label="Close"
- ng-click="$dismiss('cancel')"></button>
- </div>
</div>
<form name="formdata" ng-submit="saveMSLocation(editMSLocation);" novalidate>
<div class="modal-body">
diff --git a/POLICY-SDK-APP/src/main/webapp/app/policyApp/Windows/Dictionary/MSModelsDictionary.html b/POLICY-SDK-APP/src/main/webapp/app/policyApp/Windows/Dictionary/MSModelsDictionary.html
index 15a476040..fbdd8cd6c 100644
--- a/POLICY-SDK-APP/src/main/webapp/app/policyApp/Windows/Dictionary/MSModelsDictionary.html
+++ b/POLICY-SDK-APP/src/main/webapp/app/policyApp/Windows/Dictionary/MSModelsDictionary.html
@@ -23,10 +23,6 @@
<div class="modal-content">
<div class="modal-header">
<h2 class="font-showcase-font-name" style="color : #157bb2">{{label}}</h2>
- <div class="corner-button in">
- <button type="button" class="close" aria-label="Close"
- ng-click="$dismiss('cancel')"></button>
- </div>
</div>
<form name="formdata" ng-submit="saveMSModel(editMSmodelName);" novalidate>
<div class="modal-body">
diff --git a/POLICY-SDK-APP/src/main/webapp/app/policyApp/Windows/Dictionary/ModelAttributeDictionary.html b/POLICY-SDK-APP/src/main/webapp/app/policyApp/Windows/Dictionary/ModelAttributeDictionary.html
index 201e1ba52..0531a00ae 100644
--- a/POLICY-SDK-APP/src/main/webapp/app/policyApp/Windows/Dictionary/ModelAttributeDictionary.html
+++ b/POLICY-SDK-APP/src/main/webapp/app/policyApp/Windows/Dictionary/ModelAttributeDictionary.html
@@ -24,7 +24,6 @@
<div class="modal-header">
<h2 class="font-showcase-font-name" style="color : #157bb2">{{label}}</h2>
</div>
- <div class="divider-container"><hr> </div>
<form name="formdata" ng-submit="saveModelAttribute(editModelAttribute);" novalidate>
<div class="modal-body">
<div class="form-group row">
diff --git a/POLICY-SDK-APP/src/main/webapp/app/policyApp/Windows/Edit_Roles_Window.html b/POLICY-SDK-APP/src/main/webapp/app/policyApp/Windows/Edit_Roles_Window.html
index 11e960b51..7974d4e3f 100644
--- a/POLICY-SDK-APP/src/main/webapp/app/policyApp/Windows/Edit_Roles_Window.html
+++ b/POLICY-SDK-APP/src/main/webapp/app/policyApp/Windows/Edit_Roles_Window.html
@@ -40,13 +40,13 @@
<div class="form-group row">
<div class="form-group col-sm-6" >
<label><sup><b>*</b></sup>Scope:</label><br>
- <select class="form-control" multiple ng-model="editRole.scope" ng-options="option for option in scopeDatas" ></select>
+ <select class="form-control" multiple ng-model="editRole.scope" ng-options="option for option in scopeDatas" title="Select the Scopes from the dropdown."></select>
</div>
</div>
</div>
<div class="modal-footer">
- <button class="btn btn-success" herf="javascript:void(0)" ng-click="saveRole(editRole);">Save</button>
- <button class="btn btn-default" herf="javascript:void(0)" ng-click="close()">Close</button>
+ <button class="btn btn-success" herf="javascript:void(0)" ng-click="saveRole(editRole);" title="OnClick Policy Role is saved.">Save</button>
+ <button class="btn btn-default" herf="javascript:void(0)" ng-click="close()" title="OnClick Policy Role Window is closed.">Close</button>
</div>
</div>
</div>
diff --git a/POLICY-SDK-APP/src/main/webapp/app/policyApp/Windows/PDPTabWindows/AddorEditPDPtoGroup.html b/POLICY-SDK-APP/src/main/webapp/app/policyApp/Windows/PDPTabWindows/AddorEditPDPtoGroup.html
index cbb617c6f..cc3d076c9 100644
--- a/POLICY-SDK-APP/src/main/webapp/app/policyApp/Windows/PDPTabWindows/AddorEditPDPtoGroup.html
+++ b/POLICY-SDK-APP/src/main/webapp/app/policyApp/Windows/PDPTabWindows/AddorEditPDPtoGroup.html
@@ -28,34 +28,34 @@
<div class="form-group row">
<div class="form-group col-sm-6">
<label>PDP URL:<sup><b>*</b></sup> </label><br>
- <input type="text" class="form-control" ng-model="editPDPInGroup.id" class="form-control" />
+ <input type="text" class="form-control" ng-model="editPDPInGroup.id" class="form-control" title="Enter the valid PDP URL value."/>
</div>
</div>
<div class="form-group row">
<div class="form-group col-sm-6">
<label>JMX Port:<sup><b>*</b></sup></label><br>
<input type="text" class="form-control" ng-model="editPDPInGroup.jmxPort"
- class="form-control" />
+ class="form-control" title="Enter the valid PDP JMX Port Number."/>
</div>
</div>
<div class="form-group row">
<div class="form-group col-sm-6">
<label>PDP Name:<sup><b>*</b></sup></label><br>
<input type="text" class="form-control" ng-model="editPDPInGroup.name"
- class="form-control" />
+ class="form-control" title="Enter the PDP Name."/>
</div>
</div>
<div class="form-group row">
<div class="form-group col-sm-6">
<label>PDP Description:</label><br>
<input type="text" class="form-control" ng-model="editPDPInGroup.description"
- class="form-control"/>
+ class="form-control" title="Enter the PDP Description."/>
</div>
</div>
</div>
<div class="modal-footer">
- <button class="btn btn-success" herf="javascript:void(0)" ng-click="savePDPInGroup(editPDPInGroup);">Save</button>
- <button class="btn btn-default" herf="javascript:void(0)" ng-click="close()">Close</button>
+ <button class="btn btn-success" herf="javascript:void(0)" ng-click="savePDPInGroup(editPDPInGroup);" title="OnClick PDP Group is created.">Save</button>
+ <button class="btn btn-default" herf="javascript:void(0)" ng-click="close()" title="OnClick PDP Group Window is closed.">Close</button>
</div>
</div>
</div>
diff --git a/POLICY-SDK-APP/src/main/webapp/app/policyApp/Windows/PushtabWindow/removeGroupPoliciesWindow.html b/POLICY-SDK-APP/src/main/webapp/app/policyApp/Windows/PushtabWindow/removeGroupPoliciesWindow.html
index d6bde6957..84c6c3f8c 100644
--- a/POLICY-SDK-APP/src/main/webapp/app/policyApp/Windows/PushtabWindow/removeGroupPoliciesWindow.html
+++ b/POLICY-SDK-APP/src/main/webapp/app/policyApp/Windows/PushtabWindow/removeGroupPoliciesWindow.html
@@ -29,8 +29,8 @@
<div style="width: 100%; height:580px" ui-grid = "removePoliciesGrid" ui-grid-pagination ui-grid-selection ui-grid-exporter class= "grid"></div>
</div>
<div class="modal-footer">
- <button class="btn btn-success" herf="javascript:void(0)" ng-click="removePolicies();">Remove</button>
- <button class="btn btn-default" herf="javascript:void(0)" ng-click="$close()">Close</button>
+ <button class="btn btn-success" herf="javascript:void(0)" ng-click="removePolicies();" title="OnClick Policy will be removed from PDP Group.">Remove</button>
+ <button class="btn btn-default" herf="javascript:void(0)" ng-click="$close()" title="OnClick Remove Policy Window is Closed.">Close</button>
</div>
</div>
</div>
diff --git a/POLICY-SDK-APP/src/main/webapp/app/policyApp/Windows/new_PDPGroup_Window.html b/POLICY-SDK-APP/src/main/webapp/app/policyApp/Windows/new_PDPGroup_Window.html
index e13a140d9..8eae7a144 100644
--- a/POLICY-SDK-APP/src/main/webapp/app/policyApp/Windows/new_PDPGroup_Window.html
+++ b/POLICY-SDK-APP/src/main/webapp/app/policyApp/Windows/new_PDPGroup_Window.html
@@ -28,19 +28,19 @@
<div class="form-group row">
<div class="form-group col-sm-6">
<label>Group Name:<sup><b>*</b></sup> </label><br>
- <input type="text" class="form-control" ng-model="editPDPGroup.groupName"/>
+ <input type="text" class="form-control" ng-model="editPDPGroup.groupName" title="Enter the Valid PDP Group Name."/>
</div>
</div>
<div class="form-group row">
<div class="form-group col-sm-6">
<label><sup><b></b></sup>Group Description:</label><br>
- <input type="text" class="form-control" ng-model="editPDPGroup.description"/>
+ <input type="text" class="form-control" ng-model="editPDPGroup.description" title="Enter the Description"/>
</div>
</div>
</div>
<div class="modal-footer">
- <button class="btn btn-success" herf="javascript:void(0)" ng-click="savePDPGroup(editPDPGroup);">Save</button>
- <button class="btn btn-default" herf="javascript:void(0)" ng-click="close()">Close</button>
+ <button class="btn btn-success" herf="javascript:void(0)" ng-click="savePDPGroup(editPDPGroup);" title="OnClick PDP Group is saved.">Save</button>
+ <button class="btn btn-default" herf="javascript:void(0)" ng-click="close()" title="OnClick PDP Group Window is closed.">Close</button>
</div>
</div>
</div>
@@ -58,11 +58,11 @@
<div class="form-group row">
<div class="form-group col-sm-6">
<label> Group Name:<sup><b>*</b></sup></label><br>
- <input type="text" class="form-control" ng-model="editPDPGroup.name"/>
+ <input type="text" class="form-control" ng-model="editPDPGroup.name" title="Enter the Valid PDP Group Name."/>
</div>
<div class="form-group col-sm-6">
<label>Group Description:</label><br>
- <input type="text" class="form-control" ng-model="editPDPGroup.description"/>
+ <input type="text" class="form-control" ng-model="editPDPGroup.description" title="Enter the Description"/>
</div>
</div>
<div >
@@ -75,8 +75,8 @@
</div>
</div>
<div class="modal-footer">
- <button class="btn btn-success" herf="javascript:void(0)" ng-click="savePDPGroup(editPDPGroup);">Save</button>
- <button class="btn btn-default" herf="javascript:void(0)" ng-click="close()">Close</button>
+ <button class="btn btn-success" herf="javascript:void(0)" ng-click="savePDPGroup(editPDPGroup);" title="OnClick PDP Group is Updated.">Save</button>
+ <button class="btn btn-default" herf="javascript:void(0)" ng-click="close()" title="OnClick PDP Group Window is closed.">Close</button>
</div>
</div>
</div>
@@ -101,7 +101,7 @@
</div>
</div>
<div class="modal-footer">
- <button class="btn btn-default" herf="javascript:void(0)" ng-click="close()">Close</button>
+ <button class="btn btn-default" herf="javascript:void(0)" ng-click="close()" title="OnClick Show Policies PDP Group Window is closed.">Close</button>
</div>
</div>
</div>
diff --git a/POLICY-SDK-APP/src/main/webapp/app/policyApp/controller/pdpController.js b/POLICY-SDK-APP/src/main/webapp/app/policyApp/controller/pdpController.js
index cab5d26c0..966a0913e 100644
--- a/POLICY-SDK-APP/src/main/webapp/app/policyApp/controller/pdpController.js
+++ b/POLICY-SDK-APP/src/main/webapp/app/policyApp/controller/pdpController.js
@@ -53,14 +53,7 @@ app.controller('pdpTabController', function ($scope, PolicyAppService, modalServ
$scope.editPdpGroupId = true;
}
}
-
- PolicyAppService.getData('get_PDPGroupData').then(function(data){
- var j = data;
- $scope.pdpdatas = JSON.parse(j.data);
- console.log($scope.pdpdatas);
- },function(error){
- console.log("failed");
- });
+ getPDPGroups();
},function (error) {
console.log("failed");
});
@@ -77,7 +70,6 @@ app.controller('pdpTabController', function ($scope, PolicyAppService, modalServ
};
$scope.editPDPGroup = null;
- var dialog = null;
$scope.editPDPGroupFunctionPopup = function(pdpGroupData) {
$scope.editPDPGroup = pdpGroupData;
$( "#dialog" ).dialog({
@@ -87,8 +79,9 @@ app.controller('pdpTabController', function ($scope, PolicyAppService, modalServ
$scope.editPDPGroupFunctionModalPopup = function(pdpGroupData) {
$scope.editPDPGroup = pdpGroupData;
+ var modalInstance;
if($scope.userRolesDatas[0] == 'super-guest' || $scope.userRolesDatas[0] == 'guest'){
- var modalInstance = $modal.open({
+ modalInstance = $modal.open({
backdrop: 'static', keyboard: false,
templateUrl: 'show_policies_pdp_group_popup.html',
controller: 'editPDPGrouppopupController',
@@ -102,7 +95,7 @@ app.controller('pdpTabController', function ($scope, PolicyAppService, modalServ
}
});
}else{
- var modalInstance = $modal.open({
+ modalInstance = $modal.open({
backdrop: 'static', keyboard: false,
templateUrl: 'edit_pdp_group_popup.html',
controller: 'editPDPGrouppopupController',
@@ -118,10 +111,20 @@ app.controller('pdpTabController', function ($scope, PolicyAppService, modalServ
}
modalInstance.result.then(function(response){
console.log('response', response);
- $scope.pdpdatas=response.data;
+ getPDPGroups();
});
};
+ function getPDPGroups(){
+ PolicyAppService.getData('get_PDPGroupData').then(function(data){
+ var j = data;
+ $scope.pdpdatas = JSON.parse(j.data);
+ console.log($scope.pdpdatas);
+ },function(error){
+ console.log("failed");
+ });
+ }
+
$scope.addNewPDPGroupPopUpWindow = function(editPDPGroup) {
$scope.editPDPGroup = null;
var modalInstance = $modal.open({
@@ -161,9 +164,8 @@ app.controller('pdpTabController', function ($scope, PolicyAppService, modalServ
dataType: 'json',
contentType: 'application/json',
data: JSON.stringify(postData),
- success : function(data){
- $scope.$apply(function(){$scope.pdpdata=data.data;});
- $scope.pdpdatas=JSON.parse(data.data);
+ success : function(response){
+ $scope.$apply(function(){$scope.pdpdatas=JSON.parse(response.data);});
},
error : function(data){
console.log(data);
diff --git a/POLICY-SDK-APP/src/main/webapp/app/policyApp/controller/pdpGroupPopUpController.js b/POLICY-SDK-APP/src/main/webapp/app/policyApp/controller/pdpGroupPopUpController.js
index 4b2747635..0e28dc09f 100644
--- a/POLICY-SDK-APP/src/main/webapp/app/policyApp/controller/pdpGroupPopUpController.js
+++ b/POLICY-SDK-APP/src/main/webapp/app/policyApp/controller/pdpGroupPopUpController.js
@@ -18,15 +18,16 @@
* ============LICENSE_END=========================================================
*/
app.controller('editPDPGrouppopupController' , function ($scope, $modalInstance, message, modalService, $modal, Notification){
- if(message.pdpGroupData==null)
+ if(message.pdpGroupData==null){
$scope.label='Add New PDP Group'
- else{
- $scope.label='Edit PDP Group'
- $scope.disableCd=true;
- $scope.policies = message.pdpGroupData.policies;
- $scope.pdps = message.pdpGroupData.pdps;
- $scope.selectedPdp = message.pdpGroupData;
- }
+ }else{
+ $scope.label='Edit PDP Group'
+ $scope.disableCd=true;
+ $scope.policies = message.pdpGroupData.policies;
+ $scope.pdps = message.pdpGroupData.pdps;
+ $scope.selectedPdp = message.pdpGroupData;
+ }
+
$scope.editPDPGroup = message.pdpGroupData;
$scope.policiesGrid = {
@@ -76,7 +77,7 @@ app.controller('editPDPGrouppopupController' , function ($scope, $modalInstance
});
modalInstance.result.then(function(response){
console.log('response', response);
- $scope.data=response.data;
+ refreshPDPGroupDatas(response);
});
};
@@ -98,34 +99,34 @@ app.controller('editPDPGrouppopupController' , function ($scope, $modalInstance
});
modalInstance.result.then(function(response){
console.log('response', response);
- $scope.data=response.data;
+ refreshPDPGroupDatas(response);
});
};
$scope.deletePDPFromGroup = function(data){
modalService.popupConfirmWin("Confirm","You are about to delete the PDP Group : "+data.name+". Do you want to continue?",
- function(){
- var uuu = "pdp_Group/remove_pdpFromGroup.htm";
- var postData={data: data,
- activePDP : $scope.selectedPdp};
- $.ajax({
- type : 'POST',
- url : uuu,
- dataType: 'json',
- contentType: 'application/json',
- data: JSON.stringify(postData),
- success : function(data){
- $scope.$apply(function(){$scope.data=data.data;});
- Notification.success("PDP Group Deleted Successfully");
- },
- error : function(data){
- console.log(data);
- Notification.error("Error Occured While Deleting a PDP Group")
- //modalService.showFailure("Fail","Error while deleting: "+ data.responseText);
- }
- });
-
- })
+ function(){
+ var uuu = "pdp_Group/remove_pdpFromGroup.htm";
+ var postData={data: data,
+ activePDP : $scope.selectedPdp};
+ $.ajax({
+ type : 'POST',
+ url : uuu,
+ dataType: 'json',
+ contentType: 'application/json',
+ data: JSON.stringify(postData),
+ success : function(data){
+ $scope.$apply(function(){
+ refreshPDPGroupDatas(data);
+ });
+ Notification.success("PDP Group Deleted Successfully");
+ },
+ error : function(data){
+ console.log(data);
+ Notification.error("Error Occured While Deleting a PDP Group");
+ }
+ });
+ })
};
$scope.statusOfPDP = function(status){
@@ -167,10 +168,23 @@ app.controller('editPDPGrouppopupController' , function ($scope, $modalInstance
$modalInstance.close({data:$scope.data});
},
error : function(data){
- alert("Error while saving.");
+ Notification.error("Error while saving PDP Group.");
}
});
};
+
+ function refreshPDPGroupDatas(response){
+ $scope.selectedPDPName = $scope.selectedPdp.id;
+ if(response != undefined){
+ $scope.data = JSON.parse(response.data);
+ for(var i=0; i< $scope.data.length; i++){
+ if($scope.data[i].id === $scope.selectedPDPName){
+ $scope.policies = $scope.data[i].policies;
+ $scope.pdps = $scope.data[i].pdps;
+ }
+ }
+ }
+ };
$scope.close = function() {
$modalInstance.close();
diff --git a/POLICY-SDK-APP/src/main/webapp/app/policyApp/policy-models/Editor/PolicyTemplateController/BaseConfigPolicyController.js b/POLICY-SDK-APP/src/main/webapp/app/policyApp/policy-models/Editor/PolicyTemplateController/BaseConfigPolicyController.js
index 7425c92d4..02e10bddd 100644
--- a/POLICY-SDK-APP/src/main/webapp/app/policyApp/policy-models/Editor/PolicyTemplateController/BaseConfigPolicyController.js
+++ b/POLICY-SDK-APP/src/main/webapp/app/policyApp/policy-models/Editor/PolicyTemplateController/BaseConfigPolicyController.js
@@ -82,14 +82,6 @@ app.controller('baseConfigController', ['$scope', 'PolicyAppService', 'policyNav
}, function (error) {
console.log("failed");
});
-
-
- function extend(obj, src) {
- for (var key in src) {
- if (src.hasOwnProperty(key)) obj[key] = src[key];
- }
- return obj;
- }
$scope.savePolicy = function(policy){
if(policy.itemContent != undefined){
diff --git a/POLICY-SDK-APP/src/main/webapp/app/policyApp/policy-models/Editor/PolicyTemplateController/ClosedLoopFaultController.js b/POLICY-SDK-APP/src/main/webapp/app/policyApp/policy-models/Editor/PolicyTemplateController/ClosedLoopFaultController.js
index 1015e7aac..ebc9001ab 100644
--- a/POLICY-SDK-APP/src/main/webapp/app/policyApp/policy-models/Editor/PolicyTemplateController/ClosedLoopFaultController.js
+++ b/POLICY-SDK-APP/src/main/webapp/app/policyApp/policy-models/Editor/PolicyTemplateController/ClosedLoopFaultController.js
@@ -529,64 +529,73 @@ angular.module("abs").controller('clFaultController', ['$scope', '$window', 'Pol
}
};
- $scope.saveFaultPolicy = function(policy){
- if(policy.itemContent != undefined){
- $scope.refreshCheck = true;
- $scope.policyNavigator = policy.itemContent;
- policy.itemContent = "";
- }
- $scope.savebutton = false;
+ function trapData(){
var data = {};
- var faultData = {};
if($scope.temp.policy.triggerTrapSignatures.length == 1 || $scope.temp.policy.triggerTrapSignatures["Trap1"] != null){
- var data = {trap1 : $scope.temp.policy.triggerTrapSignatures.Trap1 }
+ data = {trap1 : $scope.temp.policy.triggerTrapSignatures.Trap1 }
}
if($scope.temp.policy.triggerTrapSignatures.length == 2 || $scope.temp.policy.triggerTrapSignatures["Trap2"] != null){
- var data = {trap1 : $scope.temp.policy.triggerTrapSignatures.Trap1, trap2 : $scope.temp.policy.triggerTrapSignatures.Trap2}
+ data = {trap1 : $scope.temp.policy.triggerTrapSignatures.Trap1, trap2 : $scope.temp.policy.triggerTrapSignatures.Trap2}
}
if($scope.temp.policy.triggerTrapSignatures.length == 3 || $scope.temp.policy.triggerTrapSignatures["Trap3"] != null){
- var data = {trap1 : $scope.temp.policy.triggerTrapSignatures.Trap1, trap2 : $scope.temp.policy.triggerTrapSignatures.Trap2,
+ data = {trap1 : $scope.temp.policy.triggerTrapSignatures.Trap1, trap2 : $scope.temp.policy.triggerTrapSignatures.Trap2,
trap3 : $scope.temp.policy.triggerTrapSignatures.Trap3}
}
if($scope.temp.policy.triggerTrapSignatures.length == 4 || $scope.temp.policy.triggerTrapSignatures["Trap4"] != null){
- var data = {trap1 : $scope.temp.policy.triggerTrapSignatures.Trap1, trap2 : $scope.temp.policy.triggerTrapSignatures.Trap2,
+ data = {trap1 : $scope.temp.policy.triggerTrapSignatures.Trap1, trap2 : $scope.temp.policy.triggerTrapSignatures.Trap2,
trap3 : $scope.temp.policy.triggerTrapSignatures.Trap3, trap4 : $scope.temp.policy.triggerTrapSignatures.Trap4}
}
if($scope.temp.policy.triggerTrapSignatures.length == 5 || $scope.temp.policy.triggerTrapSignatures["Trap5"] != null){
- var data = {trap1 : $scope.temp.policy.triggerTrapSignatures.Trap1, trap2 : $scope.temp.policy.triggerTrapSignatures.Trap2,
+ data = {trap1 : $scope.temp.policy.triggerTrapSignatures.Trap1, trap2 : $scope.temp.policy.triggerTrapSignatures.Trap2,
trap3 : $scope.temp.policy.triggerTrapSignatures.Trap3, trap4 : $scope.temp.policy.triggerTrapSignatures.Trap4,
trap5 : $scope.temp.policy.triggerTrapSignatures.Trap5}
}
if($scope.temp.policy.triggerTrapSignatures.length == 6 || $scope.temp.policy.triggerTrapSignatures["Trap6"] != null){
- var data = {trap1 : $scope.temp.policy.triggerTrapSignatures.Trap1, trap2 : $scope.temp.policy.triggerTrapSignatures.Trap2,
+ data = {trap1 : $scope.temp.policy.triggerTrapSignatures.Trap1, trap2 : $scope.temp.policy.triggerTrapSignatures.Trap2,
trap3 : $scope.temp.policy.triggerTrapSignatures.Trap3, trap4 : $scope.temp.policy.triggerTrapSignatures.Trap4,
trap5 : $scope.temp.policy.triggerTrapSignatures.Trap5, trap6 : $scope.temp.policy.triggerTrapSignatures.Trap6}
- }
-
+ }
+ return data;
+ }
+
+ function faultDatas(){
+ var faultData = {};
if($scope.temp.policy.triggerfaultSignatures.length == 1 || $scope.temp.policy.triggerfaultSignatures["Fault1"] != null){
- var faultData = {trap1 : $scope.temp.policy.triggerfaultSignatures.Fault1 }
+ faultData = {trap1 : $scope.temp.policy.triggerfaultSignatures.Fault1 }
}
if($scope.temp.policy.triggerfaultSignatures.length == 2 || $scope.temp.policy.triggerfaultSignatures["Fault2"] != null){
- var faultData = {trap1 : $scope.temp.policy.triggerfaultSignatures.Fault1, trap2 : $scope.temp.policy.triggerfaultSignatures.Fault2}
+ faultData = {trap1 : $scope.temp.policy.triggerfaultSignatures.Fault1, trap2 : $scope.temp.policy.triggerfaultSignatures.Fault2}
}
if($scope.temp.policy.triggerfaultSignatures.length == 3 || $scope.temp.policy.triggerfaultSignatures["Fault3"] != null){
- var faultData = {trap1 : $scope.temp.policy.triggerfaultSignatures.Fault1, trap2 : $scope.temp.policy.triggerfaultSignatures.Fault2,
+ faultData = {trap1 : $scope.temp.policy.triggerfaultSignatures.Fault1, trap2 : $scope.temp.policy.triggerfaultSignatures.Fault2,
trap3 : $scope.temp.policy.triggerfaultSignatures.Fault3}
}
if($scope.temp.policy.triggerTrapSignatures.length == 4 || $scope.temp.policy.triggerfaultSignatures["Fault4"] != null){
- var faultData = {trap1 : $scope.temp.policy.triggerfaultSignatures.Fault1, trap2 : $scope.temp.policy.triggerfaultSignatures.Fault2,
+ faultData = {trap1 : $scope.temp.policy.triggerfaultSignatures.Fault1, trap2 : $scope.temp.policy.triggerfaultSignatures.Fault2,
trap3 : $scope.temp.policy.triggerfaultSignatures.Fault3, trap4 : $scope.temp.policy.triggerfaultSignatures.Fault4}
}
if($scope.temp.policy.triggerfaultSignatures.length == 5 || $scope.temp.policy.triggerfaultSignatures["Fault5"] != null){
- var faultData = {trap1 : $scope.temp.policy.triggerfaultSignatures.Fault1, trap2 : $scope.temp.policy.triggerfaultSignatures.Fault2,
+ faultData = {trap1 : $scope.temp.policy.triggerfaultSignatures.Fault1, trap2 : $scope.temp.policy.triggerfaultSignatures.Fault2,
trap3 : $scope.temp.policy.triggerfaultSignatures.Fault3, trap4 : $scope.temp.policy.triggerfaultSignatures.Fault4,
trap5 : $scope.temp.policy.triggerfaultSignatures.Fault5}
}
if($scope.temp.policy.triggerfaultSignatures.length == 6 || $scope.temp.policy.triggerfaultSignatures["Fault6"] != null){
- var faultData = {trap1 : $scope.temp.policy.triggerfaultSignatures.Fault1, trap2 : $scope.temp.policy.triggerfaultSignatures.Fault2,
+ faultData = {trap1 : $scope.temp.policy.triggerfaultSignatures.Fault1, trap2 : $scope.temp.policy.triggerfaultSignatures.Fault2,
trap3 : $scope.temp.policy.triggerfaultSignatures.Fault3, trap4 : $scope.temp.policy.triggerfaultSignatures.Fault4,
trap5 : $scope.temp.policy.triggerfaultSignatures.Fault5, trap6 : $scope.temp.policy.triggerfaultSignatures.Fault6}
}
+ return faultData;
+ }
+
+ $scope.saveFaultPolicy = function(policy){
+ if(policy.itemContent != undefined){
+ $scope.refreshCheck = true;
+ $scope.policyNavigator = policy.itemContent;
+ policy.itemContent = "";
+ }
+ $scope.savebutton = false;
+ var data = trapData();
+ var faultData = faultDatas();
var uuu = "policycreation/save_policy";
var postData={policyData: policy,
trapData : data,
@@ -627,7 +636,9 @@ angular.module("abs").controller('clFaultController', ['$scope', '$window', 'Pol
console.log(policy);
document.getElementById("validate").innerHTML = "";
var uuu = "policyController/validate_policy.htm";
- var postData={policyData: policy};
+ var data = trapData();
+ var faultData = faultDatas();
+ var postData={policyData: policy, trapData : data, faultData : faultData};
$.ajax({
type : 'POST',
url : uuu,
diff --git a/POLICY-SDK-APP/src/main/webapp/app/policyApp/policy-models/Editor/PolicyTemplateController/DCAEMicroServicePolicyController.js b/POLICY-SDK-APP/src/main/webapp/app/policyApp/policy-models/Editor/PolicyTemplateController/DCAEMicroServicePolicyController.js
index 5ae453aef..2b3b743d4 100644
--- a/POLICY-SDK-APP/src/main/webapp/app/policyApp/policy-models/Editor/PolicyTemplateController/DCAEMicroServicePolicyController.js
+++ b/POLICY-SDK-APP/src/main/webapp/app/policyApp/policy-models/Editor/PolicyTemplateController/DCAEMicroServicePolicyController.js
@@ -165,7 +165,7 @@ angular.module('abs').controller('dcaeMicroServiceController', ['$scope', '$wind
$scope.choices = [];
$scope.attributeDatas = [{"attributes" : $scope.choices}];
-
+ $scope.isInitEditTemplate = true; //just initially create the edit template, didn't click add button yet.
$scope.addNewChoice = function(value) {
console.log(value);
if(value != undefined){
@@ -176,12 +176,23 @@ angular.module('abs').controller('dcaeMicroServiceController', ['$scope', '$wind
var div = document.getElementById(value+"@0");
if(div != null){
var clone = div.cloneNode(true);
- var addElement = parentElement.childElementCount + 1;
+ var addElement = parentElement.childElementCount;
clone.id = ''+value+'@'+addElement;
clone.value = '';
- clone.className += ' child_single'; //here cloned is single element
- document.getElementById("div."+value).appendChild(clone);
- plainAttributeKeys.push(''+value+'@'+addElement);
+ if($scope.temp.policy.editPolicy || $scope.temp.policy.readOnly){ //if it's view or edit
+ if($scope.temp.policy.ruleData[clone.id] || ($scope.temp.policy.editPolicy && !$scope.isInitEditTemplate)){ // Only append child if its value found in ruleData or edit mode
+ if($scope.temp.policy.ruleData[clone.id]){
+ clone.value = $scope.temp.policy.ruleData[clone.id];
+ }
+ clone.className += ' child_single'; //here cloned is single element
+ document.getElementById("div."+value).appendChild(clone);
+ plainAttributeKeys.push(''+value+'@'+addElement);
+ }
+ }else{ //not view or edit
+ clone.className += ' child_single'; //here cloned is single element
+ document.getElementById("div."+value).appendChild(clone);
+ plainAttributeKeys.push(''+value+'@'+addElement);
+ }
}else{
div = document.getElementById("div."+value+"@0");
@@ -219,6 +230,7 @@ angular.module('abs').controller('dcaeMicroServiceController', ['$scope', '$wind
plainAttributeKeys.push(inputs[i].id);
}
} else {
+// removeValues.push(inputs[i].id);
plainAttributeKeys.push(inputs[i].id);
}
}else {
@@ -320,8 +332,9 @@ angular.module('abs').controller('dcaeMicroServiceController', ['$scope', '$wind
var plainAttributeKeys = [];
$scope.dcaeModelData = data[0].dcaeModelData;
$scope.dcaeJsonDate = data[0].jsonValue;
- $scope.allManyTrueKeys = data[0].allManyTrueKeys;
- console.log("$scope.allManyTrueKeys: " + $scope.allManyTrueKeys);
+ if(data[0].allManyTrueKeys){
+ console.log("$scope.allManyTrueKeys: " + $scope.allManyTrueKeys);
+ }
console.log("$scope.dcaeJsonDate: " + $scope.dcaeJsonDate);
var attributes = $scope.dcaeModelData.attributes;
var refAttributes = $scope.dcaeModelData.ref_attributes;
@@ -371,9 +384,15 @@ angular.module('abs').controller('dcaeMicroServiceController', ['$scope', '$wind
});
- if($scope.temp.policy.editPolicy || $scope.temp.policy.readOnly){
+ if($scope.temp.policy.editPolicy || $scope.temp.policy.readOnly){ // If it's veiw or edit
+
+ if($scope.temp.policy.editPolicy){
+ $scope.isInitEditTemplate = true;
+ }
+
var checkData = [];
var data = [];
+ // If ruleData contains extra elements created by clicked add button
if($scope.temp.policy.ruleData != null){
var propNames = Object.getOwnPropertyNames($scope.temp.policy.ruleData);
propNames.forEach(function(name) {
@@ -383,32 +402,36 @@ angular.module('abs').controller('dcaeMicroServiceController', ['$scope', '$wind
var extraElements = data;
if(plainAttributeKeys != null){
- for(b = 0; b < plainAttributeKeys.length; b++){ // remove already populated elements from extraElements array
+ for(b = 0; b < plainAttributeKeys.length; b++){ // Remove already populated elements from data array
var newValue = plainAttributeKeys[b].split("*");
for(a = 0; a < data.length; a++){
- if(data[a] === newValue[0]){
+ if(data[a] === newValue[0] || data[a] === (newValue[0]+"@0")){
extraElements.splice(a, 1);
}
}
}
- //--- populate these extral elements generated from clicking add button
+ //--- Populate these extra elements created by clicked add button
for(a = 0; a < extraElements.length; a++){
if(extraElements[a].includes("@")){
var n = extraElements[a].lastIndexOf("@");
- var key = extraElements[a].substring(0, n+2); //include @x in key also by n+2 since x can be 1, or 2, or 3
- checkData.push(key);
+ if(n > 0){
+ var key = extraElements[a].substring(0, n+2); //include @x in key also by n+2 since x can be 1, or 2, or 3
+ checkData.push(key);
+ }
}
}
var unique = checkData.filter(onlyUnique);
for(i =0; i < unique.length; i++){
//remove @x and let addNewChoice add @1 or @2...
var newKey = unique[i].substring(0, unique[i].length-2);
+ console.log("newKey: " + newKey);
$scope.addNewChoice(newKey);
}
}
}
-
+ //After initially create the edit template, reset it to false.
+ $scope.isInitEditTemplate = false;
}
var ele = angular.element(document.getElementById("DynamicTemplate"));
$compile(ele.contents())($scope);
@@ -517,7 +540,7 @@ angular.module('abs').controller('dcaeMicroServiceController', ['$scope', '$wind
if (lableList.length > 0){
array = true;
}
- if ( key=="0"){
+ if ( key==="0"){
var newKey = lableList.pop();
$scope.labelLayout(baseLevel, newKey, array );
if (array){
@@ -597,7 +620,7 @@ angular.module('abs').controller('dcaeMicroServiceController', ['$scope', '$wind
if (list.length===0){ //not dropdown element
$scope.attributeBox(attributekey, array, attirbuteLabel, defaultValue, isRequired, "text");
}else{
- $scope.dropBoxLayout(attirbuteLabel, attributekey, array, dataTest[key], list);
+ $scope.dropBoxLayout(attirbuteLabel, attributekey, array, dataTest[key], list, isRequired);
}
break;
}
@@ -618,9 +641,9 @@ angular.module('abs').controller('dcaeMicroServiceController', ['$scope', '$wind
var labeltext = null;
var requiredLabName = "";
if (matching.includes(attibuteKey)){
- labeltext = document.createTextNode(attibuteKey + "*!");
+ labeltext = document.createTextNode(attibuteKey + "*!");
+ isRequired = true; //set required as true for matching element
}else {
- //var labeltext = document.createTextNode(refattributeLabel);
if(isRequired){
requiredLabName = attibuteKey + " *";
labeltext = document.createTextNode(requiredLabName);
@@ -656,7 +679,7 @@ angular.module('abs').controller('dcaeMicroServiceController', ['$scope', '$wind
var checkKey;
if(attributeManyKey){
checkKey = labelValue + attibuteKey+'@0';
- textField.setAttribute("id" , ''+labelValue + attibuteKey+'@0'+'');
+ textField.setAttribute("id" , ''+labelValue + attibuteKey+'@0'+'');
var divTag = document.createElement("div");
divTag.setAttribute("id", "div."+ labelValue +attibuteKey);
var addButton = document.createElement("BUTTON");
@@ -679,7 +702,10 @@ angular.module('abs').controller('dcaeMicroServiceController', ['$scope', '$wind
var divTag = document.createElement("div");
divTag.setAttribute("id", id);
document.getElementById(divID).appendChild(divTag);
- textField.className += ' first_child';
+ textField.className += ' first_child';
+ if(isRequired){
+ textField.setAttribute("required", "true");
+ }
divTag.appendChild(textField);
document.getElementById(divID).appendChild(divTag);
@@ -720,18 +746,6 @@ angular.module('abs').controller('dcaeMicroServiceController', ['$scope', '$wind
if (attributeManyKey){
var newCheckKey = checkKey.replace(attibuteKey + '@0',attibuteKey);
document.getElementById(newCheckKey +'@0').value = $scope.temp.policy.ruleData[newCheckKey +'@0'];
- var i =1 ;
- while(true){
- var newValue = $scope.temp.policy.ruleData[newCheckKey+'@'+i];
- if(newValue==null){
- break;
- }else{
- $scope.addNewChoice(newCheckKey);
- document.getElementById(newCheckKey+'@'+i).value = newValue;
- i = i+1;
- }
- }
-
}else{
document.getElementById(checkKey).value = $scope.temp.policy.ruleData[checkKey];
}
@@ -807,24 +821,24 @@ angular.module('abs').controller('dcaeMicroServiceController', ['$scope', '$wind
var label = document.createElement("Label")
+
+ var refAttributes = $scope.dcaeModelData.ref_attributes;
+ if(isRequired != true && refAttributes){ //check refAttributes also
+ var refAttributesList = refAttributes.split(splitComma);
+ for (k = 0; k < refAttributesList.length; k++){
+ var refAttribute = refAttributesList[k].split(splitEqual);
+ if (attributeName == refAttribute[0].trim() && refAttribute[1].includes("required-true")){
+ isRequired = true;
+ }
+ }
+ }
+
if (matching.includes(attributeName)){
var labeltext = document.createTextNode(attributeName + "*!");
label.appendChild(labeltext);
+ isRequired = true; //set required as true for matching element
}else {
- var labeltext = document.createTextNode(attributeName);
- var isRequired = false;
- var refAttributes = $scope.dcaeModelData.ref_attributes;
- if(refAttributes){
- var refAttributesList = refAttributes.split(splitComma);
- for (k = 0; k < refAttributesList.length; k++){
- var refAttribute = refAttributesList[k].split(splitEqual);
-
- if (attributeName == refAttribute[0].trim() && refAttribute[1].includes("required-true")){
- isRequired = true;
- }
- }
- }
-
+ var labeltext = document.createTextNode(attributeName);
if(isRequired){
requiredLabName = attributeName+ " *";
labeltext = document.createTextNode(requiredLabName);
@@ -844,9 +858,11 @@ angular.module('abs').controller('dcaeMicroServiceController', ['$scope', '$wind
if(isRequired){
listField.setAttribute("required", true);
}
- var optionFirst = document.createElement('option');
- optionFirst.setAttribute('value', "");
- listField.appendChild(optionFirst);
+ if( many != true || isRequired != true){ // add an empty option for not required or not multiple select element
+ var optionFirst = document.createElement('option');
+ optionFirst.setAttribute('value', "");
+ listField.appendChild(optionFirst);
+ }
for (i=0; i < listemunerateValues.length; i += 1) {
option = document.createElement('option');
diff --git a/POLICY-SDK-APP/src/main/webapp/app/policyApp/policy-models/Editor/PolicyTemplates/ActionPolicyTemplate.html b/POLICY-SDK-APP/src/main/webapp/app/policyApp/policy-models/Editor/PolicyTemplates/ActionPolicyTemplate.html
index 313015d8e..3aa0508d5 100644
--- a/POLICY-SDK-APP/src/main/webapp/app/policyApp/policy-models/Editor/PolicyTemplates/ActionPolicyTemplate.html
+++ b/POLICY-SDK-APP/src/main/webapp/app/policyApp/policy-models/Editor/PolicyTemplates/ActionPolicyTemplate.html
@@ -7,12 +7,13 @@
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" />
+ 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" />
+ ng-model="temp.policy.policyDescription"
+ title="Description field will accept any type of data."/>
</div>
</div>
<div class="well">
@@ -20,7 +21,7 @@
<div class="form-group col-sm-2">
<label>Component Attributes:<sup><b>*</b></sup></label><br>
<button type="button" class="btn btn-default"
- ng-disabled="temp.policy.readOnly" ng-click="addNewChoice()">
+ ng-disabled="temp.policy.readOnly" ng-click="addNewChoice()" title="onClick Component Attribute row is added.">
<i class="fa fa-plus"></i>
</button>
</div>
@@ -31,18 +32,19 @@
<div class="form-group col-sm-3">
<select class="form-control" ng-disabled="temp.policy.readOnly"
ng-model="choice.key"
- ng-options="option for option in attributeDictionaryDatas track by option">
+ ng-options="option for option in attributeDictionaryDatas track by option"
+ title="Select the dropdown value driven from Attribute (common)Dictionary.">
<option value="">{{choice.key}}</option>
</select>
</div>
<div class="form-group col-sm-3">
<input type="text" class="form-control"
ng-disabled="temp.policy.readOnly" ng-model="choice.value"
- placeholder="Attribute Value" />
+ placeholder="Attribute Value" title="Enter the Attribute Value without any spaces and special characters"/>
</div>
<div class="form-group col-sm-1">
<button type="button" class="btn btn-default" ng-show="$last"
- ng-disabled="temp.policy.readOnly" ng-click="removeChoice()">
+ ng-disabled="temp.policy.readOnly" ng-click="removeChoice()" title="onClick will remove the last row">
<i class="fa fa-minus"></i>
</button>
</div>
@@ -56,7 +58,7 @@
<div class="form-group col-sm-1">
<button type="button" class="btn btn-default"
ng-disabled="temp.policy.readOnly"
- ng-click="addNewRuleAlgorithm()">
+ ng-click="addNewRuleAlgorithm()" title="onClick Rule Algorithms row is added.">
<i class="fa fa-plus"></i>
</button>
</div>
@@ -75,7 +77,7 @@
ng-disabled="temp.policy.readOnly"
ng-model="ruleAlgorithmschoice.dynamicRuleAlgorithmField1"
ng-options="option for option in attributeDictionaryDatas track by option"
- name="dynamicRuleAlgorithmField1">
+ name="dynamicRuleAlgorithmField1" title="Select the dropdown value driven from Attribute (common)Dictionary.">
<option value="">{{ruleAlgorithmschoice.dynamicRuleAlgorithmField1}}</option>
</select>
</div>
@@ -84,7 +86,7 @@
ng-disabled="temp.policy.readOnly"
ng-model="ruleAlgorithmschoice.dynamicRuleAlgorithmCombo"
ng-options="option for option in functionDefinitionDatas"
- name="dynamicRuleAlgorithmCombo">
+ name="dynamicRuleAlgorithmCombo" title="Select the dropdown value driven from FunctionDataType.">
<option value="">{{ruleAlgorithmschoice.dynamicRuleAlgorithmCombo}}</option>
</select>
</div>
@@ -92,12 +94,12 @@
<input type="text" class="form-control"
ng-disabled="temp.policy.readOnly"
ng-model="ruleAlgorithmschoice.dynamicRuleAlgorithmField2"
- name="dynamicRuleAlgorithmField2" />
+ name="dynamicRuleAlgorithmField2" title="Enter the Value without any spaces and special characters and for rule formation use A1, A2,..etc., based on above Rules."/>
</div>
<div class="form-group col-sm-1">
<button type="button" class="btn btn-default" ng-show="$last"
ng-disabled="temp.policy.readOnly"
- ng-click="removeRuleAlgorithm()">
+ ng-click="removeRuleAlgorithm()" title="onClick will remove the last row">
<i class="fa fa-minus"></i>
</button>
</div>
@@ -110,7 +112,7 @@
<div class="form-group col-sm-6">
<label>Action Performer:<sup><b>*</b></sup></label><BR> <select
class="form-control" ng-disabled="temp.policy.readOnly"
- ng-model="temp.policy.actionPerformer">
+ ng-model="temp.policy.actionPerformer" title="Select the Action Performer values from dropdown.">
<option>PEP</option>
<option>PDP</option>
</select>
@@ -120,7 +122,7 @@
class="form-control"
ng-disabled="temp.policy.readOnly"
ng-model="temp.policy.actionAttributeValue"
- ng-options="option for option in actionPolicyDictionaryDatas track by option"></select>
+ ng-options="option for option in actionPolicyDictionaryDatas track by option" title="Select the dropdown value driven from Action (Action)Dictionary."></select>
</div>
</div>
</div>
@@ -129,11 +131,11 @@
<div class="modal-footer">
<button class="btn btn-primary" herf="javascript:void(0)"
ng-disabled="temp.policy.readOnly"
- ng-click="validatePolicy(temp.policy);">Validate</button>
+ ng-click="validatePolicy(temp.policy);" title="Validate the data entered in the Policy fields.">Validate</button>
<button class="btn btn-success" ng-disabled="savebutton"
herf="javascript:void(0)" ng-disabled="temp.policy.readOnly"
- ng-click="saveActionPolicy(temp);">Save</button>
- <button type="button" class="btn btn-default" ng-click="refresh();">Close</button>
+ ng-click="saveActionPolicy(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>
</form>
</div>
diff --git a/POLICY-SDK-APP/src/main/webapp/app/policyApp/policy-models/Editor/PolicyTemplates/BRMSParamPolicyTemplate.html b/POLICY-SDK-APP/src/main/webapp/app/policyApp/policy-models/Editor/PolicyTemplates/BRMSParamPolicyTemplate.html
index d941c2404..24994d3da 100644
--- a/POLICY-SDK-APP/src/main/webapp/app/policyApp/policy-models/Editor/PolicyTemplates/BRMSParamPolicyTemplate.html
+++ b/POLICY-SDK-APP/src/main/webapp/app/policyApp/policy-models/Editor/PolicyTemplates/BRMSParamPolicyTemplate.html
@@ -8,12 +8,13 @@
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" />
+ 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" />
+ ng-model="temp.policy.policyDescription"
+ title="Description field will accept any type of data."/>
</div>
</div>
<div class="form-group row">
@@ -22,13 +23,13 @@
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>
+ required pattern="\S+" title="Select the dropdown value driven from RiskType (Safe Policy)Dictionary."></select>
</div>
<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">
+ required pattern="\S+" title="Select the dropdown Risk level value.">
<option>1</option>
<option>2</option>
<option>3</option>
@@ -39,7 +40,7 @@
<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">
+ required pattern="\S+" title="Select the dropdown Guard value.">
<option>True</option>
<option>False</option></select>
</div>
@@ -48,19 +49,19 @@
<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" />
+ ng-model="temp.policy.ttlDate" title="Select the date from calender onclick on the field."/>
</div>
<div class="form-group col-sm-3">
<label>Controller:<sup></sup></label> <select
class="form-control" ng-disabled="temp.policy.readOnly"
ng-model="temp.policy.brmsController"
- ng-options="option for option in brmsControllerDatas track by option"></select>
+ ng-options="option for option in brmsControllerDatas track by option" title="Select the dropdown value driven from BRMS Controller (BRMS)Dictionary."></select>
</div>
<div class="form-group col-sm-3">
<label>Dependencies:<sup></sup></label> <select
class="form-control" multiple ng-disabled="temp.policy.readOnly"
ng-model="temp.policy.brmsDependency"
- ng-options="option for option in brmsDependencyDatas track by option"></select>
+ ng-options="option for option in brmsDependencyDatas track by option" title="Select the dropdown value driven from BRMS Dependency (BRMS)Dictionary."></select>
</div>
</div>
</div>
@@ -69,7 +70,7 @@
<div class="form-group col-sm-2">
<label>Rule Attributes:<sup><b></b></sup></label>
<button type="button" class="btn btn-default"
- ng-disabled="temp.policy.readOnly" ng-click="addNewChoice()">
+ ng-disabled="temp.policy.readOnly" ng-click="addNewChoice()" title="onClick Rule Attribute row is added.">
<i class="fa fa-plus"></i>
</button>
</div>
@@ -79,17 +80,17 @@
<div class="form-group row" style="margin-left: 2%">
<div class="form-group col-sm-3">
<input type="text" class="form-control"
- ng-disabled="temp.policy.readOnly" ng-model="choice.key"
+ ng-disabled="temp.policy.readOnly" ng-model="choice.key" title="Enter the Rule Attribute Key without any spaces and special characters"
placeholder="Attribute Key" />
</div>
<div class="form-group col-sm-3">
<input type="text" class="form-control"
- ng-disabled="temp.policy.readOnly" ng-model="choice.value"
+ ng-disabled="temp.policy.readOnly" ng-model="choice.value" title="Enter the Rule Attribute Value without any spaces and special characters"
placeholder="Attribute Value" />
</div>
<div class="form-group col-sm-1">
<button type="button" class="btn btn-default" ng-show="$last"
- ng-disabled="temp.policy.readOnly" ng-click="removeChoice()">
+ ng-disabled="temp.policy.readOnly" ng-click="removeChoice()" title="onClick will remove the last row">
<i class="fa fa-minus"></i>
</button>
</div>
@@ -104,7 +105,7 @@
class="form-control" ng-disabled="temp.policy.readOnly"
ng-model="temp.policy.ruleName"
ng-options="option for option in brmsParamDictionaryDatas track by option"
- ng-click="addDataToFields(temp.policy.ruleName);">
+ ng-click="addDataToFields(temp.policy.ruleName);" title="Select the dropdown value driven from BRMSParamTemplate (BRMS)Dictionary">
<option value="">{{temp.policy.ruleName}}</option>
</select>
</div>
@@ -129,7 +130,7 @@
<h2 class="font-showcase-font-name"> Rule Preview: </h2>
<div class="divider-container"><hr> </div>
<textarea type="text" style="width: 100%; height: 800px" ng-bind="datarule" ng-disabled="true"></textarea>
- <button class="btn btn-default" herf="javascript:void(0)" ng-click="hideRule();">Hide Rule</button>
+ <button class="btn btn-default" herf="javascript:void(0)" ng-click="hideRule();" title="OnClick the BRMS Rule will be Hidden.">Hide Rule</button>
</div>
</div>
<br>
@@ -137,14 +138,14 @@
<div>
<button class="btn btn-primary" herf="javascript:void(0)"
ng-disabled="temp.policy.readOnly"
- ng-click="validatePolicy(temp.policy);">Validate</button>
+ ng-click="validatePolicy(temp.policy);" title="Validate the data entered in the Policy fields.">Validate</button>
<button class="btn btn-default" herf="javascript:void(0)"
- ng-disabled="validateSuccess" ng-click="ShowRule(temp);">Show
+ ng-disabled="validateSuccess" ng-click="ShowRule(temp);" title="OnClick the BRMS Rule will be previewed.">Show
Rule</button>
<button class="btn btn-success" herf="javascript:void(0)"
ng-disabled="savebutton" ng-disabled="temp.policy.readOnly"
- ng-click="saveBrmsParamPolicy(temp);">Save</button>
- <button type="button" class="btn btn-default" ng-click="refresh();">Close</button>
+ ng-click="saveBrmsParamPolicy(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>
diff --git a/POLICY-SDK-APP/src/main/webapp/app/policyApp/policy-models/Editor/PolicyTemplates/BRMSRawPolicyTemplate.html b/POLICY-SDK-APP/src/main/webapp/app/policyApp/policy-models/Editor/PolicyTemplates/BRMSRawPolicyTemplate.html
index 8751768c0..bb94f33c5 100644
--- a/POLICY-SDK-APP/src/main/webapp/app/policyApp/policy-models/Editor/PolicyTemplates/BRMSRawPolicyTemplate.html
+++ b/POLICY-SDK-APP/src/main/webapp/app/policyApp/policy-models/Editor/PolicyTemplates/BRMSRawPolicyTemplate.html
@@ -7,12 +7,13 @@
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" />
+ 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" />
+ ng-model="temp.policy.policyDescription"
+ title="Description field will accept any type of data."/>
</div>
</div>
<div class="form-group row">
@@ -21,13 +22,13 @@
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>
+ required pattern="\S+" title="Select the dropdown value driven from RiskType (Safe Policy)Dictionary."></select>
</div>
<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">
+ required pattern="\S+" title="Select the dropdown Risk level value.">
<option>1</option>
<option>2</option>
<option>3</option>
@@ -38,7 +39,7 @@
<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">
+ required pattern="\S+" title="Select the dropdown Guard value.">
<option>True</option>
<option>False</option></select>
</div>
@@ -47,19 +48,19 @@
<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" />
+ ng-model="temp.policy.ttlDate" title="Select the date from calender onclick on the field."/>
</div>
<div class="form-group col-sm-3">
<label>Controller:<sup></sup></label> <select
class="form-control" ng-disabled="temp.policy.readOnly"
ng-model="temp.policy.brmsController"
- ng-options="option for option in brmsControllerDatas track by option"></select>
+ ng-options="option for option in brmsControllerDatas track by option" title="Select the dropdown value driven from BRMS Controller (BRMS)Dictionary."></select>
</div>
<div class="form-group col-sm-3">
<label>Dependencies:<sup></sup></label> <select
class="form-control" multiple ng-disabled="temp.policy.readOnly"
ng-model="temp.policy.brmsDependency"
- ng-options="option for option in brmsDependencyDatas track by option"></select>
+ ng-options="option for option in brmsDependencyDatas track by option" title="Select the dropdown value driven from BRMS Dependency (BRMS)Dictionary."></select>
</div>
</div>
</div>
@@ -68,7 +69,7 @@
<div class="form-group col-sm-2">
<label>Rule Attributes:<sup></sup></label>
<button type="button" class="btn btn-default"
- ng-disabled="temp.policy.readOnly" ng-click="addNewChoice()">
+ ng-disabled="temp.policy.readOnly" ng-click="addNewChoice()" title="onClick Rule Attribute row is added.">
<i class="fa fa-plus"></i>
</button>
</div>
@@ -78,17 +79,17 @@
<div class="form-group row" style="margin-left: 2%">
<div class="form-group col-sm-3">
<input type="text" class="form-control"
- ng-disabled="temp.policy.readOnly" ng-model="choice.key"
+ ng-disabled="temp.policy.readOnly" ng-model="choice.key" title="Enter the Rule Attribute Key without any spaces and special characters"
placeholder="Attribute Key" />
</div>
<div class="form-group col-sm-3">
<input type="text" class="form-control"
- ng-disabled="temp.policy.readOnly" ng-model="choice.value"
+ ng-disabled="temp.policy.readOnly" ng-model="choice.value" title="Enter the Rule Attribute Value without any spaces and special characters"
placeholder="Attribute Value" />
</div>
<div class="form-group col-sm-1">
<button type="button" class="btn btn-default" ng-show="$last"
- ng-disabled="temp.policy.readOnly" ng-click="removeChoice()">
+ ng-disabled="temp.policy.readOnly" ng-click="removeChoice()" title="onClick will remove the last row">
<i class="fa fa-minus"></i>
</button>
</div>
@@ -101,7 +102,7 @@
<div class="form-group col-sm-12">
<label>Raw Rule:<sup><b>*</b></sup></label>
<textarea class="form-control"
- ng-model="temp.policy.configBodyData"
+ ng-model="temp.policy.configBodyData" title="Enter Valid BRMS Rule."
ng-disabled="temp.policy.readOnly" style="height: 400px;" required></textarea>
</div>
</div>
@@ -112,11 +113,11 @@
<div>
<button class="btn btn-primary" herf="javascript:void(0)"
ng-disabled="temp.policy.readOnly"
- ng-click="validatePolicy(temp.policy);">Validate</button>
+ 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="saveBrmsRawPolicy(temp);">Save</button>
- <button type="button" class="btn btn-default" ng-click="refresh();">Close</button>
+ ng-click="saveBrmsRawPolicy(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>
diff --git a/POLICY-SDK-APP/src/main/webapp/app/policyApp/policy-models/Editor/PolicyTemplates/BasePolicyTemplate.html b/POLICY-SDK-APP/src/main/webapp/app/policyApp/policy-models/Editor/PolicyTemplates/BasePolicyTemplate.html
index c81a98d9b..682abaada 100644
--- a/POLICY-SDK-APP/src/main/webapp/app/policyApp/policy-models/Editor/PolicyTemplates/BasePolicyTemplate.html
+++ b/POLICY-SDK-APP/src/main/webapp/app/policyApp/policy-models/Editor/PolicyTemplates/BasePolicyTemplate.html
@@ -7,12 +7,13 @@
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" />
+ 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" />
+ ng-model="temp.policy.policyDescription"
+ title="Description field will accept any type of data." />
</div>
</div>
<div class="form-group row">
@@ -21,18 +22,20 @@
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="OnapName is required"></select>
+ required pattern="\S+"
+ title="Select the dropdown value driven from OnapName (common)Dictionary."></select>
</div>
<div class="form-group col-sm-3">
<label>Config Name:<sup><b>*</b></sup></label> <input type="text"
class="form-control" ng-disabled="temp.policy.readOnly"
ng-model="temp.policy.configName" required pattern="\S+"
- title="Enter the Config Name without any spaces" />
+ title="Enter the Config Name without any spaces and special characters." />
</div>
<div class="form-group col-sm-3">
<label>Time to Live Date:</label> <input type="text" id="ttlDate"
class="form-control" ng-disabled="temp.policy.readOnly" name="ttlDate"
- ng-model="temp.policy.ttlDate" />
+ ng-model="temp.policy.ttlDate"
+ title="Select the date from calender onclick on the field."/>
</div>
</div>
@@ -42,13 +45,13 @@
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>
+ required pattern="\S+" title="Select the dropdown value driven from RiskType (Safe Policy)Dictionary."></select>
</div>
<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">
+ required pattern="\S+" title="Select the dropdown Risk level value.">
<option>1</option>
<option>2</option>
<option>3</option>
@@ -59,7 +62,7 @@
<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">
+ required pattern="\S+" title="Select the dropdown Guard value.">
<option>True</option>
<option>False</option></select>
</div>
@@ -70,7 +73,7 @@
<div class="form-group col-sm-1">
<label>Attributes:</label>
<button type="button" class="btn btn-default"
- ng-disabled="temp.policy.readOnly" ng-click="addNewChoice()">
+ ng-disabled="temp.policy.readOnly" ng-click="addNewChoice()" title="onClick Attribute row is added.">
<i class="fa fa-plus"></i>
</button>
</div>
@@ -81,18 +84,19 @@
<div class="form-group col-sm-3">
<select class="form-control" required
ng-disabled="temp.policy.readOnly" ng-model="choice.key"
- ng-options="option for option in attributeDictionaryDatas track by option"></select>
+ ng-options="option for option in attributeDictionaryDatas track by option"
+ title="Select the dropdown value driven from Attribute (common)Dictionary."></select>
</div>
<div class="form-group col-sm-3">
<input type="text" class="form-control"
ng-disabled="temp.policy.readOnly" ng-model="choice.value"
placeholder="Attribute Value" required pattern="\S+"
- title="Enter the Attribute Value without any spaces" />
+ title="Enter the Attribute Value without any spaces and special characters" />
</div>
<div class="form-group col-sm-1">
<button type="button" class="btn btn-default"
ng-disabled="temp.policy.readOnly" ng-show="$last"
- ng-click="removeChoice()">
+ ng-click="removeChoice()" title="onClick will remove the last row">
<i class="fa fa-minus"></i>
</button>
</div>
@@ -106,7 +110,7 @@
<label>Config Type:<sup><b>*</b></sup></label> <select
class="form-control" ng-disabled="temp.policy.readOnly"
ng-model="temp.policy.configType" required pattern="\S+"
- title="ConfigType is required">
+ title="Select the dropdown ConfigType value.">
<option>JSON</option>
<option>XML</option>
<option>PROPERTIES</option>
@@ -120,7 +124,7 @@
<label>Body:<sup><b>*</b></sup></label>
<textarea class="form-control" ng-disabled="temp.policy.readOnly"
ng-model="temp.policy.configBodyData" style="height: 400px;"
- required title="ConfigBody is required"></textarea>
+ required title="Enter the ConfigBody based on ConfigType Selection"></textarea>
</div>
</div>
</div>
@@ -129,10 +133,10 @@
<div class="modal-footer">
<div>
<button class="btn btn-primary" ng-disabled="temp.policy.readOnly"
- herf="javascript:void(0)" ng-click="validatePolicy(temp.policy);">Validate</button>
+ herf="javascript:void(0)" ng-click="validatePolicy(temp.policy);" title="Validate the data entered in the Policy fields.">Validate</button>
<button class="btn btn-success" ng-disabled="savebutton"
- herf="javascript:void(0)" ng-click="savePolicy(temp);">Save</button>
- <button type="button" class="btn btn-default" ng-click="refresh();">Close</button>
+ herf="javascript:void(0)" ng-click="savePolicy(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>
diff --git a/POLICY-SDK-APP/src/main/webapp/app/policyApp/policy-models/Editor/PolicyTemplates/ClosedLoopFaultPolicyTemplate.html b/POLICY-SDK-APP/src/main/webapp/app/policyApp/policy-models/Editor/PolicyTemplates/ClosedLoopFaultPolicyTemplate.html
index 0912ac2eb..d3700c94b 100644
--- a/POLICY-SDK-APP/src/main/webapp/app/policyApp/policy-models/Editor/PolicyTemplates/ClosedLoopFaultPolicyTemplate.html
+++ b/POLICY-SDK-APP/src/main/webapp/app/policyApp/policy-models/Editor/PolicyTemplates/ClosedLoopFaultPolicyTemplate.html
@@ -7,12 +7,13 @@
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" />
+ 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" />
+ ng-model="temp.policy.policyDescription"
+ title="Description field will accept any type of data."/>
</div>
</div>
<div class="form-group row">
@@ -21,13 +22,13 @@
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>
+ required pattern="\S+" title="Select the dropdown value driven from RiskType (Safe Policy)Dictionary."></select>
</div>
<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">
+ required pattern="\S+" title="Select the dropdown Risk level value.">
<option>1</option>
<option>2</option>
<option>3</option>
@@ -38,7 +39,7 @@
<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">
+ required pattern="\S+" title="Select the dropdown Guard value.">
<option>True</option>
<option>False</option></select>
</div>
@@ -47,7 +48,7 @@
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="OnapName is required"></select>
+ required pattern="\S+" title="Select the dropdown value driven from OnapName (common)Dictionary."></select>
</div>
</div>
<div class="form-group row">
@@ -55,7 +56,8 @@
<label>Vnf Type:<sup><b>*</b></sup></label> <select
class="form-control" ng-disabled="temp.policy.readOnly"
ng-model="temp.policy.jsonBodyData.vnfType"
- ng-options="option for option in vnfTypeDictionaryDatas track by option">
+ ng-options="option for option in vnfTypeDictionaryDatas track by option"
+ title="Select the dropdown value driven from VNF Type (ClosedLoop Policy)Dictionary.">
<option value="">{{temp.policy.jsonBodyData.vnfType}}</option>
</select>
</div>
@@ -63,7 +65,8 @@
<label>Policy Status:<sup><b>*</b></sup></label> <select
class="form-control" ng-disabled="temp.policy.readOnly"
ng-init="init(temp.policy.jsonBodyData);"
- ng-model="temp.policy.jsonBodyData.closedLoopPolicyStatus">
+ ng-model="temp.policy.jsonBodyData.closedLoopPolicyStatus"
+ title="Select the value from dropdown.">
<option value="Active">Active</option>
<option>InActive</option>
</select>
@@ -84,7 +87,7 @@
<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" />
+ ng-model="temp.policy.ttlDate" title="Select the date from calender onclick on the field."/>
</div>
</div>
</div>
@@ -95,12 +98,14 @@
<div class="form-group row">
<div class="form-group col-sm-1">
<button type="button" class="btn btn-default"
- ng-disabled="temp.policy.readOnly" ng-click="addTriggerButton()">
+ ng-disabled="temp.policy.readOnly" ng-click="addTriggerButton()"
+ title="onClick Trigger Signature Trap row is added.">
<i class="fa fa-plus"></i>
</button>
<button type="button" class="btn btn-default"
ng-disabled="temp.policy.readOnly"
- ng-click="removeTriggerButton()">
+ ng-click="removeTriggerButton()"
+ title="onClick Trigger Signature Trap row is removed.">
<i class="fa fa-minus"></i>
</button>
</div>
@@ -112,12 +117,14 @@
<label ng-model="choice.label" name="label">{{choice.id}}</label>
<button type="button" class="btn btn-default"
ng-disabled="temp.policy.readOnly"
- ng-click="addTrapTriggerButton(choice.id)">
+ ng-click="addTrapTriggerButton(choice.id)"
+ title="onClick Trap Signature row is added.">
<i class="fa fa-plus"></i>
</button>
<button type="button" class="btn btn-default"
ng-disabled="temp.policy.readOnly"
- ng-click="removeTrapTriggerButton(choice.id)">
+ ng-click="removeTrapTriggerButton(choice.id)"
+ title="onClick Trap Signature row is removed.">
<i class="fa fa-minus"></i>
</button>
</div>
@@ -138,7 +145,8 @@
<select class="form-control"
ng-disabled="temp.policy.readOnly"
ng-model="choice.trigger1"
- ng-options="option for option in varbindDictionaryDatas track by option">
+ ng-options="option for option in varbindDictionaryDatas track by option"
+ title="Select the dropdown value driven from Varbind (ClosedLoop)Dictionary.">
<option value="">{{choice.trigger1}}</option>
</select>
</div>
@@ -152,7 +160,8 @@
<select class="form-control"
ng-disabled="temp.policy.readOnly"
ng-model="choice.trigger2"
- ng-options="option for option in varbindDictionaryDatas track by option">
+ ng-options="option for option in varbindDictionaryDatas track by option"
+ title="Select the dropdown value driven from Varbind (ClosedLoop)Dictionary.">
<option value="">{{choice.trigger2}}</option>
</select>
</div>
@@ -170,7 +179,7 @@
<div class="form-group col-sm-1">
<button type="button" class="btn btn-default"
ng-disabled="temp.policy.readOnly"
- ng-click="addTriggerConnectButton()">
+ ng-click="addTriggerConnectButton()" title="onClick Connect Trap Trigger Signature row is added.">
<i class="fa fa-plus"></i>
</button>
</div>
@@ -189,7 +198,8 @@
<div class="form-group col-sm-1">
<select ng-disabled="temp.policy.readOnly"
ng-model="choice.connectTrap1" class="form-control"
- ng-options="option for option in connectTriggerTrapsList track by option">
+ ng-options="option for option in connectTriggerTrapsList track by option"
+ title="Select the traps to form rule formation.">
<option value="">{{choice.connectTrap1}}</option>
</select>
</div>
@@ -206,7 +216,8 @@
<div class="form-group col-sm-1">
<select class="form-control" ng-disabled="temp.policy.readOnly"
ng-model="choice.connectTrap2"
- ng-options="option for option in connectTriggerTrapsList track by option">
+ ng-options="option for option in connectTriggerTrapsList track by option"
+ title="Select the traps to form rule formation.">
<option value="">{{choice.connectTrap2}}</option>
</select>
</div>
@@ -218,7 +229,7 @@
<div class="form-group col-sm-1">
<button type="button" class="btn btn-default" ng-show="$last"
ng-disabled="temp.policy.readOnly"
- ng-click="removeTriggerConnectButton()">
+ ng-click="removeTriggerConnectButton()" title="onClick Connect Trap Trigger Signature row is removed.">
<i class="fa fa-minus"></i>
</button>
</div>
@@ -228,16 +239,15 @@
</div>
<div class="form-group row">
<div class="form-group col-sm-2">
- <label>Clear TimeOut:<sup><b>*</b></sup>
+ <label>Clear TimeOut:
</label><br> <input type="text" ng-disabled="triggerdisabled"
- ng-model="temp.policy.clearTimeOut" class="form-control" required />
+ ng-model="temp.policy.clearTimeOut" class="form-control" title="Enter the Cleartimeout value and the value should be numeric."/>
</div>
<div class="form-group col-sm-2">
- <label>Trap Max Age:<sup><b>*</b></sup></label><br> <input
+ <label>Trap Max Age:</label><br> <input
type="text" ng-disabled="triggerdisabled"
ng-model="temp.policy.trapMaxAge" class="form-control"
- ng-init="temp.policy.jsonBodyData.trapMaxAge='300'" value="300"
- required />
+ ng-init="temp.policy.jsonBodyData.trapMaxAge='300'" value="300" title="Enter the Trap Max Age value and the value should be numeric."/>
</div>
</div>
</div>
@@ -248,7 +258,8 @@
<label>vPRO Actions:<sup><b>*</b></sup></label><br> <select
class="form-control" ng-disabled="temp.policy.readOnly"
ng-model="temp.policy.jsonBodyData.actions"
- ng-options="option for option in vsclActionDictionaryDatas track by option">
+ ng-options="option for option in vsclActionDictionaryDatas track by option"
+ title="Select the dropdown value driven from VSCL Action (ClosedLoop)Dictionary.">
<option value="">{{temp.policy.jsonBodyData.actions}}</option>
</select>
</div>
@@ -256,25 +267,25 @@
<label>Time Interval:<sup><b>*</b></sup>
</label><br> <input type="text" ng-disabled="temp.policy.readOnly"
ng-model="temp.policy.jsonBodyData.timeInterval"
- class="form-control" required />
+ class="form-control" required title="Enter the Time Interval value and the value should be numeric."/>
</div>
<div class="form-group col-sm-2">
<label>App-C TimeOut:<sup><b>*</b></sup></label><br> <input
type="text" ng-disabled="temp.policy.readOnly"
ng-model="temp.policy.jsonBodyData.timeOutvPRO"
- class="form-control" required />
+ class="form-control" required title="Enter the App-C Timeout value and the value should be numeric."/>
</div>
<div class="form-group col-sm-2">
<label>TimeOut for Ruby:<sup><b>*</b></sup></label><br> <input
type="text" ng-disabled="temp.policy.readOnly"
ng-model="temp.policy.jsonBodyData.timeOutRuby"
- class="form-control" required />
+ class="form-control" required title="Enter the Timeout for Ruby value and the value should be numeric."/>
</div>
<div class="form-group col-sm-2">
<label>Number of Retries:<sup><b>*</b></sup></label><br> <input
type="text" ng-disabled="temp.policy.readOnly"
ng-model="temp.policy.jsonBodyData.retrys" class="form-control"
- required />
+ required title="Enter the Number of retries value and the value should be numeric."/>
</div>
</div>
<div class="form-group row">
@@ -282,20 +293,20 @@
<label>Aging Window:<sup><b>*</b></sup>
</label><br> <input type="text" ng-disabled="temp.policy.readOnly"
ng-model="temp.policy.jsonBodyData.agingWindow"
- class="form-control" required />
+ class="form-control" required title="Enter the Aging Window value and the value should be numeric."/>
</div>
<div class="form-group col-sm-4">
<label>Text to Include in UEB messages for AOTS ticket and
Geo Link:</label><br> <input type="text"
ng-disabled="temp.policy.readOnly"
ng-model="temp.policy.jsonBodyData.geoLink" class="form-control"
- required />
+ required title="Enter the UEB Message value."/>
</div>
<div class="form-group col-sm-4">
<label>Email Address:</label><br> <input type="text"
ng-disabled="temp.policy.readOnly"
ng-model="temp.policy.jsonBodyData.emailAddress"
- class="form-control" required />
+ class="form-control" required title="Enter the email address for multiple use comma seperated value."/>
</div>
</div>
</div>
@@ -307,7 +318,8 @@
class="form-control" ng-disabled="temp.policy.readOnly"
ng-model="temp.policy.jsonBodyData.pepName"
ng-options="option for option in pepOptionsDictionaryDatas track by option"
- ng-change="getPepActionValues(temp.policy.jsonBodyData.pepName)">
+ ng-change="getPepActionValues(temp.policy.jsonBodyData.pepName)"
+ title="Select the dropdown value driven from PEP Options (ClosedLoop)Dictionary.">
<option value="">{{temp.policy.jsonBodyData.pepName}}</option>
</select></select></select>
</div>
@@ -315,7 +327,8 @@
<label>Actions:<sup><b></b></sup></label><br> <select
class="form-control" ng-disabled="temp.policy.readOnly"
ng-model="temp.policy.jsonBodyData.pepAction"
- ng-options="option for option in pepActionDictionaryDatas track by option">
+ ng-options="option for option in pepActionDictionaryDatas track by option"
+ title="Select the dropdown value driven based on PEP Options selection from PEP Options (ClosedLoop)Dictionary.">
<option value="">{{temp.policy.jsonBodyData.pepAction}}</option>
</select>
</div>
@@ -329,12 +342,14 @@
<div class="form-group col-sm-1">
<button type="button" class="btn btn-default"
ng-disabled="temp.policy.readOnly"
- ng-click="addVerFaultButton()">
+ ng-click="addVerFaultButton()"
+ title="onClick Verification Signature Fault row is added.">
<i class="fa fa-plus"></i>
</button>
<button type="button" class="btn btn-default"
ng-disabled="temp.policy.readOnly"
- ng-click="removeVerFaultButton()">
+ ng-click="removeVerFaultButton()"
+ title="onClick Verification Signature Fault row is removed.">
<i class="fa fa-minus"></i>
</button>
</div>
@@ -346,12 +361,14 @@
<label ng-model="choice.label" name="label">{{choice.id}}</label>
<button type="button" class="btn btn-default"
ng-disabled="temp.policy.readOnly"
- ng-click="addVerTriggerButton(choice.id)">
+ ng-click="addVerTriggerButton(choice.id)"
+ title="onClick Fault Signature row is added.">
<i class="fa fa-plus"></i>
</button>
<button type="button" class="btn btn-default"
ng-disabled="temp.policy.readOnly"
- ng-click="removeVerTriggerButton(choice.id)">
+ ng-click="removeVerTriggerButton(choice.id)"
+ title="onClick Fault Signature row is removed.">
<i class="fa fa-minus"></i>
</button>
</div>
@@ -372,7 +389,8 @@
<select class="form-control"
ng-disabled="temp.policy.readOnly"
ng-model="choice.trigger1"
- ng-options="option for option in varbindDictionaryDatas track by option">
+ ng-options="option for option in varbindDictionaryDatas track by option"
+ title="Select the dropdown value driven from Varbind (ClosedLoop)Dictionary.">
<option value="">{{choice.trigger1}}</option>
</select>
</div>
@@ -386,7 +404,8 @@
<select class="form-control"
ng-disabled="temp.policy.readOnly"
ng-model="choice.trigger2"
- ng-options="option for option in varbindDictionaryDatas track by option">
+ ng-options="option for option in varbindDictionaryDatas track by option"
+ title="Select the dropdown value driven from Varbind (ClosedLoop)Dictionary.">
<option value="">{{choice.trigger2}}</option>
</select>
</div>
@@ -403,7 +422,7 @@
<div class="form-group col-sm-1">
<button type="button" class="btn btn-default"
ng-disabled="temp.policy.readOnly"
- ng-click="addFaultConnectButton()">
+ ng-click="addFaultConnectButton()" title="onClick Connect Fault Verification Signature row is added.">
<i class="fa fa-plus"></i>
</button>
</div>
@@ -422,7 +441,8 @@
<div class="form-group col-sm-1">
<select ng-disabled="temp.policy.readOnly"
ng-model="choice.connectTrap1" class="form-control"
- ng-options="option for option in connectTriggerFaultsList track by option">
+ ng-options="option for option in connectTriggerFaultsList track by option"
+ title="Select the faults to form rule formation.">
<option value="">{{choice.connectTrap1}}</option>
</select>
</div>
@@ -439,7 +459,8 @@
<div class="form-group col-sm-1">
<select ng-disabled="temp.policy.readOnly"
ng-model="choice.connectTrap2" class="form-control"
- ng-options="option for option in connectTriggerFaultsList track by option">
+ ng-options="option for option in connectTriggerFaultsList track by option"
+ title="Select the faults to form rule formation.">
<option value="">{{choice.connectTrap2}}</option>
</select>
</div>
@@ -451,7 +472,7 @@
<div class="form-group col-sm-1">
<button type="button" class="btn btn-default" ng-show="$last"
ng-disabled="temp.policy.readOnly"
- ng-click="removeFaultConnectButton()">
+ ng-click="removeFaultConnectButton()" title="onClick Connect Fault Verification Signature row is removed.">
<i class="fa fa-minus"></i>
</button>
</div>
@@ -461,11 +482,11 @@
</div>
<div class="form-group row">
<div class="form-group col-sm-2">
- <label>Clear TimeOut:<sup><b>*</b></sup></label><br> <input
+ <label>Clear TimeOut:</label><br> <input
type="text" ng-disabled="verificationdisabled"
ng-disabled="temp.policy.readOnly"
ng-model="temp.policy.verificationclearTimeOut"
- class="form-control" required />
+ class="form-control" required title="Enter the Cleartimeout value and the value should be numeric."/>
</div>
</div>
</div>
@@ -493,11 +514,11 @@
<div class="modal-footer">
<button class="btn btn-primary" herf="javascript:void(0)"
ng-disabled="temp.policy.readOnly"
- ng-click="validatePolicy(temp.policy);">Validate</button>
+ 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="saveFaultPolicy(temp);">Save</button>
- <button type="button" class="btn btn-default" ng-click="refresh();">Close</button>
+ ng-click="saveFaultPolicy(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>
</form>
</div> \ No newline at end of file
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
index 4e7cad3fd..b743224fb 100644
--- 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
@@ -7,12 +7,13 @@
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" />
+ 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" />
+ ng-model="temp.policy.policyDescription"
+ title="Description field will accept any type of data."/>
</div>
</div>
<div class="form-group row">
@@ -21,18 +22,18 @@
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="OnapName is required"></select>
+ 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" />
+ 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="Guard is required">
+ required pattern="\S+" title="Select the dropdown Guard value.">
<option>True</option>
<option>False</option></select>
</div>
@@ -41,7 +42,7 @@
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>
+ required pattern="\S+" title="Select the dropdown value driven from RiskType (Safe Policy)Dictionary."></select>
</div>
</div>
<div class="form-group row">
@@ -49,7 +50,7 @@
<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">
+ required pattern="\S+" title="Select the dropdown Risk level value.">
<option>1</option>
<option>2</option>
<option>3</option>
@@ -74,7 +75,8 @@
<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>
+ ng-click="addDataToFields(temp.policy.serviceTypePolicyName);"
+ title="Select the Service Type PolicyName from dropdown value."></select>
</div>
</div>
</div>
@@ -125,7 +127,8 @@
<div>
<input type="text" class="form-control"
ng-disabled="temp.policy.readOnly"
- ng-model="temp.policy.jsonBodyData.geoLink" />
+ ng-model="temp.policy.jsonBodyData.geoLink"
+ title="Enter the UEB Message value."/>
</div>
</div>
<div class="form-group col-sm-6">
@@ -133,7 +136,8 @@
<div>
<input type="text" class="form-control"
ng-disabled="temp.policy.readOnly"
- ng-model="temp.policy.jsonBodyData.emailAddress" />
+ ng-model="temp.policy.jsonBodyData.emailAddress"
+ title="Enter the email address and for multiple use comma seperated value."/>
</div>
</div>
</div>
@@ -144,11 +148,11 @@
<div>
<button class="btn btn-primary" herf="javascript:void(0)"
ng-disabled="temp.policy.readOnly"
- ng-click="validatePolicy(temp.policy);">Validate</button>
+ 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);">Save</button>
- <button type="button" class="btn btn-default" ng-click="refresh();">Close</button>
+ 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>
diff --git a/POLICY-SDK-APP/src/main/webapp/app/policyApp/policy-models/Editor/PolicyTemplates/DCAEMicroServicePolicyTemplate.html b/POLICY-SDK-APP/src/main/webapp/app/policyApp/policy-models/Editor/PolicyTemplates/DCAEMicroServicePolicyTemplate.html
index 11472b96a..9ce936e4e 100644
--- a/POLICY-SDK-APP/src/main/webapp/app/policyApp/policy-models/Editor/PolicyTemplates/DCAEMicroServicePolicyTemplate.html
+++ b/POLICY-SDK-APP/src/main/webapp/app/policyApp/policy-models/Editor/PolicyTemplates/DCAEMicroServicePolicyTemplate.html
@@ -7,12 +7,13 @@
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" />
+ 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" />
+ ng-model="temp.policy.policyDescription"
+ title="Description field will accept any type of data."/>
</div>
</div>
<div class="form-group row">
@@ -21,18 +22,18 @@
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="OnapName is required"></select>
+ 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" />
+ 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="Guard is required">
+ required pattern="\S+" title="Select the dropdown Guard value.">
<option>True</option>
<option>False</option></select>
</div>
@@ -41,7 +42,7 @@
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>
+ required pattern="\S+" title="Select the dropdown value driven from RiskType (Safe Policy)Dictionary."></select>
</div>
</div>
<div class="form-group row">
@@ -49,7 +50,7 @@
<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">
+ required pattern="\S+" title="Select the dropdown Risk level value.">
<option>1</option>
<option>2</option>
<option>3</option>
@@ -60,7 +61,7 @@
<label>Priority:<sup><b>*</b></sup></label> <select
class="form-control" ng-disabled="temp.policy.readOnly"
ng-model="temp.policy.priority"
- ng-options="option for option in priorityDatas track by option">
+ ng-options="option for option in priorityDatas track by option" title="Select the dropdown Priority value.">
<option value="">{{temp.policy.priority}}</option>
</select>
</div>
@@ -70,7 +71,8 @@
ng-model="temp.policy.serviceType"
ng-options="option for option in microServiceModelsDictionaryDatas track by option"
ng-init="pullVersion(temp.policy.serviceType);"
- ng-click="pullVersion(temp.policy.serviceType);"></select>
+ ng-click="pullVersion(temp.policy.serviceType);"
+ title="Select the dropdown value driven from MicroService Models (MicroService Policy)Dictionary."></select>
</div>
<div class="form-group col-sm-3">
<label>Micro Service Version:<sup><b>*</b></sup></label> <select
@@ -78,7 +80,8 @@
ng-model="temp.policy.version"
ng-options="option for option in microServiceModelsDictionaryVersionDatas track by option"
ng-init="addDataToFields(temp.policy.serviceType, temp.policy.version);"
- ng-click="addDataToFields(temp.policy.serviceType, temp.policy.version);"></select>
+ ng-click="addDataToFields(temp.policy.serviceType, temp.policy.version);"
+ title="Select the dropdown value driven based on MicroService Models (MicroService Policy)Dictionary selection."></select>
</div>
</div>
</div>
@@ -93,26 +96,30 @@
class="form-control" class="form-control"
ng-disabled="temp.policy.readOnly"
ng-model="temp.policy.configName"
- ng-options="option for option in microServiceCongigNameDictionaryDatas track by option" required="true"></select>
+ ng-options="option for option in microServiceCongigNameDictionaryDatas track by option" required="true"
+ title="Select the dropdown value driven from MicroService ConfigName (MicroService Policy)Dictionary."></select>
</div>
<div class="form-group col-sm-3" ng-show="isCheck">
<label>Location:<sup><b>*!</b></sup></label><br> <select
class="form-control" class="form-control"
ng-disabled="temp.policy.readOnly" ng-model="temp.policy.location"
- ng-options="option for option in microServiceLocationDictionaryDatas track by option" required="true"></select>
+ ng-options="option for option in microServiceLocationDictionaryDatas track by option" required="true"
+ title="Select the dropdown value driven from MicroService Location (MicroService Policy)Dictionary."></select>
</div>
<div class="form-group col-sm-3" ng-show="isCheck">
<label>UUID:<sup><b>*!</b></sup></label><br> <select
class="form-control" class="form-control"
ng-disabled="temp.policy.readOnly" ng-model="temp.policy.uuid"
- ng-options="option for option in dcaeUUIDDictionaryDatas track by option" required="true"></select>
+ ng-options="option for option in dcaeUUIDDictionaryDatas track by option" required="true"
+ title="Select the dropdown value driven from DCAE UUID (MicroService Policy)Dictionary."></select>
</div>
<div class="form-group col-sm-3" ng-show="isCheck">
<label>Policy Scope:<sup><b>*</b></sup></label><br> <select
class="form-control" class="form-control"
ng-disabled="temp.policy.readOnly"
ng-model="temp.policy.policyScope"
- ng-options="option for option in groupPolicyScopeListDatas track by option" required="true"></select>
+ ng-options="option for option in groupPolicyScopeListDatas track by option" required="true"
+ title="Select the dropdown value driven from Group Policy Scope (Policy Scope)Dictionary."></select>
</div>
</div>
</div>
@@ -122,11 +129,11 @@
<div class="modal-footer">
<button class="btn btn-primary" herf="javascript:void(0)"
ng-disabled="temp.policy.readOnly"
- ng-click="validatePolicy(temp.policy);">Validate</button>
+ 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="savePolicy(temp);">Save</button>
- <button type="button" class="btn btn-default" ng-click="refresh();">Close</button>
+ ng-click="savePolicy(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>
</form>
</div>
diff --git a/POLICY-SDK-APP/src/main/webapp/app/policyApp/policy-models/Editor/PolicyTemplates/DecisionPolicyTemplate.html b/POLICY-SDK-APP/src/main/webapp/app/policyApp/policy-models/Editor/PolicyTemplates/DecisionPolicyTemplate.html
index 60f3e6dc1..95bf68964 100644
--- a/POLICY-SDK-APP/src/main/webapp/app/policyApp/policy-models/Editor/PolicyTemplates/DecisionPolicyTemplate.html
+++ b/POLICY-SDK-APP/src/main/webapp/app/policyApp/policy-models/Editor/PolicyTemplates/DecisionPolicyTemplate.html
@@ -7,12 +7,13 @@
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" />
+ 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" />
+ ng-model="temp.policy.policyDescription"
+ title="Description field will accept any type of data."/>
</div>
</div>
<div class="form-group row">
@@ -21,7 +22,7 @@
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="OnapName is required"></select>
+ required pattern="\S+" title="Select the dropdown value driven from OnapName (common)Dictionary."></select>
</div>
<div class="form-group col-sm-6">
<label>Rule Provider:<sup><b>*</b></sup></label><select
@@ -48,7 +49,7 @@
<div class="form-group col-sm-2">
<input type="text" class="form-control"
ng-disabled="temp.policy.readOnly" ng-model="temp.policy.rainyday.serviceType"
- placeholder="Service Type" />
+ placeholder="Service Type" title="Enter Service Type value."/>
</div>
<div class="form-group col-sm-1">
<label>VNF Type:<sup><b>*</b></sup></label>
@@ -56,7 +57,7 @@
<div class="form-group col-sm-2">
<input type="text" class="form-control"
ng-disabled="temp.policy.readOnly" ng-model="temp.policy.rainyday.vnfType"
- placeholder="VNF Type" />
+ placeholder="VNF Type" title="Enter VNF Type value."/>
</div>
<div class="form-group col-sm-1">
<label>Building Block ID:<sup><b>*</b></sup></label>
@@ -66,7 +67,7 @@
class="form-control" ng-disabled="temp.policy.readOnly"
ng-model="temp.policy.rainyday.bbid"
ng-options="option for option in rainyDayDictionaryDatas track by option"
- ng-change="getWorkstepValues(temp.policy.rainyday.bbid)">
+ ng-change="getWorkstepValues(temp.policy.rainyday.bbid)" title="Select the dropdown value driven from Rainday Allowed Treatments (Decision)Dictionary.">
<option value="">{{temp.policy.rainyday.bbid}}</option>
</select>
</div>
@@ -289,7 +290,7 @@
<div class="form-group col-sm-3">
<input type="text" class="form-control"
ng-disabled="temp.policy.readOnly" ng-model="temp.policy.yamlparams.limit"
- placeholder="Limit" />
+ placeholder="Limit" title="Enter time limit value."/>
</div>
</div>
<div class="form-group row" style="margin-left: 2%">
@@ -299,11 +300,11 @@
<div class="form-group col-sm-2">
<input type="text" class="form-control"
ng-disabled="temp.policy.readOnly" ng-model="temp.policy.yamlparams.timeWindow"
- placeholder="Time Window" />
+ placeholder="Time Window" title="Enter time window value."/>
</div>
<div class="form-group col-sm-1">
<select class="form-control" ng-disabled="temp.policy.readOnly"
- ng-model="temp.policy.yamlparams.timeUnits">
+ ng-model="temp.policy.yamlparams.timeUnits" title="Select the Time Units value from dropdown options.">
<option>minute</option>
<option>hour</option>
<option>day</option>
@@ -319,7 +320,7 @@
</div>
<div class="form-group col-sm-3">
<input type="text" class="form-control"
- ng-disabled="temp.policy.readOnly" ng-model="temp.policy.yamlparams.guardActiveStart"
+ ng-disabled="temp.policy.readOnly" ng-model="temp.policy.yamlparams.guardActiveStart" title="Enter Guard Active Start value in following patren '00:00:00-05:00'."
placeholder="00:00:00-05:00" />
</div>
</div>
@@ -329,7 +330,7 @@
</div>
<div class="form-group col-sm-3">
<input type="text" class="form-control"
- ng-disabled="temp.policy.readOnly" ng-model="temp.policy.yamlparams.guardActiveEnd"
+ ng-disabled="temp.policy.readOnly" ng-model="temp.policy.yamlparams.guardActiveEnd" title="Enter Guard Active End value in following patren '00:00:00-05:00'."
placeholder="00:00:00-05:00" />
</div>
</div>
@@ -344,7 +345,7 @@
<div class="form-group col-sm-1">
<label>Component Attributes:</label><br>
<button type="button" class="btn btn-default"
- ng-disabled="temp.policy.readOnly" ng-click="addNewChoice()">
+ ng-disabled="temp.policy.readOnly" ng-click="addNewChoice()" title="onClick Component Attribute row is added.">
<i class="fa fa-plus"></i>
</button>
</div>
@@ -355,18 +356,18 @@
<div class="form-group col-sm-3">
<select class="form-control" ng-disabled="temp.policy.readOnly"
ng-model="choice.key"
- ng-options="option for option in attributeDictionaryDatas track by option">
+ ng-options="option for option in attributeDictionaryDatas track by option" title="Select the dropdown value driven from Attribute (common)Dictionary.">
<option value="">{{choice.key}}</option>
</select>
</div>
<div class="form-group col-sm-3">
<input type="text" class="form-control"
ng-disabled="temp.policy.readOnly" ng-model="choice.value"
- placeholder="Attribute Value" />
+ placeholder="Attribute Value" title="Enter the Attribute Value without any spaces and special characters"/>
</div>
<div class="form-group col-sm-1">
<button type="button" class="btn btn-default" ng-show="$last"
- ng-disabled="temp.policy.readOnly" ng-click="removeChoice()">
+ ng-disabled="temp.policy.readOnly" ng-click="removeChoice()" title="onClick will remove the last row">
<i class="fa fa-minus"></i>
</button>
</div>
@@ -383,7 +384,7 @@
<label>Settings Attributes:</label><br>
<button type="button" class="btn btn-default"
ng-disabled="temp.policy.readOnly"
- ng-click="addNewSettingsChoice()">
+ ng-click="addNewSettingsChoice()" title="onClick Settings Attribute row is added.">
<i class="fa fa-plus"></i>
</button>
</div>
@@ -394,19 +395,19 @@
<div class="form-group col-sm-3">
<select class="form-control" ng-disabled="temp.policy.readOnly"
ng-model="settingschoice.key"
- ng-options="option for option in settingsDictionaryDatas track by option">
+ ng-options="option for option in settingsDictionaryDatas track by option" title="Select the dropdown value driven from Settings (Decision)Dictionary.">
<option value="">{{settingschoice.key}}</option>
</select>
</div>
<div class="form-group col-sm-3">
<input type="text" class="form-control"
ng-disabled="temp.policy.readOnly"
- ng-model="settingschoice.value" placeholder="Settings Value" />
+ ng-model="settingschoice.value" placeholder="Settings Value" title="Enter the Settings Attribute Value without any spaces and special characters"/>
</div>
<div class="form-group col-sm-1">
<button type="button" class="btn btn-default" ng-show="$last"
ng-disabled="temp.policy.readOnly"
- ng-click="removeSettingsChoice()">
+ ng-click="removeSettingsChoice()" title="onClick will remove the last row">
<i class="fa fa-minus"></i>
</button>
</div>
@@ -423,7 +424,7 @@
<div class="form-group col-sm-1">
<button type="button" class="btn btn-default"
ng-disabled="temp.policy.readOnly"
- ng-click="addNewRuleAlgorithm()">
+ ng-click="addNewRuleAlgorithm()" title="onClick Rule Algorithms row is added.">
<i class="fa fa-plus"></i>
</button>
</div>
@@ -442,7 +443,7 @@
ng-disabled="temp.policy.readOnly"
ng-model="ruleAlgorithmschoice.dynamicRuleAlgorithmField1"
ng-options="option for option in attributeDictionaryDatas track by option"
- name="dynamicRuleAlgorithmField1">
+ name="dynamicRuleAlgorithmField1" title="Select the dropdown value driven from Attribute (common)Dictionary or Settings (Decision)Dictionary.">
<option value="">{{ruleAlgorithmschoice.dynamicRuleAlgorithmField1}}</option>
</select>
</div>
@@ -451,18 +452,18 @@
ng-disabled="temp.policy.readOnly"
ng-model="ruleAlgorithmschoice.dynamicRuleAlgorithmCombo"
ng-options="option for option in functionDefinitionDatas track by option"
- name="dynamicRuleAlgorithmCombo"></select>
+ name="dynamicRuleAlgorithmCombo" title="Select the dropdown value driven from FunctionDataType."></select>
</div>
<div class="form-group col-sm-3">
<input type="text" class="form-control"
ng-disabled="temp.policy.readOnly"
ng-model="ruleAlgorithmschoice.dynamicRuleAlgorithmField2"
- name="dynamicRuleAlgorithmField2" />
+ name="dynamicRuleAlgorithmField2" title="Enter the Value without any spaces and special characters and for rule formation use A1, A2,..etc., based on above Rules."/>
</div>
<div class="form-group col-sm-1">
<button type="button" class="btn btn-default"
ng-disabled="temp.policy.readOnly"
- ng-click="removeRuleAlgorithm()">
+ ng-click="removeRuleAlgorithm()" title="onClick will remove the last row">
<i class="fa fa-minus"></i>
</button>
</div>
@@ -477,11 +478,11 @@
<div class="modal-footer">
<button class="btn btn-primary" herf="javascript:void(0)"
ng-disabled="temp.policy.readOnly"
- ng-click="validatePolicy(temp.policy);">Validate</button>
+ 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="saveDecisionPolicy(temp);">Save</button>
- <button type="button" class="btn btn-default" ng-click="refresh();">Close</button>
+ ng-click="saveDecisionPolicy(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>
</form>
</div> \ No newline at end of file
diff --git a/POLICY-SDK-APP/src/main/webapp/app/policyApp/policy-models/Editor/PolicyTemplates/FirewallPolicyTemplate.html b/POLICY-SDK-APP/src/main/webapp/app/policyApp/policy-models/Editor/PolicyTemplates/FirewallPolicyTemplate.html
index 7f6a36b39..af1bea1d6 100644
--- a/POLICY-SDK-APP/src/main/webapp/app/policyApp/policy-models/Editor/PolicyTemplates/FirewallPolicyTemplate.html
+++ b/POLICY-SDK-APP/src/main/webapp/app/policyApp/policy-models/Editor/PolicyTemplates/FirewallPolicyTemplate.html
@@ -7,12 +7,13 @@
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" />
+ 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" />
+ ng-model="temp.policy.policyDescription"
+ title="Description field will accept any type of data."/>
</div>
</div>
<div class="form-group row">
@@ -21,13 +22,13 @@
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>
+ required pattern="\S+" title="Select the dropdown value driven from RiskType (Safe Policy)Dictionary."></select>
</div>
<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">
+ required pattern="\S+" title="Select the dropdown Risk level value.">
<option>1</option>
<option>2</option>
<option>3</option>
@@ -38,7 +39,7 @@
<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">
+ required pattern="\S+" title="Select the dropdown Guard value.">
<option>True</option>
<option>False</option></select>
</div>
@@ -47,18 +48,19 @@
<div class="form-group col-sm-3">
<label>Config Name:<sup><b>*</b></sup></label> <input type="text"
class="form-control" ng-disabled="temp.policy.readOnly"
- ng-model="temp.policy.configName" required />
+ ng-model="temp.policy.configName" required title="Enter the Config Name without any spaces and special characters." />
</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" />
+ ng-model="temp.policy.ttlDate" title="Select the date from calender onclick on the field."/>
</div>
<div class="form-group col-sm-3">
<label>Security Zone:<sup><b>*</b></sup></label> <select class="form-control"
ng-disabled="temp.policy.readOnly"
ng-model="temp.policy.securityZone"
- ng-options="option for option in securityZoneDictionaryDatas track by option"></select>
+ ng-options="option for option in securityZoneDictionaryDatas track by option"
+ title="Select the dropdown value driven from Security Zone (Firewall Policy)Dictionary."></select>
</div>
</div>
</div>
@@ -67,7 +69,7 @@
<div class="form-group col-sm-1">
<label>Rule Setup:</label><br>
<button type="button" class="btn btn-default"
- ng-disabled="temp.policy.readOnly" ng-click="addNewChoice()">
+ ng-disabled="temp.policy.readOnly" ng-click="addNewChoice()" title="onClick Rule Setup row is added.">
<i class="fa fa-plus"></i>
</button>
</div>
@@ -78,19 +80,21 @@
<div class="form-group col-sm-3">
<select class="form-control" ng-model="choice.key"
ng-disabled="temp.policy.readOnly"
- ng-options="option for option in termListDictionaryDatas track by option"><option
+ ng-options="option for option in termListDictionaryDatas track by option"
+ title="Select the dropdown value driven from Term List (Firewall Policy)Dictionary."><option
value="">{{choice.key}}</option></select>
</div>
<div class="form-group col-sm-3">
<select class="form-control" ng-model="choice.value"
ng-disabled="temp.policy.readOnly"
- ng-options="option for option in fwTagPickerDictionaryDatas track by option"><option
+ ng-options="option for option in fwTagPickerDictionaryDatas track by option"
+ title="Select the dropdown value driven from FW TagPicker (Firewall Policy)Dictionary."><option
value="">{{choice.value}}</option></select>
</div>
<div class="form-group col-sm-1">
<button type="button" class="btn btn-default"
ng-disabled="temp.policy.readOnly" ng-show="$last"
- ng-click="removeChoice()">
+ ng-click="removeChoice()" title="onClick will remove the last row">
<i class="fa fa-minus"></i>
</button>
</div>
@@ -103,15 +107,15 @@
<br>
<div class="modal-footer">
<button type="button" class="btn btn-default"
- herf="javascript:void(0)" ng-click="viewFWRule(temp.policy);">Rule
+ herf="javascript:void(0)" ng-click="viewFWRule(temp.policy);" title="onClick Firewall Policy Rule is previewed based on the values entered in the template.">Rule
Preview</button>
<button class="btn btn-primary" herf="javascript:void(0)"
ng-disabled="temp.policy.readOnly"
- ng-click="validatePolicy(temp.policy);">Validate</button>
+ 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="saveFWPolicy(temp);">Save</button>
- <button type="button" class="btn btn-default" ng-click="refresh();">Close</button>
+ ng-click="saveFWPolicy(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>
</form>
</div> \ No newline at end of file
diff --git a/POLICY-SDK-APP/src/main/webapp/app/policyApp/policy-models/Editor/css/main.css b/POLICY-SDK-APP/src/main/webapp/app/policyApp/policy-models/Editor/css/main.css
index 317efd9fa..078e8297a 100644
--- a/POLICY-SDK-APP/src/main/webapp/app/policyApp/policy-models/Editor/css/main.css
+++ b/POLICY-SDK-APP/src/main/webapp/app/policyApp/policy-models/Editor/css/main.css
@@ -373,4 +373,51 @@ table th > a:focus {
.table.table-files .btn {
display: none;
}
+}
+
+/* Tooltip container */
+.tooltip {
+ position: relative;
+ display: inline-block;
+ border-bottom: 1px dotted black; /* If you want dots under the hoverable text */
+}
+
+/* Tooltip text */
+.tooltip .tooltiptext {
+ visibility: hidden;
+ width: 120px;
+ background-color: #555;
+ color: #fff;
+ text-align: center;
+ padding: 5px 0;
+ border-radius: 6px;
+
+ /* Position the tooltip text */
+ position: absolute;
+ z-index: 1;
+ bottom: 125%;
+ left: 50%;
+ margin-left: -60px;
+
+ /* Fade in tooltip */
+ opacity: 0;
+ transition: opacity 1s;
+}
+
+/* Tooltip arrow */
+.tooltip .tooltiptext::after {
+ content: "";
+ position: absolute;
+ top: 100%;
+ left: 50%;
+ margin-left: -5px;
+ border-width: 5px;
+ border-style: solid;
+ border-color: #555 transparent transparent transparent;
+}
+
+/* Show the tooltip text when you mouse over the tooltip container */
+.tooltip:hover .tooltiptext {
+ visibility: visible;
+ opacity: 1;
} \ No newline at end of file
diff --git a/POLICY-SDK-APP/src/main/webapp/app/policyApp/policy-models/Editor/js/controllers/policySearchManager.js b/POLICY-SDK-APP/src/main/webapp/app/policyApp/policy-models/Editor/js/controllers/policySearchManager.js
index f973a236a..42e6796cd 100644
--- a/POLICY-SDK-APP/src/main/webapp/app/policyApp/policy-models/Editor/js/controllers/policySearchManager.js
+++ b/POLICY-SDK-APP/src/main/webapp/app/policyApp/policy-models/Editor/js/controllers/policySearchManager.js
@@ -157,35 +157,38 @@ app.controller('PolicySearchController', [
return currentPath.indexOf(path) !== -1;
};
- $scope.searchPolicy = function(searchContent){
- var deferred = $q.defer();
- var uuu = "searchPolicy";
- var postData = {searchdata : searchContent};
- $.ajax({
- type : 'POST',
- url : uuu,
- dataType: 'json',
- contentType: 'application/json',
- data: JSON.stringify(postData),
- success : function(data){
- $scope.$apply(function(){
- var searchdata = data.result;
- if(searchdata.length > 0){
- if(searchdata[0] == "Elastic Search Server is down"){
- alert("Elastic Search Server is down.");
- }else{
- $scope.policyNavigator.searchrefresh(searchdata);
- }
- }else{
- Notification.info("No Matches Found with your Search");
- }
- });
- },
- error : function(data){
- alert("Error while Searching.");
- }
- });
- };
+ $scope.searchPolicy = function(searchContent){
+ if(searchContent != undefined){
+ var uuu = "searchPolicy";
+ var postData = {searchdata : searchContent};
+ $.ajax({
+ type : 'POST',
+ url : uuu,
+ dataType: 'json',
+ contentType: 'application/json',
+ data: JSON.stringify(postData),
+ success : function(data){
+ $scope.$apply(function(){
+ var searchdata = data.result;
+ if(searchdata.length > 0){
+ if(searchdata[0] == "Exception"){
+ Notification.error(searchdata[1]);
+ }else{
+ $scope.policyNavigator.searchrefresh(searchdata);
+ }
+ }else{
+ Notification.info("No Matches Found with your Search");
+ }
+ });
+ },
+ error : function(data){
+ Notification.error("Error while Searching.");
+ }
+ });
+ }else{
+ Notification.error("No data has been entered or selected to search");
+ }
+ };
$scope.refresh = function(searchData){
$scope.policyNavigator.searchrefresh(null);
diff --git a/POLICY-SDK-APP/src/main/webapp/app/policyApp/policy-models/Editor/templates/item-context-menu.html b/POLICY-SDK-APP/src/main/webapp/app/policyApp/policy-models/Editor/templates/item-context-menu.html
index 3c41fbc1d..732b99baa 100644
--- a/POLICY-SDK-APP/src/main/webapp/app/policyApp/policy-models/Editor/templates/item-context-menu.html
+++ b/POLICY-SDK-APP/src/main/webapp/app/policyApp/policy-models/Editor/templates/item-context-menu.html
@@ -27,7 +27,7 @@
</a>
</li>
<li ng-show="config.allowedActions.rename && temp.isFolder()">
- <a href="" tabindex="-1" data-toggle="modal" data-target="#move" ng-show="renameId">
+ <a href="" tabindex="-1" data-toggle="modal" data-target="#moveScope" ng-show="renameId">
<i class="glyphicon glyphicon-edit"></i> Move Scope
</a>
</li>
diff --git a/POLICY-SDK-APP/src/main/webapp/app/policyApp/policy-models/Editor/templates/modals.html b/POLICY-SDK-APP/src/main/webapp/app/policyApp/policy-models/Editor/templates/modals.html
index 1c33839f2..e50802090 100644
--- a/POLICY-SDK-APP/src/main/webapp/app/policyApp/policy-models/Editor/templates/modals.html
+++ b/POLICY-SDK-APP/src/main/webapp/app/policyApp/policy-models/Editor/templates/modals.html
@@ -13,8 +13,8 @@
<div ng-include data-src="'error-bar'" class="clearfix"></div>
</div>
<div class="modal-footer">
- <button type="button" class="btn btn-pedefault" data-dismiss="modal" ng-click="refresh();" ng-disabled="temp.inprocess">Cancel</button>
- <button type="submit" class="btn btn-primary" ng-disabled="temp.inprocess" autofocus="autofocus">Delete</button>
+ <button type="button" class="btn btn-pedefault" data-dismiss="modal" ng-click="refresh();" ng-disabled="temp.inprocess" title="Close the Delete Scope Window.">Cancel</button>
+ <button type="submit" class="btn btn-primary" ng-disabled="temp.inprocess" autofocus="autofocus" title="OnClick you can delete the Scopes.">Delete</button>
</div>
</form>
</div>
@@ -42,8 +42,8 @@
<div ng-include data-src="'error-bar'" class="clearfix"></div>
</div>
<div class="modal-footer">
- <button type="button" class="btn btn-pedefault" data-dismiss="modal" ng-click="refresh();" ng-disabled="temp.inprocess">Cancel</button>
- <button type="submit" class="btn btn-primary" ng-disabled="!temp.model.versions" autofocus="autofocus">Delete</button>
+ <button type="button" class="btn btn-pedefault" data-dismiss="modal" ng-click="refresh();" ng-disabled="temp.inprocess" title="Close the Delete Policy Window.">Cancel</button>
+ <button type="submit" class="btn btn-primary" ng-disabled="!temp.model.versions" autofocus="autofocus" title="OnClick you can delete the Policies.">Delete</button>
</div>
</form>
</div>
@@ -62,7 +62,7 @@
</div>
<div class="modal-body">
<label class="radio">Enter New Name : <b>{{temp.model.name}}</b></label>
- <input class="form-control" ng-model="temp.tempModel.name" autofocus="autofocus">
+ <input class="form-control" ng-model="temp.tempModel.name" autofocus="autofocus" title="Enter the value without space or special characters.">
<div ng-include data-src="'error-bar'" class="clearfix"></div>
</div>
@@ -119,6 +119,29 @@
</div>
</div>
+<div class="modal" id="moveScope" data-toggle="modal" data-backdrop="static" data-keyboard="false">
+ <div class="modal-dialog">
+ <div class="modal-content">
+ <form ng-submit="move(temp)">
+ <div class="modal-header">
+ <button type="button" class="close" data-dismiss="modal">
+ <span class="sr-only">Close</span>
+ </button>
+ <h4 class="modal-title">Move Scope</h4>
+ </div>
+ <div class="modal-body">
+ <div ng-include data-src="'path-selector'" class="clearfix"></div>
+ <div ng-include data-src="'error-bar'" class="clearfix"></div>
+ </div>
+ <div class="modal-footer">
+ <button type="button" class="btn btn-pedefault" data-dismiss="modal" ng-click="refresh();" ng-disabled="temp.inprocess">Cancel</button>
+ <button type="submit" class="btn btn-primary" ng-disabled="temp.inprocess">Move</button>
+ </div>
+ </form>
+ </div>
+ </div>
+</div>
+
<div class="modal" id="switchVersion" data-toggle="modal" data-backdrop="static" data-keyboard="false">
<div class="modal-dialog">
<div class="modal-content">
@@ -131,16 +154,16 @@
</div>
<div class="modal-body">
<label class="radio">Highest Version <b></b></label>
- <input class="form-control" ng-disabled="true" ng-model="temp.tempModel.content.highestVersion" autofocus="autofocus">
+ <input class="form-control" ng-disabled="true" ng-model="temp.tempModel.content.highestVersion" autofocus="autofocus" title="The Field shows highest version of Policy.">
</div>
<div class="modal-body">
<label class="radio">Active Version <b></b></label>
- <select class="form-control" ng-model="temp.tempModel.content.activeVersion" ng-options="option for option in temp.tempModel.content.availableVersions" autofocus="autofocus"></select>
+ <select class="form-control" ng-model="temp.tempModel.content.activeVersion" ng-options="option for option in temp.tempModel.content.availableVersions" autofocus="autofocus" title="Enter the value not greater than highest version to switch policy."></select>
<div ng-include data-src="'error-bar'" class="clearfix"></div>
</div>
<div class="modal-footer">
- <button type="button" class="btn btn-pedefault" data-dismiss="modal" ng-disabled="temp.inprocess">Cancel</button>
- <button type="submit" class="btn btn-primary" ng-disabled="temp.tempModel.content.highestVersion === temp.tempModel.content.activeVersion">Save</button>
+ <button type="button" class="btn btn-pedefault" data-dismiss="modal" ng-disabled="temp.inprocess" title="OnClick SwitchVersion Window is closed.">Cancel</button>
+ <button type="submit" class="btn btn-primary" ng-disabled="temp.tempModel.content.highestVersion === temp.tempModel.content.activeVersion" title="OnClick Policy Version will be Switched.">Save</button>
</div>
</form>
</div>
@@ -159,12 +182,12 @@
</div>
<div class="modal-body">
<label class="radio">Enter new Policy Name to Clone <b>{{temp.model.name}}</b></label>
- <input class="form-control" ng-model="temp.tempModel.name" autofocus="autofocus">
+ <input class="form-control" ng-model="temp.tempModel.name" autofocus="autofocus" title="Enter the PolicyName without space or special characters.">
<div ng-include data-src="'error-bar'" class="clearfix"></div>
</div>
<div class="modal-footer">
- <button type="button" class="btn btn-pedefault" data-dismiss="modal" ng-disabled="temp.inprocess">Cancel</button>
- <button type="submit" class="btn btn-primary" ng-disabled="temp.inprocess">Clone</button>
+ <button type="button" class="btn btn-pedefault" data-dismiss="modal" ng-disabled="temp.inprocess" title="OnClick Clone Window is closed.">Cancel</button>
+ <button type="submit" class="btn btn-primary" ng-disabled="temp.inprocess" title="OnClick the Policy will be cloned.">Clone</button>
</div>
</form>
</div>
@@ -183,12 +206,12 @@
</div>
<div class="modal-body">
<label class="radio">Scope Name</label>
- <input class="form-control" ng-model="temp.tempModel.name" autofocus="autofocus">
+ <input class="form-control" ng-model="temp.tempModel.name" autofocus="autofocus" title="Enter the ScopeName without space or special characters.">
<div ng-include data-src="'error-bar'" class="clearfix"></div>
</div>
<div class="modal-footer">
- <button id = "cancel" type="button" class="btn btn-pedefault" data-dismiss="modal" ng-disabled="temp.inprocess">Cancel</button>
- <button type="submit" class="btn btn-primary" ng-disabled="temp.inprocess">Create</button>
+ <button id = "cancel" type="button" class="btn btn-pedefault" data-dismiss="modal" ng-disabled="temp.inprocess" title="OnClick Scope Window is closed.">Cancel</button>
+ <button type="submit" class="btn btn-primary" ng-disabled="temp.inprocess" title="OnClick Scope is created.">Create</button>
</div>
</form>
</div>
@@ -207,12 +230,12 @@
</div>
<div class="modal-body">
<label class="radio">Scope Name</label>
- <input class="form-control" ng-model="temp.tempModel.subScopename" autofocus="autofocus">
+ <input class="form-control" ng-model="temp.tempModel.subScopename" autofocus="autofocus" title="Enter the SubScopeName without space or special characters.">
<div ng-include data-src="'error-bar'" class="clearfix"></div>
</div>
<div class="modal-footer">
- <button type="button" class="btn btn-pedefault" data-dismiss="modal" ng-disabled="temp.inprocess">Cancel</button>
- <button type="submit" class="btn btn-primary" ng-disabled="temp.inprocess">Create</button>
+ <button type="button" class="btn btn-pedefault" data-dismiss="modal" ng-disabled="temp.inprocess" title="OnClick SubScope Window is closed.">Cancel</button>
+ <button type="submit" class="btn btn-primary" ng-disabled="temp.inprocess" title="OnClick SubScope is created.">Create</button>
</div>
</form>
</div>
@@ -236,8 +259,8 @@
</div>
<div class="modal-footer">
<div ng-show="!fileUploader.requesting">
- <button type="button" class="btn btn-pedefault" data-dismiss="modal">Cancel</button>
- <button type="submit" class="btn btn-primary" ng-disabled="!uploadFileList.length || fileUploader.requesting">{{'upload' | translate}}</button>
+ <button type="button" class="btn btn-pedefault" data-dismiss="modal" title="OnClick Import window is closed.">Cancel</button>
+ <button type="submit" class="btn btn-primary" ng-disabled="!uploadFileList.length || fileUploader.requesting" title="OnClick Policy will be Imported.">{{'upload' | translate}}</button>
</div>
<div ng-show="fileUploader.requesting">
<span class="label label-warning">Uploading......</span>
diff --git a/POLICY-SDK-APP/src/main/webapp/app/policyApp/policy-models/Editor/templates/navbar.html b/POLICY-SDK-APP/src/main/webapp/app/policyApp/policy-models/Editor/templates/navbar.html
index dfac651ae..54c48da25 100644
--- a/POLICY-SDK-APP/src/main/webapp/app/policyApp/policy-models/Editor/templates/navbar.html
+++ b/POLICY-SDK-APP/src/main/webapp/app/policyApp/policy-models/Editor/templates/navbar.html
@@ -10,10 +10,10 @@
<div class="form-group col-sm-5" style="margin-top: 2%"></div>
<div class="form-group col-sm-4" style="margin-top: 2%" align="right" ng-hide="isDisabled">
<div class="btn-group">
- <button type="button" class="btn btn-primary" ng-show="superAdminId" data-toggle="modal" data-target="#newfolder" ng-click="touch()"><i class="glyphicon glyphicon-plus"></i>Add Scope</button>
- <button type="button" class="btn btn-primary" ng-show="importPolicyId" data-toggle="modal" data-target="#uploadfile" ng-show="config.allowedActions.upload" ng-click="touch()"> <i class="glyphicon glyphicon-upload"></i>Import</button>
- <button type="button" class="btn btn-primary" ng-show="exportPolicyId" data-toggle="modal" data-target="#exportPolicy" ng-show="config.allowedActions.exportPolicy"> <i class="glyphicon glyphicon-download"></i>Export</button>
- <button class="btn btn-secondary" type="button" onClick="window.location='policy#/policy_SearchFilter';">Filter</button>
+ <button type="button" class="btn btn-primary" ng-show="superAdminId" data-toggle="modal" data-target="#newfolder" ng-click="touch()" title="Create Scope for adding policies"><i class="glyphicon glyphicon-plus"></i>Add Scope</button>
+ <button type="button" class="btn btn-primary" ng-show="importPolicyId" data-toggle="modal" data-target="#uploadfile" ng-show="config.allowedActions.upload" ng-click="touch()" title="On Click Popup will open to Import policies"> <i class="glyphicon glyphicon-upload"></i>Import</button>
+ <button type="button" class="btn btn-primary" ng-show="exportPolicyId" data-toggle="modal" data-target="#exportPolicy" ng-show="config.allowedActions.exportPolicy" title="On Click Popup will open to Export policies"> <i class="glyphicon glyphicon-download"></i>Export</button>
+ <button class="btn btn-secondary" type="button" onClick="window.location='policy#/policy_SearchFilter';" title="On Click Navigaate to Search window">Filter</button>
</div>
</div>
</div>
diff --git a/POLICY-SDK-APP/src/main/webapp/app/policyApp/policy-models/Editor/templates/searchNavbar.html b/POLICY-SDK-APP/src/main/webapp/app/policyApp/policy-models/Editor/templates/searchNavbar.html
index 891e27b9c..f46c5b5dc 100644
--- a/POLICY-SDK-APP/src/main/webapp/app/policyApp/policy-models/Editor/templates/searchNavbar.html
+++ b/POLICY-SDK-APP/src/main/webapp/app/policyApp/policy-models/Editor/templates/searchNavbar.html
@@ -58,7 +58,7 @@ body {
<div class="input-group">
<div class="input-group" id="adv-search">
<input type="text" class="form-control"
- placeholder="{{'search'}}..." ng-model="search.query" />
+ placeholder="{{'search'}}..." ng-model="search.query" title="Enter the value to filter policies."/>
<div class="input-group-btn">
<div class="btn-group" role="group">
<div class="dropdown dropdown-lg">
@@ -71,7 +71,7 @@ body {
<div class="form-group row">
<div class="form-group col-sm-4">
<label for="filter">Policy Type:</label> <select
- class="form-control" ng-model="search.policyType">
+ class="form-control" ng-model="search.policyType" title="Select the PolicyType value.">
<option>action</option>
<option>config</option>
<option>closedLoop</option>
@@ -82,7 +82,7 @@ body {
<div class="form-group col-sm-8">
<label for="filter">Descriptive Type:</label> <select
class="form-control" ng-model="search.descriptiveScope"
- ng-options="option for option in descriptiveScopeDictionaryDatas track by option"></select>
+ ng-options="option for option in descriptiveScopeDictionaryDatas track by option" title="Select Descriptive Scope value driven from Descriptive Scope dictionary."></select>
</div>
</div>
<div ng-if="search.policyType == 'closedLoop'">
@@ -90,21 +90,21 @@ body {
<div class="form-group col-sm-6">
<label>ClosedLoop Policy Type:</label><BR> <select
class="form-control"
- ng-model="search.closedLooppolicyType">
+ ng-model="search.closedLooppolicyType" title="Select the ClosedLoop Policy Type value.">
<option>Config_Fault</option>
<option>Config_PM</option>
</select>
</div>
<div class="form-group col-sm-6">
<label>Onap Name:</label><BR> <select
- class="form-control" ng-model="search.onapName"
+ class="form-control" ng-model="search.onapName" title="Select the dropdown value driven from ONAP (Common)Dictionary."
ng-options="option for option in onapNameDictionaryDatas track by option"></select>
</div>
</div>
<div class="form-group row">
<div class="form-group col-sm-6" ng-if="search.closedLooppolicyType == 'Config_PM'">
<label>D2 Service:</label><BR> <select
- class="form-control" ng-model="search.d2Service">
+ class="form-control" ng-model="search.d2Service" title="Select the ClosedLoop D2 Service value.">
<option>Hosted Voice(Trinity)</option>
<option>vUSP</option>
<option>MCR</option>
@@ -115,7 +115,7 @@ body {
<div class="form-group col-sm-6"
ng-if="search.closedLooppolicyType == 'Config_PM'">
<label>Service Type:</label><BR> <select
- class="form-control" ng-model="search.serviceType">
+ class="form-control" ng-model="search.serviceType" title="Select the Service Type Value.">
<option>Registration Failure(Trinity)</option>
<option>International Fraud(Trinity)</option>
<option>No Dial Tone(Trinity)</option>
@@ -128,13 +128,13 @@ body {
<div class="form-group col-sm-6"
ng-if="search.closedLooppolicyType == 'Config_Fault'">
<label>VNF Type:</label><BR> <select
- class="form-control" ng-model="search.vnfType"
+ class="form-control" ng-model="search.vnfType" title="Select the ClosedLoop VNF Type value."
ng-options="option for option in vnfTypeDictionaryDatas track by option"></select>
</div>
<div class="form-group col-sm-6"
ng-if="search.closedLooppolicyType == 'Config_Fault'">
<label>Policy Status:</label><BR> <select
- class="form-control" ng-model="search.policyStatus">
+ class="form-control" ng-model="search.policyStatus" title="Select the Policy Status value.">
<option>Active</option>
<option>InActive</option>
</select>
@@ -145,11 +145,11 @@ body {
ng-if="search.closedLooppolicyType == 'Config_Fault'">
<label>vPRO Action:</label><BR> <select
class="form-control" ng-model="search.vproAction"
- ng-options="option for option in vsclActionDictionaryDatas track by option"></select>
+ ng-options="option for option in vsclActionDictionaryDatas track by option" title="Select vPRO Action value."></select>
</div>
<div class="form-group col-sm-6" ng-if="search.closedLooppolicyType == 'Config_Fault'">
<label>Bind Text Search to:</label><BR> <select
- class="form-control" ng-model="search.bindTextSearch">
+ class="form-control" ng-model="search.bindTextSearch" title="Select the Bind Text Search value.">
<option>Email Address</option>
<option>Trigger Signature</option>
<option>Connect All Traps</option>
@@ -167,11 +167,11 @@ body {
</div>
</div>
<button type="button" class="btn btn-pedefault"
- ng-click="refresh(search = null);">
+ ng-click="refresh(search = null);" title="Clear the selected values.">
<span aria-hidden="true">Clear</span>
</button>
<button type="button" class="btn btn-primary"
- ng-click="searchPolicy(search);">
+ ng-click="searchPolicy(search);" title="Click on the button to search for policies after entering the fields.">
<span class="glyphicon glyphicon-search" aria-hidden="true"></span>
</button>
</div>
@@ -183,8 +183,8 @@ body {
</div>
<div class="form-group col-sm-4" style="margin-top: 2%" align="right">
<div class="btn-group">
- <button class="btn btn-secondary" type="button" onClick="window.location='policy#/Editor';">Editor</button>
- <button class="btn btn-primary" type="button" onClick="window.location='policy#/policy_SearchFilter';">Filter</button>
+ <button class="btn btn-secondary" type="button" onClick="window.location='policy#/Editor';" title="OnClick navigate to Editor tab.">Editor</button>
+ <button class="btn btn-primary" type="button" onClick="window.location='policy#/policy_SearchFilter';" title="Search Policy window">Filter</button>
</div>
</div>
</div>
diff --git a/POLICY-SDK-APP/src/main/webapp/app/policyApp/policy-models/policy_AdminTab.html b/POLICY-SDK-APP/src/main/webapp/app/policyApp/policy-models/policy_AdminTab.html
index 75ad7ca93..caca4152c 100644
--- a/POLICY-SDK-APP/src/main/webapp/app/policyApp/policy-models/policy_AdminTab.html
+++ b/POLICY-SDK-APP/src/main/webapp/app/policyApp/policy-models/policy_AdminTab.html
@@ -26,7 +26,7 @@
<div>
<input type="checkbox"
ng-click="saveLockDownValue(lockdowndata[0].lockdown);"
- ng-model="lockdowndata[0].lockdown" b2b-switches>
+ ng-model="lockdowndata[0].lockdown" b2b-switches title="Click on the button to Lockdown Policy Application.">
</div>
</label>
<div ng-show="isDisabled" class="icon-lock"
diff --git a/POLICY-SDK-APP/src/main/webapp/app/policyApp/policy-models/policy_Dictionary.html b/POLICY-SDK-APP/src/main/webapp/app/policyApp/policy-models/policy_Dictionary.html
index 5086ccfdb..c4559a4ad 100644
--- a/POLICY-SDK-APP/src/main/webapp/app/policyApp/policy-models/policy_Dictionary.html
+++ b/POLICY-SDK-APP/src/main/webapp/app/policyApp/policy-models/policy_Dictionary.html
@@ -46,16 +46,16 @@
<div class="form-group col-sm-3">
<label>Policy Type Dictionary:</label> </br><select class="form-control"
ng-model="option1" ng-options="option for option in options1"
- ng-change="getOptions2()"></select>
+ ng-change="getOptions2()" title="Dropdown shows values specific to Policy type."></select>
</div>
<div class="form-group col-sm-3">
<label>Select Dictionary:</label></br> <select class="form-control"
- ng-model="option2" ng-options="option for option in options2"></select>
+ ng-model="option2" ng-options="option for option in options2" title="Dictionary type values are shown based on specific Policy Type Dictionary selection."></select>
</div>
<div class="form-group col-sm-1">
<label></label></br>
<button class="btn btn-primary btn-small" type="button"
- herf="javascript:void(0)" ng-click="import();">Import
+ herf="javascript:void(0)" ng-click="import();" title="Import Dictionary's and the file ends with .csv format">Import
Dictionary's</button>
</div>
</div>
diff --git a/POLICY-SDK-APP/src/main/webapp/app/policyApp/policy-models/policy_PDPManagement.html b/POLICY-SDK-APP/src/main/webapp/app/policyApp/policy-models/policy_PDPManagement.html
index 55e7a07cd..1a48e8cd4 100644
--- a/POLICY-SDK-APP/src/main/webapp/app/policyApp/policy-models/policy_PDPManagement.html
+++ b/POLICY-SDK-APP/src/main/webapp/app/policyApp/policy-models/policy_PDPManagement.html
@@ -47,13 +47,13 @@
<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
+ ng-click="addNewPDPGroupPopUpWindow();" ng-show="createPdpGroupId" title="Create PDP Group">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">
+ placeholder="{{'search'}}..." ng-model="search" title="Filter the PDP Groups based on pdpname or pdp's">
</div>
</div>
@@ -102,13 +102,13 @@
</td>
<td width="15%">
<div ng-click="editPDPGroupFunctionModalPopup(pdpdata);"
- style="font-size: 20px;" ng-show="editPdpGroupId">
+ style="font-size: 20px;" ng-show="editPdpGroupId" title="Edit PDP Group to create/update/delete pdp's and to see the active policies in PDP Group.">
<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">
+ ng-show="deletePdpGroupId" title="Delete PDP Group.">
<span href="javascript:void(0)" class="glyphicon glyphicon-trash"></span>
</div>
</td>