Le repo des sources pour le site web des JM2L
Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

list_orga.mako 1.5 KiB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. # -*- coding: utf-8 -*-
  2. <%inherit file="jm2l:templates/Participant/list.mako"/>
  3. <%
  4. import unicodedata
  5. %>
  6. <%def name="cssAddOn()">
  7. ${parent.cssAddOn()}
  8. <style>
  9. input[type=text]{width:10em;}
  10. </style>
  11. </%def>
  12. <form class="filterform" action="#">
  13. <div style="overflow:auto">
  14. <table class="table table-bordered table-hover">
  15. <thead>
  16. <tr>
  17. <th style="width:10em;text-align:center;"></th>
  18. % for u, s in Users:
  19. % if s and s.orga_part and s.orga_part > 0:
  20. <th style="text-align:center;"><a href="/MesJM2L?user=${u.uid}">${u.nom} ${u.prenom} ${s.orga_part}</a></th>
  21. % endif
  22. % endfor
  23. </tr>
  24. </thead>
  25. <tbody id="list">
  26. % for i, title in enumerate(myorga.Orga_tasks):
  27. <tr>
  28. <td style="text-align:center;"><span class="data">${unicodedata.normalize('NFKD', title).encode('ASCII', 'ignore').lower()}</span>${title}</td>
  29. % for u, s in Users:
  30. % if s and s.orga_part and s.orga_part > 0:
  31. <td style="text-align:center;">
  32. % if s and s.orga_part:
  33. % if (s.orga_part & 2**i):
  34. Oui
  35. % endif
  36. % endif
  37. </td>
  38. % endif
  39. % endfor
  40. </tr>
  41. % endfor
  42. </tbody>
  43. </table>
  44. </div>
  45. </form>