Skip to content

Commit

Permalink
last tie
Browse files Browse the repository at this point in the history
Finalsdfsdfsd
  • Loading branch information
Sxubas authored Nov 30, 2017
2 parents 6a81af2 + 006fcf4 commit 14794ed
Show file tree
Hide file tree
Showing 8 changed files with 16 additions and 9 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<div class="center-block well text-center">
<h1>Are you sure??</h1>
<button id="confirm-delete" ng-click="deleteProd()" class="btn btn-danger">Delete</button>
<a id="cancel-delete" ui-sref="productosList" class="btn btn-info">Cancel</a>
<a id="cancel-delete" ng-click="perfil()" class="btn btn-info">Cancel</a>
</div>
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
var idProducto = $state.params.productoId;
$scope.deleteProd= function () {
$http.delete(productosContext + '/' + idProducto, {}).then(function (response) {
$state.go('productosList', {productoId: response.data.id}, {reload: true});
$state.go(perfil(), {reload: true});
});
};
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ var mod = ng.module("productoModule", []);

}).state('productosCreate', {
url: '/create',
parent: 'productos',
views: {
'detailView': {
templateUrl: basePath + '/new/productos.new.html',
Expand All @@ -90,7 +91,7 @@ var mod = ng.module("productoModule", []);
}
}).state('productoUpdate', {
url: '/update/{productoId:int}',
parent: 'productos',
parent: 'restauranteAdministradorDetail',
param: {
productoId: null
},
Expand All @@ -102,12 +103,12 @@ var mod = ng.module("productoModule", []);
}
}).state('productoDelete', {
url: '/delete/{productoId:int}',
parent: 'productos',
parent: 'restauranteAdministradorDetail',
param: {
productoId: null
},
views: {
'detailView': {
'infoRes': {
templateUrl: basePath + '/delete/producto.delete.html',
controller: 'productosDeleteCtrl'
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@
templateUrl: 'src/modules/producto/'+ 'productos.detail.html'
}
}
}).state('restauranteAdministradorProductoUpdate', {
}).state('restauranteProductoUpdate', {
url: '/producto/{productoId:int}/update',
parent: 'restauranteAdministradorDetail',
data: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
<img class="img-responsive imagenCliente" ng-src='media/FielLogo.PNG' alt="res1"/>

<div class="caption text-center">
<td id="{{$index}}-puntos"> <img class="img-responsive imagenCliente" ng-src="{{res.imagen}}" alt="res1"/>
<p><i><H2></i><b>{{res.nombre}}</b></H2></p>
<p><i>Tipo de Comida: </i>{{res.tipoComida}}</p>
<p><i>NIT :</i>{{res.nit}}</p>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<td id="{{$index}}-name"><a ui-sref="restauranteAdministradorProductoDetail({productoId: producto.id})">{{producto.nombre}}</a></td>
<td id="{{$index}}-dinero">{{producto.valorDinero}}</td>
<td id="{{$index}}-puntos">{{producto.valorPuntos}}</td>
<td><a class="btn btn-default btn-sm" ui-sref="restauranteAdministradorProductoUpdate({productoId: producto.id})" ><p class="glyphicon glyphicon-pencil"></p></a>
<td><a class="btn btn-default btn-sm" ui-sref="restauranteProductoUpdate({productoId: producto.id})" ><p class="glyphicon glyphicon-pencil"></p></a>
<a class="btn btn-danger btn-sm" ui-sref="productoDelete({productoId: producto.id})"><p class="glyphicon glyphicon-trash"></p></a>
</td>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,20 @@
<th>Nombre</th>
<th>Descripción</th>
<th>Apertura</th>
<th>Cierre</th>
<th>Cierre</th>
<th>Imagen</th>
</tr>
</thead>
<tbody>
<tr ng-repeat="sucursal in actual.sucursales">

<td id="{{$index}}-nombre">{{sucursal.nombre}}</td>
<td id="{{$index}}-descripcion">{{sucursal.descripcion}}</td>
<td id="{{$index}}-puntos">{{sucursal.horaApertura}}</td>
<td id="{{$index}}-puntos">{{sucursal.horaCierre}}</td>
<td id="{{$index}}-puntos"> <img class="img-responsive imagenCliente" ng-src="{{sucursal.imagen}}" alt="res1"/></td>


<td>
<a class="btn btn-default btn-sm" ui-sref="sucursalUpdate({sucursalId: sucursal.id})" ><p class="glyphicon glyphicon-pencil"></p></a>
<a class="btn btn-danger btn-sm" ui-sref="sucursalDelete({sucursalId: sucursal.id})"><p class="glyphicon glyphicon-trash"></p></a>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
<div class="form-group row">
<div class="form-group col-sm-12">
<input ng-show="sucursal.$valid" type="submit" value="Save" class="btn btn-success">
<a class="btn btn-info" ui-sref="sucursalList">Cancel</a>
<a class="btn btn-info" ng-click="perfil()">Cancel</a>
</div>
</div>
</form>
Expand Down

0 comments on commit 14794ed

Please sign in to comment.