createOrEditPedido.html 1.5 KB

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