Merge "Use AAAShiroFilter as TokenAuthFilter was deprecated in Be"
[groupbasedpolicy.git] / groupbasedpolicy-old-ui / module / src / main / resources / gbp / views / gateway.tpl.html
1 <div ng-controller="gatewayCtrl" ng-init="init()">
2
3     <div ng-include src="view_path+'parts/crud.tpl.html'"></div>
4
5     <section class="formWrapper clearfix" ng-show="internalView.gateway">
6         <form name="gatewayForm" novalidate="novalidate">
7             <i class="icon-remove align-right" ng-click="close()"></i>
8
9             <div class="rowWrapper">
10                 <label class="block basicLabel">Gateway:
11                     <i class="icon-exclamation-sign red" tooltip="Invalid pattern" ng-show="gatewayForm.gateway.$error.pattern"></i>
12                     <i class="icon-exclamation-sign red" tooltip="Required field" ng-show="gatewayForm.gateway.$error.required"></i>
13                 </label>
14                 <input class="form-control" type="text" ng-model="newGatewayObj.gateway" name="gateway" ng-pattern="/^(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])(%[\p{N}\p{L}]+)?$/" ng-required="true" ng-disabled="internalView.edit !== 'add'"/>
15             </div>
16
17             <button class="btn btn-primary col-md-12" ng-click="save()" ng-hide="internalView.edit === 'view'">Save</button>
18         </form>
19     </section>
20
21     <section class="formWrapper clearfix" ng-show="selectedGateway">
22         <div ng-include src="view_path+'prefix.tpl.html'"></div>
23     </section>
24
25 </div>