Initial OpenECOMP policy/engine commit
[policy/engine.git] / ecomp-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 animated fadeIn" id="createNewPolicy" style="margin-bottom: 20px; width: 100%" data-toggle="modal" data-backdrop="static" data-keyboard="false">
22     <div class="modal__informative font-showcase" style="width:95%;">
23         <div class="modal__header">
24         <button type="button" class="close" data-dismiss="modal">
25             <span aria-hidden="true">&times;</span>
26             <span class="sr-only">{{"close" | translate}}</span>
27         </button>
28         <form class="form-horizontal" role="form">
29         <div  class="form-group">
30                         <label >Policy Type:</label>
31                         <div>
32                         <select class="form-field"  ng-model="temp.policy.policyType" ng-disabled ="temp.policy.readOnly || temp.policy.editPolicy">
33                           <option>Action</option>
34                           <option>Config</option>
35                           <option>Decision</option>
36                      </select>
37                         </div>  
38                  </div>
39                  <div ng-if ="temp.policy.policyType == 'Action'" ng-include="'app/policyApp/policy-models/Editor/PolicyTemplates/ActionPolicyTemplate.html'"></div>
40                  <div ng-if ="temp.policy.policyType == 'Decision'" ng-include="'app/policyApp/policy-models/Editor/PolicyTemplates/DecisionPolicyTemplate.html'"></div>
41                  <div ng-if ="temp.policy.policyType == 'Config'" >
42                  <div class="form-group">       
43                                 <label>Config Policy Type:</label>
44                                 <div>
45                         <select class="form-field"  ng-model="temp.policy.configPolicyType" ng-disabled ="temp.policy.readOnly || temp.policy.editPolicy">
46                                 <option>Base</option>
47                                         <option>BRMS_Param</option>
48                                         <option>BRMS_Raw</option>
49                                 <option>ClosedLoop_Fault</option>
50                                 <option>ClosedLoop_PM</option>
51                                         <option>DCAE Micro Service</option>
52                                 <option>Firewall Config</option>
53                         </select>
54                         </div>
55                  </div>
56                          <div ng-if ="temp.policy.configPolicyType == 'Base'" ng-include="'app/policyApp/policy-models/Editor/PolicyTemplates/BasePolicyTemplate.html'"></div>
57                          <div ng-if ="temp.policy.configPolicyType == 'BRMS_Param'" ng-include="'app/policyApp/policy-models/Editor/PolicyTemplates/BRMSParamPolicyTemplate.html'"></div>
58                          <div ng-if ="temp.policy.configPolicyType == 'BRMS_Raw'" ng-include="'app/policyApp/policy-models/Editor/PolicyTemplates/BRMSRawPolicyTemplate.html'"></div>
59                          <div ng-if ="temp.policy.configPolicyType == 'ClosedLoop_Fault'" ng-include="'app/policyApp/policy-models/Editor/PolicyTemplates/ClosedLoopFaultPolicyTemplate.html'"></div>
60                          <div ng-if ="temp.policy.configPolicyType == 'ClosedLoop_PM'" ng-include="'app/policyApp/policy-models/Editor/PolicyTemplates/ClosedLoopPMPolicyTemplate.html'"></div>
61                          <div ng-if ="temp.policy.configPolicyType == 'DCAE Micro Service'" ng-include="'app/policyApp/policy-models/Editor/PolicyTemplates/DCAEMicroServicePolicyTemplate.html'"></div>
62                          <div ng-if ="temp.policy.configPolicyType == 'Firewall Config'">
63                          <div class="form-group">
64                          <label>Firewall Policy Type:</label>
65                            <div>
66                         <select class="form-field"  ng-model="temp.policy.fwPolicyType" ng-disabled ="temp.policy.readOnly || temp.policy.editPolicy">
67                                 <option>Parent Policy</option>
68                                         <option>Child Policy</option>
69                         </select>
70                         </div>
71                          <div ng-if ="temp.policy.fwPolicyType == 'Parent Policy'" ng-include="'app/policyApp/policy-models/Editor/PolicyTemplates/FirewallPolicyTemplate.html'"></div>
72                          <div ng-if ="temp.policy.fwPolicyType == 'Child Policy'" ng-include="'app/policyApp/policy-models/Editor/PolicyTemplates/FirewallPolicyTemplate.html'"></div>
73                      </div>
74                          </div>
75                 </div>
76                 </form>
77                 </div>
78     </div>
79 </div>