[POLICY-73] replace openecomp for policy-engine
[policy/engine.git] / POLICY-SDK-APP / src / main / webapp / app / policyApp / Windows / Dictionary / EnforcerTypeDictionary.html
1 <!--/*-
2  * ============LICENSE_START=======================================================
3  * ONAP 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 <script type="text/ng-template" id="add_EnforcerType_popup.html">
21     <div class="modal__informative font-showcase" style="width:800px;">
22         <div class="modal__header">
23             <h2 class="font-showcase-font-name" style="width: 500px;">{{label}}</h2>
24         </div>
25         <div class="divider-container"><hr> </div>
26                 <form name="formdata" ng-submit="saveEnforcerType(editEnforcerType);" novalidate>
27         <div class="modal__content">
28             <div class="fn-ebz-container" ng-class="{ 'has-error' : formdata.enforcingType.$invalid && !formdata.enforcingType.$pristine }">
29                 <label>Enforcer Type:<sup><b>*</b></sup></label><br>
30                 <input type="text" ng-model="editEnforcerType.enforcingType" style="width:500px;" name= "enforcingType"  required/>
31                                 <p ng-show="formdata.enforcingType.$invalid && !formdata.enforcingType.$pristine" class="help-block">Enforcer Type is required.</p>
32             </div>
33             <br/>
34             <div class="fn-ebz-container" ng-class="{ 'has-error' : formdata.script.$invalid && !formdata.script.$pristine }">
35                 <label>Script:</label><br>
36                 <input type="text" ng-model="editEnforcerType.script" style="width:500px;" name= "script"  required/>
37                                 <p ng-show="formdata.script.$invalid && !formdata.script.$pristine" class="help-block">Script is required.</p>
38             </div>
39             <div class="fn-ebz-container" ng-class="{ 'has-error' : formdata.connectionQuery.$invalid && !formdata.connectionQuery.$pristine }">
40                 <label>Query for Connection:</label><br>
41                 <input type="text"  ng-model="editEnforcerType.connectionQuery" style="width:500px;" name= "connectionQuery"  required/>
42                                 <p ng-show="formdata.connectionQuery.$invalid && !formdata.connectionQuery.$pristine" class="help-block">Query for Connection is required.</p>
43             </div>
44             <div class="fn-ebz-container" ng-class="{ 'has-error' : formdata.valueQuery.$invalid && !formdata.valueQuery.$pristine }">
45                 <label>Query for Pre-populating value:</label><br>
46                 <input type="text" ng-model="editEnforcerType.valueQuery" style="width:500px;" name= "valueQuery"  required/>
47                                 <p ng-show="formdata.valueQuery.$invalid && !formdata.valueQuery.$pristine" class="help-block">Query for Pre-populating value is required.</p>
48             </div>
49         </div>
50         <div class="modal__footer">
51             <button class="btn btn-success" type="submit" ng-disabled="formdata.$invalid">Save</button>
52             <button class="btn btn-default" herf="javascript:void(0)" ng-click="close()">Close</button>
53         </div>
54                 </form>
55     </div>
56 </script>