diff --git a/jm2l/static/index.html b/jm2l/static/index.html index 009c0e8..0859e21 100644 --- a/jm2l/static/index.html +++ b/jm2l/static/index.html @@ -79,9 +79,7 @@ - - - + diff --git a/jm2l/templates/Participant/list_users.mako b/jm2l/templates/Participant/list_users.mako index 2922cdf..4e1457a 100644 --- a/jm2l/templates/Participant/list_users.mako +++ b/jm2l/templates/Participant/list_users.mako @@ -8,10 +8,11 @@ now = datetime.datetime.now() %>
- +
+ @@ -23,118 +24,136 @@ now = datetime.datetime.now() - % for u, s in Users: - % if u.is_IntervenantOnYear(for_year): - - % else: + % for u, s in Users: + % if u.is_IntervenantOnYear(for_year): + + % elif s or u.Staff: + + % else: - % endif + % endif + - % if s and s.repas: - % for i, d in enumerate(['Ven Soir', 'Sam midi', 'Sam soir']): - - % endfor + % if s and s.repas: + % for i, d in enumerate(['Ven Soir', 'Sam midi', 'Sam soir']): + + % endfor %else: - + % endif - % endfor
en ${for_year} Visite Activité Arrivée prévue
- ${u.slug} - ${u.nom} ${u.prenom}
+ ${u.slug} + ${u.nom} ${u.prenom}
- ${u.vote_logo} + ${u.vote_logo} - % if u.Staff==1: - - - - % endif - % if u.is_IntervenantOnYear(for_year): - - - - % endif - % if u.active==0: + % if u.Staff==1: + + + + % endif + % if u.is_IntervenantOnYear(for_year): + + + + % endif + % if u.active==0: - % endif - % if u.phone: + % endif + % if u.phone: - % endif - + % endif +
- ${(now - u.last_logged).days}${(now - u.last_logged).days} j + % if u.is_IntervenantOnYear(for_year): + 1Intervenant + % elif s and s.orga_part: + % if u.Staff: + 2Staff + % else: + 3Bénévole + % endif + % elif u.Staff: + 2Staff + % elif s: + 4Visiteur + % else: + Pas d'informations + % endif + + ${(now - u.last_logged).days}${(now - u.last_logged).days} j % if u.events: - ${len(u.events)} - + ${len(u.events)} + %else: - - - + 0 + - % endif % if s and s.arrival_time: - ${s.arrival_time.strftime('%m/%d/%Y %H:%M:%S')} - ${s.arrival_time.strftime('%a %d %H:%M') | n}
- ${s.arrival_place} - % if s.arrival_text: - - NB: ${s.arrival_text} - % endif + ${s.arrival_time.strftime('%m/%d/%Y %H:%M:%S')} + ${s.arrival_time.strftime('%a %d %H:%M') | n}
+ ${s.arrival_place} + % if s.arrival_text: + - NB: ${s.arrival_text} + % endif %else: - - Pas d'informations + Pas d'informations % endif
- % if (s.repas & 2**i): - OuiOui - % else: - NonNon - % endif - + % if (s.repas & 2**i): + OuiOui + % else: + NonNon + % endif + - Pas d'informations - + Pas d'informations + % if s and s.depart_time: - ${s.depart_time.strftime('%m/%d/%Y %H:%M:%S')} - ${s.depart_time.strftime('%a %d %H:%M') | n}
- ${s.depart_place} - % if s.depart_text: - - NB: ${s.arrival_text} - % endif + ${s.depart_time.strftime('%m/%d/%Y %H:%M:%S')} + ${s.depart_time.strftime('%a %d %H:%M') | n}
+ ${s.depart_place} + % if s.depart_text: + - NB: ${s.arrival_text} + % endif %else: - - Pas d'informations + + Pas d'informations % endif
- % if s: - % if s.repas_allerg: - Allergies : ${s.repas_allerg}
- % endif - % if s.repas_contr: - Contraintes : ${s.repas_contr}
- % endif + % if s: + % if s.repas_allerg: + Allergies : ${s.repas_allerg}
+ % endif + % if s.repas_contr: + Contraintes : ${s.repas_contr}
+ % endif % endif +