diff options
author | rb7147 <rb7147@att.com> | 2018-02-01 12:07:13 -0500 |
---|---|---|
committer | rb7147 <rb7147@att.com> | 2018-02-01 13:50:11 -0500 |
commit | 1148834bc4b10d00c1b1830b087357e63af8293f (patch) | |
tree | f3a6d166f8a86c8b2b0a9bc1b062f9fc87cd3d58 /POLICY-SDK-APP/src/main/webapp/app/policyApp/policy-models/Editor/PolicyTemplates | |
parent | 066fc4529f36d210a4a4700e8dbfd2cb42f4dc66 (diff) |
Included Policy GUI Enhancements and validations
Added hover messages for all policy templates.
Resolved few sonar issues.
Added fixes for Policy GUI Validations.
Issue-ID: POLICY-597
Change-Id: I74abb92dd6ac8722d7869b6a316fad1d8db11d9c
Signed-off-by: rb7147 <rb7147@att.com>
Diffstat (limited to 'POLICY-SDK-APP/src/main/webapp/app/policyApp/policy-models/Editor/PolicyTemplates')
9 files changed, 234 insertions, 189 deletions
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 |