From e806e85fcdcd02859d87fc56c506330ed8945398 Mon Sep 17 00:00:00 2001 From: efernandez Date: Tue, 5 Feb 2019 11:36:01 -0300 Subject: [PATCH] quito modal proveedor --- gulpfile.js | 1 - src/js/app.js | 7 +------ src/js/controller.js | 31 ++++++++++++++++++------------- 3 files changed, 19 insertions(+), 20 deletions(-) diff --git a/gulpfile.js b/gulpfile.js index f12fbb1..1516dfc 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -40,7 +40,6 @@ gulp.task('uglify', ['templates'], function() { 'tmp/views.js' ]), concat('foca-estado-cisternas.js'), - replace("['ngRoute', 'focaModal', 'ui.bootstrap', 'focaBotoneraLateral']", '[]'), replace("src/views/", ''), gulp.dest(paths.tmp), rename('foca-estado-cisternas.min.js'), diff --git a/src/js/app.js b/src/js/app.js index fafec86..1093ca5 100644 --- a/src/js/app.js +++ b/src/js/app.js @@ -1,6 +1 @@ -angular.module('focaEstadoCisternas', [ - 'ngRoute', - 'focaModal', - 'ui.bootstrap', - 'focaBotoneraLateral' -]); +angular.module('focaEstadoCisternas', []); diff --git a/src/js/controller.js b/src/js/controller.js index 6d79808..6c1ad39 100644 --- a/src/js/controller.js +++ b/src/js/controller.js @@ -24,20 +24,25 @@ angular.module('focaEstadoCisternas') }); $scope.seleccionarTransportista = function() { - var modalInstance = $uibModal.open( - { - ariaLabelledBy: 'Busqueda de Transportista', - templateUrl: 'modal-proveedor.html', - controller: 'focaModalProveedorCtrl', - size: 'lg', - resolve: { - transportista: function() { - return true; - } + var parametrosModal = { + titulo: 'Búsqueda de Transportista', + query: '/transportista', + columnas: [ + { + nombre: 'Código', + propiedad: 'COD' + }, + { + nombre: 'Nombre', + propiedad: 'NOM' + }, + { + nombre: 'CUIT', + propiedad: 'CUIT' } - } - ); - return modalInstance.result; + ] + }; + return focaModalService.modal(parametrosModal); }; $scope.seleccionarVehiculo = function() { -- 1.9.1