main.html 957 B

1234567891011121314151617181920212223242526272829303132333435363738
  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-3 col-md-offset-3">
  7. <label>
  8. <h3>Pedido {{userdata.nombre}} {{userdata.apellido}}</h3>
  9. </label>
  10. </div>
  11. <div class="col-md-3">
  12. <a ng-href="/create/{{userdata.hash}}">
  13. <button class="btn">Crear</button>
  14. </a>
  15. </div>
  16. </div>
  17. <div class="col-md-6 col-md-offset-3 col-sm-12 col-xs-12">
  18. <table class="table table-striped">
  19. <tr>
  20. <th>Fecha</th>
  21. <th># Productos</th>
  22. <th>subtotal</th>
  23. <th>Estado</th>
  24. </tr>
  25. <tr ng-repeat="p in pedidos">
  26. <td>{{p.fecha | date: 'dd/MM/yyyy HH:mm'}}</td>
  27. <td>{{p.cant_productos}}</td>
  28. <td>${{p.subtotal}}</td>
  29. <td>
  30. <a ng-if="p.estado==='CREADO'" href="#" ng-href="edit/{{userdata.hash}}/{{p.id}}">Editar/Confirmar</a>
  31. <p ng-if="p.estado!=='CREADO'">{{p.estado}}</p>
  32. </td>
  33. </tr>
  34. </table>
  35. </div>
  36. </div>