You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

56 lines
1.2 KiB

  1. ::use 'design.mtt'::
  2. ::set c = contract::
  3. <div class="col-md-3">
  4. <div class="block">
  5. <ul>
  6. <li><a href="/contractAdmin/products/::c.id::">::_("Products")::</a></li>
  7. <li><a href="/contractAdmin/distributions/::c.id::">::_("Deliveries")::</a></li>
  8. <li><a href="/contractAdmin/orders/::c.id::">::_("Orders")::</a></li>
  9. </ul>
  10. </div>
  11. </div>
  12. <div class="col-md-9">
  13. <div class="article">
  14. <span class="title" style="margin-bottom: 18px;display: block;">::c.name:: - ::c._vendor.name::</span>
  15. <div class="container">
  16. <div class="span4">
  17. <b>Produits</b>
  18. <table class="table">
  19. ::foreach p c.getProducts()::
  20. <tr>
  21. <td>::p.name::</td>
  22. <td>$$edit(modifier,/product/edit/::p.id::)</td>
  23. </tr>
  24. ::end::
  25. </table>
  26. $$insert(Nouveau produit,/product/insert)
  27. </div>
  28. <div class="span4">
  29. <b>::_("Deliveries")::</b>
  30. <table class="table">
  31. ::foreach d c.getDistribs()::
  32. <tr>
  33. <td>::d.date.toString()::</td>
  34. <td>$$edit(modifier,/distribution/edit/::d.id::) </td>
  35. </tr>
  36. ::end::
  37. </table>
  38. $$insert(Nouvelle livraison,/distribution/insert)
  39. </div>
  40. </div>
  41. <hr/>
  42. </div>
  43. </div>
  44. ::end::