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.

59 lines
1.6 KiB

  1. ::use 'contractadmin/design.mtt'::
  2. <h2>::_("Participate to deliveries")::</h2>
  3. <div>
  4. ::_("This page allows to see if members have participated to deliveries enough.")::
  5. </div>
  6. <div style="margin:16px 0 16px 0;text-align:center;" class="alert-warning">
  7. <strong>::raw __("::distribs:: deliveries requiring ::distributorNum:: person(s)",{distribs:distribs,distributorNum:distributorNum})::,<br/>
  8. ::users:: ::_("person(s) using this contract"):: <br/>
  9. = ::num:: ::_("participations to deliveries to do per family.")::</strong>
  10. </div>
  11. <table class="table table-bordered">
  12. <tr>
  13. <th class="col-md-5">::_("Suscriber")::</th>
  14. <th class="col-md-5">::raw _("Number of attendances to deliveries")::</th>
  15. <th class="col-md-2"></th>
  16. </tr>
  17. ::foreach p participations::
  18. <tr>
  19. <td>
  20. ::p.user.getCoupleName()::
  21. </td>
  22. <td>
  23. ::p.count::
  24. </td>
  25. <td>
  26. ::if p.count>=numRounded::
  27. <img src="/img/icons/accept.png" /> OK
  28. ::else::
  29. <img src="/img/icons/stop.png" /> ::_("Insufficient")::
  30. ::end::
  31. </td>
  32. </tr>
  33. ::end::
  34. </table>
  35. ::if(extParticipations.length>0)::
  36. <hr/>
  37. <table class="table table-bordered">
  38. <tr>
  39. <th class="col-md-5">::_("Member without order in this contract")::</th>
  40. <th class="col-md-5">::raw _("Number of attendances to deliveries")::</th>
  41. <th class="col-md-2"></th>
  42. </tr>
  43. ::foreach p extParticipations::
  44. <tr>
  45. <td>::p.user.getCoupleName()::</td>
  46. <td>::p.count::</td>
  47. <td></td>
  48. </tr>
  49. ::end::
  50. </table>
  51. ::end::
  52. ::end::