Skip to content

Commit 5ab837f

Browse files
committed
se agrego filtros y directiva de tabla
1 parent eff8ee0 commit 5ab837f

File tree

13 files changed

+69
-29
lines changed

13 files changed

+69
-29
lines changed

.DS_Store

6 KB
Binary file not shown.

app/.DS_Store

6 KB
Binary file not shown.

app/index.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@
9191
<script src="scripts/controllers/listado.js"></script>
9292
<script src="scripts/services/listadofactory.js"></script>
9393
<script src="scripts/controllers/listadonuevomodal.js"></script>
94+
<script src="scripts/directives/tablalistado.js"></script>
9495
<!-- endbuild -->
9596
</body>
9697
</html>

app/scripts/app.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ angular
1818
templateUrl: 'views/inicio.html'
1919
})
2020
.when( '/listado', {
21-
templateUrl: 'views/listado.html',
21+
templateUrl: 'views/listado/listado.html',
2222
controller: 'ListadoCtrl'
2323
})
2424
.otherwise({

app/scripts/controllers/listado.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ angular.module( 'angularclApp' )
99
$scope.nuevoRegistro = function () {
1010

1111
var modalInstance = $modal.open({
12-
templateUrl: 'views/listado-nuevo-modal.html',
12+
templateUrl: 'views/listado/listado-nuevo-modal.html',
1313
controller: 'ListadonuevomodalCtrl',
1414
});
1515

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
'use strict';
2+
3+
angular.module('angularclApp')
4+
5+
.directive('tablaListado', function () {
6+
7+
return {
8+
templateUrl: 'views/listado/tabla-listado.html',
9+
restrict: 'E',
10+
};
11+
12+
});

app/styles/main.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,14 @@
1616
.btn-success {
1717
background: #548;
1818
border-color: #548;
19-
margin-bottom: 20px;
2019
}
2120

2221
.btn-right {
2322
float: right;
2423
position: relative;
2524
bottom: 3em;
2625
right: 3em;
26+
margin-bottom: 20px;
2727
}
2828

2929
.responsive-table {

app/views/.DS_Store

6 KB
Binary file not shown.

app/views/listado.html

Lines changed: 0 additions & 26 deletions
This file was deleted.
File renamed without changes.

0 commit comments

Comments
 (0)