1 <div ng-controller="optimizationController">
4 <div class="form-group row">
5 <div class="form-group col-sm-6">
6 <label>Policy Name:<sup><b>*</b></sup></label> <input type="text"
7 class="form-control" ng-disabled="temp.policy.readOnly"
8 ng-readonly="temp.policy.editPolicy"
9 ng-model="temp.policy.policyName" required pattern="\S+"
10 title="Enter Policy Name without any spaces and special characters and will accept _." />
12 <div class="form-group col-sm-6">
13 <label>Description:</label> <input type="text" class="form-control"
14 ng-disabled="temp.policy.readOnly"
15 ng-model="temp.policy.policyDescription"
16 title="Description field will accept any type of data."/>
19 <div class="form-group row">
20 <div class="form-group col-sm-3">
21 <label>Onap Name:<sup><b>*</b></sup></label> <select
22 class="form-control" ng-disabled="temp.policy.readOnly"
23 ng-model="temp.policy.onapName"
24 ng-options="option for option in onapNameDictionaryDatas track by option"
25 required pattern="\S+" title="Select the dropdown value driven from OnapName (common)Dictionary."></select>
27 <div class="form-group col-sm-3">
28 <label>Time to Live Date:</label> <input type="text" id="ttlDate"
29 class="form-control" name="ttlDate" ng-disabled="temp.policy.readOnly"
30 ng-model="temp.policy.ttlDate" title="Select the date from calender onclick on the field."/>
32 <div class="form-group col-sm-3">
33 <label>Guard:<sup><b>*</b></sup></label> <select
34 class="form-control" ng-disabled="temp.policy.readOnly"
35 ng-model="temp.policy.guard"
36 required pattern="\S+" title="Select the dropdown Guard value.">
38 <option>False</option></select>
40 <div class="form-group col-sm-3">
41 <label>Risk Type:<sup><b>*</b></sup></label> <select
42 class="form-control" ng-disabled="temp.policy.readOnly"
43 ng-model="temp.policy.riskType"
44 ng-options="option for option in riskTypeDictionaryDatas track by option"
45 required pattern="\S+" title="Select the dropdown value driven from RiskType (Safe Policy)Dictionary."></select>
48 <div class="form-group row">
49 <div class="form-group col-sm-3">
50 <label>Risk Level:<sup><b>*</b></sup></label> <select
51 class="form-control" ng-disabled="temp.policy.readOnly"
52 ng-model="temp.policy.riskLevel"
53 required pattern="\S+" title="Select the dropdown Risk level value.">
58 <option>5</option></select>
60 <div class="form-group col-sm-3">
61 <label>Priority:<sup><b>*</b></sup></label> <select
62 class="form-control" ng-disabled="temp.policy.readOnly"
63 ng-model="temp.policy.priority"
64 ng-options="option for option in priorityDatas track by option" title="Select the dropdown Priority value.">
65 <option value="">{{temp.policy.priority}}</option>
68 <div class="form-group col-sm-3">
69 <label>Optimization Model:<sup><b>*</b></sup></label> <select
70 class="form-control" ng-disabled="temp.policy.readOnly"
71 ng-model="temp.policy.serviceType"
72 ng-options="option for option in optimizationModelsDictionaryDatas track by option"
73 ng-init="pullVersion(temp.policy.serviceType);"
74 ng-click="pullVersion(temp.policy.serviceType);"
75 title="Select the dropdown value driven from Optimization Models (Optimization Policy)Dictionary."></select>
77 <div class="form-group col-sm-3">
78 <label>Optimization Model Version:<sup><b>*</b></sup></label> <select
79 class="form-control" ng-disabled="temp.policy.readOnly"
80 ng-model="temp.policy.version"
81 ng-options="option for option in optimizationModelsDictionaryVersionDatas track by option"
82 ng-init="addDataToFields(temp.policy.serviceType, temp.policy.version);"
83 ng-change="addDataToFields(temp.policy.serviceType, temp.policy.version);"
84 title="Select the dropdown value driven based on Optimization Models (Optimization Policy)Dictionary selection."></select>
89 <div class="form-group col-sm-12" id="DynamicTemplate">
90 <label>Optimization Model Attributes:<sup><b>*</b></sup></label><br>
93 <div class="form-group row"></div>
96 <div id="validate" style="width: 70%"></div>
98 <div class="modal-footer">
99 <button class="btn btn-primary" herf="javascript:void(0)"
100 ng-disabled="temp.policy.readOnly"
101 ng-click="validatePolicy(temp.policy);" title="Validate the data entered in the Policy fields.">Validate</button>
102 <button class="btn btn-success" herf="javascript:void(0)"
103 ng-disabled="savebutton" ng-disabled="temp.policy.readOnly"
104 ng-click="savePolicy(temp);" title="Save the Policy with validated data.">Save</button>
105 <button type="button" class="btn btn-default" ng-click="refresh();" title="Close the template.">Close</button>