|
|
@@ -1,55 +1,58 @@
|
|
|
-<div class="row">
|
|
|
- <div class="col-md-12">
|
|
|
- <label>
|
|
|
- <h3>Pedido {{userdata.nombre}} {{userdata.apellido}}</h3>
|
|
|
- </label>
|
|
|
- </div>
|
|
|
-</div>
|
|
|
-<div class="row">
|
|
|
- <div class="col-md-6">
|
|
|
- <label class="col-md-12">
|
|
|
- Filtro:
|
|
|
- <input type="text" class="form-control form-control-small" ng-model="filtro" style="display:block">
|
|
|
- </label>
|
|
|
- </div>
|
|
|
+<div ng-if="error">
|
|
|
+ <h1 style="text-align:center">Link inválido</h1>
|
|
|
</div>
|
|
|
|
|
|
-<div class="col-md-6 col-sm-12 col-xs-12">
|
|
|
- <table class="table table-striped">
|
|
|
- <tr>
|
|
|
- <th>Cantidad</th>
|
|
|
- <th>ID</th>
|
|
|
- <th>Nombre</th>
|
|
|
- <th>Precio</th>
|
|
|
- <th>Total</th>
|
|
|
- </tr>
|
|
|
- <tr ng-repeat="p in listaproductos | filter: filtro | filter:filterCero(criteria) track by p.id">
|
|
|
- <td><input ng-change="updateTotal()" type=number class="form-control" ng-model="p.cantidad" value="0" min="0" max="100" style='width:70px;text-align:center;'></td>
|
|
|
- <td>{{p.id}}</td>
|
|
|
- <td>{{p.nombre}}</td>
|
|
|
- <td>${{p.precio}}</td>
|
|
|
- <td>${{p.cantidad*p.precio}}</td>
|
|
|
- </tr>
|
|
|
- </table>
|
|
|
-</div>
|
|
|
-<div class="col-md-6 col-sm-12 col-xs-12">
|
|
|
+<div ng-if="!error">
|
|
|
<div class="row">
|
|
|
<div class="col-md-12">
|
|
|
- <label>
|
|
|
- <input type="checkbox" ng-model="cero">
|
|
|
- Ver productos en 0
|
|
|
- </label>
|
|
|
+ <label>
|
|
|
+ <h3>Pedido {{userdata.nombre}} {{userdata.apellido}}</h3>
|
|
|
+ </label>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="row">
|
|
|
- <div class="col-md-12">
|
|
|
- <b>Total:</b>
|
|
|
- ${{total}}
|
|
|
+ <div class="col-md-6">
|
|
|
+ <label class="col-md-12">
|
|
|
+ Filtro:
|
|
|
+ <input type="text" class="form-control form-control-small" ng-model="filtro" style="display:block">
|
|
|
+ </label>
|
|
|
</div>
|
|
|
</div>
|
|
|
- <div class="row">
|
|
|
- <div class="col-md-12">
|
|
|
- <button class="css-button" ng-click="ok()">Enviar</button>
|
|
|
+
|
|
|
+ <div class="col-md-6 col-sm-12 col-xs-12">
|
|
|
+ <table class="table table-striped">
|
|
|
+ <tr>
|
|
|
+ <th>Cantidad</th>
|
|
|
+ <th>ID</th>
|
|
|
+ <th>Nombre</th>
|
|
|
+ <th>Precio</th>
|
|
|
+ <th>Total</th>
|
|
|
+ </tr>
|
|
|
+ <tr ng-repeat="p in listaproductos | filter: filtro | filter:filterCero(criteria) track by p.id">
|
|
|
+ <td><input ng-change="updateTotal()" type=number class="form-control" ng-model="p.cantidad" value="0" min="0" max="100" style='width:70px;text-align:center;'></td>
|
|
|
+ <td>{{p.id}}</td>
|
|
|
+ <td>{{p.nombre}}</td>
|
|
|
+ <td>${{p.precio}}</td>
|
|
|
+ <td>${{p.cantidad*p.precio}}</td>
|
|
|
+ </tr>
|
|
|
+ </table>
|
|
|
+ </div>
|
|
|
+ <div class="col-md-6 col-sm-12 col-xs-12">
|
|
|
+ <div class="row">
|
|
|
+ <div class="col-md-12">
|
|
|
+ <b>Total sin descuento:</b>
|
|
|
+ ${{total}}
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="row">
|
|
|
+ <div class="col-md-12">
|
|
|
+ <button ng-show="cero==1" class="css-button" ng-click="cero=0">Confirmar</button>
|
|
|
+ <button ng-show="cero==0" class="css-button" ng-click="cero=1">Modificar</button>
|
|
|
+ <!--
|
|
|
+ <button class="css-button" ng-click="">Ver pedido</button>
|
|
|
+ -->
|
|
|
+ <button ng-show="cero==0" class="css-button" ng-click="ok()">Enviar Pedido</button>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|