X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=templates%2Fxnetgrp%2Fannuaire.tpl;h=6170e151f7c816096cbe215ab573e0ce3e570bf9;hb=5660032ac785d410f90e3f5b0d6948dc90b0cfea;hp=94e8a22c72391c737b084cd56acf1e4aed1cdec7;hpb=8230e9f8eff954fb1103c8bdcf0d22557d419ae7;p=platal.git diff --git a/templates/xnetgrp/annuaire.tpl b/templates/xnetgrp/annuaire.tpl index 94e8a22..6170e15 100644 --- a/templates/xnetgrp/annuaire.tpl +++ b/templates/xnetgrp/annuaire.tpl @@ -20,10 +20,10 @@ {* *} {**************************************************************************} -

{$asso.nom} : Annuaire du groupe

+

{$asso->nom} : Annuaire du groupe

-Le groupe {$asso.nom} compte {$nb_tot} membres : +Le groupe {$asso->nom} compte {$nb_tot} membres :

@@ -63,35 +63,38 @@ Le groupe {$asso.nom} compte {$nb_tot} membres : {else}

-[tous les membres] -[animateurs]
+[tous les membres] +[animateurs]
+{* + XXX: This code has been temporary dropped, waiting for a cleaner way to do that stuff {foreach from=$alphabet item=c} {if $c} -[{$c}] +[{$c}] {/if} {/foreach} +*}

@@ -99,49 +102,51 @@ Le groupe {$asso.nom} compte {$nb_tot} membres : {/if} - {iterate from=$ann item=m} + {foreach from=$users item=user} - - {if $m.comm} - + {profile user=$user promo=false} + + {if $user->group_comm} + {/if} - {if $is_admin} {/if} - {/iterate} + {/foreach}
- - {if $sort eq 'alpha'} + + {if $order eq 'directory_name'} - {elseif $sort eq 'alpha_inv'} + {elseif $order eq '-directory_name'} {/if} - Prénom NOM + Prénom NOM - - {if $sort eq 'promo_inv'} + + {if $order eq '-promo'} - {elseif $sort eq 'promo'} + {elseif $order eq 'promo'} {/if} - Promo + Promo InfosActions
- {if $m.admin}{/if} - {if $m.inscrit} - - {elseif $m.x} - - {/if} - {if $m.femme}•{/if}{if $m.prenom || $m.nom}{$m.prenom} {$m.nom|strtoupper}{else}{$m.email}{/if} - {if $m.x}{/if} - {if $m.admin}{/if} - {if $m.inscrit && !$m.actif} - {icon name=error title="Recherche d'email"} - {assign var=broken value=true} - {/if}{if $m.admin}{/if}{$m.promo}{if $m.admin}{/if}{$m.comm} + {if $user->group_perms eq 'admin'}{/if} + {$user->promo()} + {if $user->group_perms eq 'admin'}{/if} + {$user->group_comm} - {if $m.inscrit} - {icon name=vcard title="[vcard]"} - {icon name=email title="email"} - {else} - {icon name=email title="email"} + group_comm} colspan="2"{/if}> + {if $user->hasProfile()} + {icon name=vcard title="[vcard]"} {/if} + {icon name=email title="email"} - {icon name=user_edit title="Edition du profil"} - {icon name=delete title="Supprimer de l'annuaire"} + {icon name=user_edit title="Édition du profil"} + {icon name=delete title="Supprimer de l'annuaire"}
+{if $pages gt 1}

-{foreach from=$links item=ofs key=txt} -{$txt} -{/foreach} +{section name="links" loop=$pages} +{if $smarty.section.links.index eq $current} +{$smarty.section.links.iteration} +{else} +{if $smarty.section.links.first} +précédente +{/if} +{$smarty.section.links.iteration} +{if $smarty.section.links.last} +suivante +{/if} +{/if} +{/section}

+{/if} {if $broken}