-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
93 lines (93 loc) · 4.42 KB
/
index.html
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
<!DOCTYPE html>
<html ng-app="myApp" ng-app lang="en">
<head>
<meta charset="utf-8">
<link href="css/bootstrap.min.css" rel="stylesheet">
<style type="text/css">
ul>li, a{
cursor: pointer;
}
.footer {
position: absolute;
bottom: 0;
width: 100%;
height: 60px;
background-color: #f5f5f5;
}
</style>
<title ng-controller="MessagesController">Consulta de la tabla {{tableName}}</title>
</head>
<body>
<div class="navbar navbar-default" id="navbar">
<div class="container" id="navbar-container">
<div class="navbar-header" ng-controller="MessagesController">
<a href="#" class="navbar-brand">
<small>
<i class="glyphicon glyphicon-log-out"></i>
Consulta de la tabla {{tableName}} en SiGeA v2 Producción
</small>
</a>
</div>
</div>
</div>
<div ng-controller="customersCrtl">
<div class="container">
<div class="row">
<div class="col-md-2">Contidad de registros:
<select ng-model="entryLimit" class="form-control">
<option>5</option>
<option>10</option>
<option>20</option>
<option>50</option>
<option>100</option>
</select>
</div>
<div class="col-md-3">Filtro:
<input type="text" ng-model="search" ng-change="filter()" placeholder="Filtro" class="form-control" />
</div>
<div class="col-md-4">
<h5>Filtrados {{filtered.length}} de un total de {{totalItems}} registros (sólo se muestran los últimos {{totalItems}} registros)</h5>
</div>
</div>
<br/>
<div class="row">
<div class="col-md-12" ng-show="filteredItems > 0">
<table class="table table-striped table-bordered">
<thead>
<th>Id <a ng-click="sort_by('id');"><i class="glyphicon glyphicon-sort"></i></a></th>
<th>Fecha y Hora <a ng-click="sort_by('datetime');"><i class="glyphicon glyphicon-sort"></i></a></th>
<th>Entidad <a ng-click="sort_by('entity');"><i class="glyphicon glyphicon-sort"></i></a></th>
<th>Item o Dato <a ng-click="sort_by('item');"><i class="glyphicon glyphicon-sort"></i></a></th>
<th>Observaciones <a ng-click="sort_by('observations');"><i class="glyphicon glyphicon-sort"></i></a></th>
<th>Operación <a ng-click="sort_by('operation');"><i class="glyphicon glyphicon-sort"></i></a></th>
<th>Nombre de Usuario <a ng-click="sort_by('username');"><i class="glyphicon glyphicon-sort"></i></a></th>
</thead>
<tbody>
<tr ng-repeat="data in filtered = (list | filter:search | orderBy : predicate :reverse) | startFrom:(currentPage-1)*entryLimit | limitTo:entryLimit">
<td>{{data.id}}</td>
<td>{{data.datetime}}</td>
<td>{{data.entity}}</td>
<td>{{data.item}}</td>
<td>{{data.observations}}</td>
<td>{{data.operation}}</td>
<td>{{data.username}}</td>
</tr>
</tbody>
</table>
</div>
<div class="col-md-12" ng-show="filteredItems == 0">
<div class="col-md-12">
<h4>No se han encontrado registros</h4>
</div>
</div>
<div class="col-md-12" ng-show="filteredItems > 0">
<div pagination="" max-size="10" page="currentPage" on-select-page="setPage(page)" boundary-links="true" total-items="filteredItems" items-per-page="entryLimit" class="pagination-small" first-text="Primero" last-text="Último" previous-text="«" next-text="»">
</div>
</div>
</div>
</div>
<script src="js/angular.min.js"></script>
<script src="js/ui-bootstrap-tpls-0.10.0.min.js"></script>
<script src="app/app.js"></script>
</body>
</html>