aboutsummaryrefslogblamecommitdiffstats
path: root/view/tpl/acl_selector.tpl
blob: 722d541edf2467728a7d531d18e8c21d00e92504 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
















                                                                                                                                                   
                                                                      












                                                                                                                                             

        
                              



                                               
                                                                                         


                          

         
<div class="modal" id="aclModal">
	<div class="modal-dialog">
		<div class="modal-content">
			<div class="modal-header">
				<button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
				<h4 class="modal-title">{{$aclModalTitle}}</h4>
			</div>
			<div class="modal-body">
				<div id="acl-wrapper">
					<button id="acl-showall" class="btn btn-block btn-default"><i class="icon-globe"></i> {{$showall}}</button>
					<input type="text" id="acl-search" placeholder="&#xf002;">
					<div id="acl-list">
						<div id="acl-list-content"></div>
					</div>
					<span id="acl-fields"></span>
				</div>
				<div class="acl-list-item" rel="acl-template" style="display:none">
					<img data-src="{0}"><p>{1}</p>
					<button class="acl-button-hide btn btn-xs btn-default"><i class="icon-remove"></i> {{$hide}}</button>
					<button class="acl-button-show btn btn-xs btn-default"><i class="icon-ok"></i> {{$show}}</button>
				</div>
				{{if $jotnets}}
				{{$jotnets}}
				{{/if}}
			</div>
			<div class="modal-footer">
				<button type="button" class="btn btn-default" data-dismiss="modal">{{$aclModalDismiss}}</button>
			</div>
		</div><!-- /.modal-content -->
	</div><!-- /.modal-dialog -->
</div><!-- /.modal -->

<script>
$(document).ready(function() {
	setTimeout( function () {
		if(typeof acl=="undefined"){
			acl = new ACL(
				baseurl+"/acl",
				[ {{$allowcid}},{{$allowgid}},{{$denycid}},{{$denygid}} ]
			);
		}
	}, 5000 );
});
</script>