Commit 7f1fedba3f239f83b70c7e313f81dbebd49ca5dc

Authored by Pablo Marco del Pont
1 parent 07dfd8e83d
Exists in master

- Agregué botón para salir al menú principal.

- Cambié estilo de botones Guardar y Salir.
src/js/controller.js
1 1 angular.module('focaCrearNotaPedido')
2 2 .controller('notaPedidoCtrl',
3   - ['$scope', '$uibModal', 'crearNotaPedidoService', 'focaModalService',
4   - function($scope, $uibModal, crearNotaPedidoService, focaModalService) {
  3 + ['$scope', '$uibModal', '$location', 'crearNotaPedidoService', 'focaModalService',
  4 + function($scope, $uibModal, $location, crearNotaPedidoService, focaModalService) {
5 5 $scope.botonera = [
6 6 {texto: 'Vendedor', accion: function() {$scope.seleccionarVendedor();}},
7 7 {texto: 'Cliente', accion: function() {$scope.seleccionarCliente();}},
... ... @@ -361,6 +361,9 @@ angular.module('focaCrearNotaPedido')
361 361 $scope.selectFocus = function($event) {
362 362 $event.target.select();
363 363 };
  364 + $scope.salir = function() {
  365 + $location.path('/');
  366 + }
364 367 }
365 368 ]
366 369 )
src/views/nota-pedido.html
... ... @@ -185,9 +185,18 @@
185 185 ng-click="crearNotaPedido()"
186 186 type="submit"
187 187 title="Crear nota pedido"
188   - class="btn btn-primary float-right">
  188 + class="btn btn-default">
189 189 Guardar
190 190 </button>
  191 + <br/>
  192 + <br/>
  193 + <button
  194 + ng-click="salir()"
  195 + type="button"
  196 + title="Salir"
  197 + class="btn btn-default">
  198 + Salir
  199 + </button>
191 200 </div>
192 201 </div>
193 202 </div>