2 * ============LICENSE_START=======================================================
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
11 * http://www.apache.org/licenses/LICENSE-2.0
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=========================================================
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>
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>
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>
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>
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>
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>