| 1234567891011121314151617181920212223242526272829303132333435363738 |
- <div ng-if="error">
- <h1 style="text-align:center">Link inválido</h1>
- </div>
- <div ng-if="!error">
- <div class="row">
- <div class="col-md-3 col-md-offset-3">
- <label>
- <h3>Pedido {{userdata.nombre}} {{userdata.apellido}}</h3>
- </label>
- </div>
- <div class="col-md-3">
- <a ng-href="/create/{{userdata.hash}}">
- <button class="btn">Crear</button>
- </a>
- </div>
- </div>
- <div class="col-md-6 col-md-offset-3 col-sm-12 col-xs-12">
- <table class="table table-striped">
- <tr>
- <th>Fecha</th>
- <th># Productos</th>
- <th>subtotal</th>
- <th>Estado</th>
- </tr>
- <tr ng-repeat="p in pedidos">
- <td>{{p.fecha | date: 'dd/MM/yyyy HH:mm'}}</td>
- <td>{{p.cant_productos}}</td>
- <td>${{p.subtotal}}</td>
- <td>
- <a ng-if="p.estado==='CREADO'" href="#" ng-href="edit/{{userdata.hash}}/{{p.id}}">Editar/Confirmar</a>
- <p ng-if="p.estado!=='CREADO'">{{p.estado}}</p>
- </td>
- </tr>
- </table>
- </div>
- </div>
|