| {{!-- |
| Licensed to the Apache Software Foundation (ASF) under one or more |
| contributor license agreements. See the NOTICE file distributed with |
| this work for additional information regarding copyright ownership. |
| The ASF licenses this file to You under the Apache License, Version 2.0 |
| (the "License"); you may not use this file except in compliance with |
| the License. You may obtain a copy of the License at |
| |
| http://www.apache.org/licenses/LICENSE-2.0 |
| |
| Unless required by applicable law or agreed to in writing, software |
| distributed under the License is distributed on an "AS IS" BASIS, |
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| See the License for the specific language governing permissions and |
| limitations under the License. |
| --}} |
| {{#if editPolicy}} |
| <h4> {{tt 'h.editPolicy'}}</h4> |
| {{else}} |
| <h4> {{tt 'h.createPolicy'}} </h4> |
| {{/if}} |
| <div class="wrap non-collapsible "> |
| <div class="alert alert-danger" data-id="policyDisabledAlert" style="display:none;"> |
| <button type="button" class="close" data-dismiss="alert">×</button> |
| <strong>Warning !</strong> {{tt 'msg.policyDisabledMsg'}} |
| </div> |
| <div class="alert alert-warning {{displayClass}}" data-id="policyInfoAlert"> |
| <button type="button" class="close" data-dismiss="alert">×</button> |
| <i class="icon-info-sign searchInfoUserAccess padding-right-10"></i>{{{infoMsg}}} |
| </div> |
| <div data-id="r_form"></div> |
| <div class="form-actions form-policy"> |
| {{#if editPolicy}} |
| <button type="submit" data-id="save" class="btn btn-spinner btn-primary"> |
| <span>Save</span> |
| <i class="icon-spinner icon-spin"></i> |
| </button> |
| {{else}} |
| <button type="submit" data-id="save" class="btn btn-spinner btn-primary"> |
| <span>Add</span> |
| <i class="icon-spinner icon-spin"></i> |
| </button> |
| {{/if}} |
| <button type="button" data-id="cancel" class="btn btn-inverse"> |
| Cancel |
| </button> |
| {{#if editPolicy}} |
| <button type="button" data-id="delete" class="btn btn-danger" ><!-- style="margin-left: 27%;" -->Delete</button> |
| {{/if}} |
| </div> |
| </div> |
| |