<div class="bs-component main-pagination" ng-controller="permisoCrtl">	
	<div class="row">
		<div class="col-md-4">
			<form class="form-inline">
				<div class="form-group">
					<label >Buscar</label>
					<input type="text" ng-model="search" class="form-control" placeholder="Buscar">
				</div>
			</form>
		</div>
		<div class="col-md-8">
			<p>Total de Permisos registrados : <strong>{{totalItems}}</strong></p>
		</div>
	</div>
	<table class="table table-striped table-hover">
		<thead>
			<tr>
				<th colspan="2">
					<span></span>
				</th>
				<th ng-click="sort('usuario')">Nombre Usuario
					<span class="glyphicon sort-icon" ng-show="sortKey=='nombre_actividad'" ng-class="{'glyphicon-chevron-up':reverse,'glyphicon-chevron-down':!reverse}"></span>
				</th>
				
				<th ng-click="sort('area')">Apellido Usuario
					<span class="glyphicon sort-icon" ng-show="sortKey=='nombre_sitio'" ng-class="{'glyphicon-chevron-up':reverse,'glyphicon-chevron-down':!reverse}"></span>
				</th>
				
				<th ng-click="sort('area')">Areea
					<span class="glyphicon sort-icon" ng-show="sortKey=='nombre_sitio'" ng-class="{'glyphicon-chevron-up':reverse,'glyphicon-chevron-down':!reverse}"></span>
				</th>
				
				
			</tr>
		</thead>
		<tbody>
			<tr dir-paginate="permiso in permisos|orderBy:sortKey:reverse|filter:search|itemsPerPage:5">
				<td class="acciones"><a class="a-edit" title="Editar" href="<?php echo base_url('permiso/edit')."/" ?>{{permiso.id}}"><i class="glyphicon glyphicon-pencil"></i></a></td>
				
				<td class="acciones"><a class="a-del" title="Eliminar" ng-click="deletePermiso(permiso.id)"><i class="glyphicon glyphicon-trash"></i></a></td>
				<td>{{permiso.usuario}}</td>
				<td>{{permiso.apellido}}</td>
				<td>{{permiso.area}}</td>
				
			</tr>
		</tbody>
	</table> 
	<dir-pagination-controls
		max-size="5"
		direction-links="true"
		boundary-links="true" >
	</dir-pagination-controls>
</div>