Fixed the Policy API issues and Bugfixes
[policy/engine.git] / POLICY-SDK-APP / src / main / webapp / app / policyApp / policy-models / Editor / PolicyTemplates / PolicyTypeTemplate.html
1 <!--
2   ============LICENSE_START=======================================================
3   ECOMP Policy Engine
4   ================================================================================
5   Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
6   ================================================================================
7   Licensed under the Apache License, Version 2.0 (the "License");
8   you may not use this file except in compliance with the License.
9   You may obtain a copy of the License at
10   
11        http://www.apache.org/licenses/LICENSE-2.0
12   
13   Unless required by applicable law or agreed to in writing, software
14   distributed under the License is distributed on an "AS IS" BASIS,
15   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16   See the License for the specific language governing permissions and
17   limitations under the License.
18   ============LICENSE_END=========================================================
19   -->
20
21 <div class="modal" id="createNewPolicy"
22         style="margin-bottom: 20px; width: 100%" data-backdrop="static"
23         data-keyboard="false">
24         <div class="modal-dialog-lg">
25                 <!-- Modal content-->
26                 <div class="modal-content">
27                         <div class="modal-header">
28                                 <button type="button" class="close" data-dismiss="modal" ng-click="refresh();">
29                                         <span class="sr-only">{{"close"
30                                                 | translate}}</span>
31                                 </button>
32                                 <form>
33                                         <div class="form-group" style="width: 300px">
34                                                 <label>Policy Type:</label>
35                                                 <div>
36                                                         <select class="form-control" ng-model="temp.policy.policyType"
37                                                                 ng-disabled="temp.policy.readOnly || temp.policy.editPolicy">
38                                                                 <option>Action</option>
39                                                                 <option>Config</option>
40                                                                 <option>Decision</option>
41                                                         </select>
42                                                 </div>
43                                         </div>
44                                         <div ng-if="temp.policy.policyType == 'Action'"
45                                                 ng-include="'app/policyApp/policy-models/Editor/PolicyTemplates/ActionPolicyTemplate.html'"></div>
46                                         <div ng-if="temp.policy.policyType == 'Decision'"
47                                                 ng-include="'app/policyApp/policy-models/Editor/PolicyTemplates/DecisionPolicyTemplate.html'"></div>
48                                         <div ng-if="temp.policy.policyType == 'Config'">
49                                                 <div class="form-group" style="width: 300px">
50                                                         <label>Config Policy Type:</label>
51                                                         <div>
52                                                                 <select class="form-control"
53                                                                         ng-model="temp.policy.configPolicyType"
54                                                                         ng-disabled="temp.policy.readOnly || temp.policy.editPolicy">
55                                                                         <option>Base</option>
56                                                                         <option>BRMS_Param</option>
57                                                                         <option>BRMS_Raw</option>
58                                                                         <option>ClosedLoop_Fault</option>
59                                                                         <option>ClosedLoop_PM</option>
60                                                                         <option>Micro Service</option>
61                                                                         <option>Firewall Config</option>
62                                                                 </select>
63                                                         </div>
64                                                 </div>
65                                                 <div ng-if="temp.policy.configPolicyType == 'Base'"
66                                                         ng-include="'app/policyApp/policy-models/Editor/PolicyTemplates/BasePolicyTemplate.html'"></div>
67                                                 <div ng-if="temp.policy.configPolicyType == 'BRMS_Param'"
68                                                         ng-include="'app/policyApp/policy-models/Editor/PolicyTemplates/BRMSParamPolicyTemplate.html'"></div>
69                                                 <div ng-if="temp.policy.configPolicyType == 'BRMS_Raw'"
70                                                         ng-include="'app/policyApp/policy-models/Editor/PolicyTemplates/BRMSRawPolicyTemplate.html'"></div>
71                                                 <div ng-if="temp.policy.configPolicyType == 'ClosedLoop_Fault'"
72                                                         ng-include="'app/policyApp/policy-models/Editor/PolicyTemplates/ClosedLoopFaultPolicyTemplate.html'"></div>
73                                                 <div ng-if="temp.policy.configPolicyType == 'ClosedLoop_PM'"
74                                                         ng-include="'app/policyApp/policy-models/Editor/PolicyTemplates/ClosedLoopPMPolicyTemplate.html'"></div>
75                                                 <div ng-if="temp.policy.configPolicyType == 'Micro Service'"
76                                                         ng-include="'app/policyApp/policy-models/Editor/PolicyTemplates/DCAEMicroServicePolicyTemplate.html'"></div>
77                                                 <div ng-if="temp.policy.configPolicyType == 'Firewall Config'"
78                                                         ng-include="'app/policyApp/policy-models/Editor/PolicyTemplates/FirewallPolicyTemplate.html'"></div>
79                                         </div>
80                                 </form>
81                         </div>
82                 </div>
83         </div>
84 </div>