-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfiltros.html
More file actions
56 lines (56 loc) · 2.1 KB
/
filtros.html
File metadata and controls
56 lines (56 loc) · 2.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
<!DOCTYPE html>
<html ng-app="myApp">
<head>
<meta charset="utf-8">
<title>Filtros</title>
<link rel="stylesheet" href="public/lib/bootstrap/dist/css/bootstrap.min.css">
<script src="public/lib/angular/angular.min.js"></script>
<script src="public/lib/angular/angular-locale_es-es.js"></script>
<script src="filtros.js"></script>
<body>
<div class="container" ng-controller="ControladorFiltros">
<h1>Filtros Nativos de AngularJS</h1>
<hr>
<div class="panel panel-primary">
<div class="panel-heading">
<div class="input-group">
<span class="input-group-addon"><i class="glyphicon glyphicon-search"></i></span>
<input type="text" class="form-control" placeholder="Buscare Empleado" ng-model="buscar.materno">
</div>
</div>
<div class="panel-body">
<table class="table table-striped">
<thead>
<tr>
<th>
<a href="" ng-click="ordenarPor('nombre')">
Nombre/s
</a>
<span class="caret" style="cursor: pointer" ng-click="ordenarPor('-nombre')"></span>
</th>
<th>Apellido Patero</th>
<th>Apellido Materno</th>
<th>Primer día de trabajo</th>
<th>Teléfono</th>
<th>Salario</th>
<th>Bono</th>
</tr>
</thead>
<tbody>
<tr ng-repeat="empleado in empleados | orderBy:ordenSeleccionado | filter:buscar">
<td>{{empleado.nombre}}</td>
<td>{{empleado.paterno | uppercase}}</td>
<td>{{empleado.materno | lowercase}}</td>
<td>{{empleado.primerDia | date: 'fullDate'}} a las {{empleado.primerDia | date: 'h:mma'}}</td>
<td>{{empleado.telefono}}</td>
<td>{{empleado.salario | currency}}</td>
<td>%{{empleado.bono | number: 2}}</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</body>
</head>
</html>