main.html 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. <div ng-if="error">
  2. <h1 style="text-align:center">Link inv&aacute;lido</h1>
  3. </div>
  4. <div ng-if="!error">
  5. <div class="row">
  6. <div class="col-md-12">
  7. <label>
  8. <h3>Pedido {{userdata.nombre}} {{userdata.apellido}}</h3>
  9. </label>
  10. </div>
  11. </div>
  12. <div class="row">
  13. <div class="col-md-6">
  14. <label class="col-md-12">
  15. Filtro:
  16. <input type="text" class="form-control form-control-small" ng-model="filtro" style="display:block">
  17. </label>
  18. </div>
  19. </div>
  20. <div class="col-md-6 col-sm-12 col-xs-12">
  21. <table class="table table-striped">
  22. <tr>
  23. <th>Cantidad</th>
  24. <th>ID</th>
  25. <th>Nombre</th>
  26. <th>Precio</th>
  27. <th>Total</th>
  28. </tr>
  29. <tr ng-repeat="p in listaproductos | filter: filtro | filter:filterCero(criteria) track by p.id">
  30. <td>
  31. <input ng-change="updateTotal()" type="number" onclick="this.select();" class="form-control" ng-model="p.cantidad" value="0" min="0" max="100"
  32. ng-disabled="!cero"
  33. style='width:70px;text-align:center;'>
  34. </td>
  35. <td>{{p.id}}</td>
  36. <td>{{p.nombre}}</td>
  37. <td>${{p.precio}}</td>
  38. <td>${{p.cantidad*p.precio}}</td>
  39. </tr>
  40. </table>
  41. </div>
  42. <div class="col-md-6 col-sm-12 col-xs-12">
  43. <div class="row">
  44. <div class="col-md-12">
  45. <b>Total sin descuento:</b>
  46. ${{total}}
  47. </div>
  48. </div>
  49. <div class="row">
  50. <div class="col-md-12">
  51. <button ng-show="cero==true" class="css-button" ng-click="confirmar()">Confirmar</button>
  52. <button ng-show="cero==false" class="css-button" ng-click="modificar()">Modificar</button>
  53. <!--
  54. <button class="css-button" ng-click="">Ver pedido</button>
  55. -->
  56. <button ng-show="cero==false" class="css-button" ng-click="ok()">Enviar Pedido</button>
  57. </div>
  58. </div>
  59. </div>
  60. </div>