Fixes non-x members of groups. Closes #1087
[platal.git] / templates / xnetgrp / annuaire.tpl
CommitLineData
0337d704 1{**************************************************************************}
2{* *}
9f5bd98e 3{* Copyright (C) 2003-2010 Polytechnique.org *}
0337d704 4{* http://opensource.polytechnique.org/ *}
5{* *}
6{* This program is free software; you can redistribute it and/or modify *}
7{* it under the terms of the GNU General Public License as published by *}
8{* the Free Software Foundation; either version 2 of the License, or *}
9{* (at your option) any later version. *}
10{* *}
11{* This program is distributed in the hope that it will be useful, *}
12{* but WITHOUT ANY WARRANTY; without even the implied warranty of *}
13{* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *}
14{* GNU General Public License for more details. *}
15{* *}
16{* You should have received a copy of the GNU General Public License *}
17{* along with this program; if not, write to the Free Software *}
18{* Foundation, Inc., *}
19{* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA *}
20{* *}
21{**************************************************************************}
22
34ade5a6 23<h1>{$asso->nom}&nbsp;: Annuaire du groupe </h1>
0337d704 24
25<p class="descr">
34ade5a6 26Le groupe {$asso->nom} compte {$nb_tot} membres&nbsp;:
0337d704 27</p>
28
0337d704 29<ul class="descr">
d24c8a11 30 {if $is_admin}
5e193297 31 <li>
32 <a href="{$platal->ns}member/new">
33 {icon name=add title="Ajouter un membre"}
34 Ajouter un membre
35 </a>
36 </li>
e1406965 37 {if $asso->has_ml}
5e193297 38 <li>
39 <a href="{$platal->ns}admin/annuaire">
40 {icon name=wand title="Synchroniser"}
77af6562 41 Synchroniser annuaire et listes de diffusion
5e193297 42 </a>
43 </li>
44 {/if}
41c0150b 45 {/if}
dc2073c3 46 <li>
34ade5a6 47 <a href="{$platal->ns}annuaire/csv/{$asso->diminutif}.csv">
102f4e64
FB
48 {icon name=page_excel title="Fichier Excel"}
49 Obtenir au format Excel
50 </a>
51 </li>
52 <li>
34ade5a6 53 <a href="{$platal->ns}annuaire/vcard/photos/{$asso->diminutif}.vcf">
dc2073c3 54 {icon name=vcard title="Carte de visite"}
a7de4ef7 55 Ajouter les membres à ton carnet d'adresse
dc2073c3 56 </a>
34ade5a6 57 (<a href="{$platal->ns}annuaire/vcard/{$asso->diminutif}.vcf">sans les photos</a>)
dc2073c3 58 </li>
0337d704 59</ul>
0337d704 60
a91fb584 61{if $plset_base}
a9cd2bab 62{include core=plset.tpl}
a91fb584 63{else}
64
0337d704 65<p class="center">
f6d7a2df
FB
66[<a href="{$platal->ns}annuaire?order={$order}" {if !$only_admin}class="erreur"{/if}>tous les membres</a>]
67[<a href="{$platal->ns}annuaire?order={$order}&amp;admin=1" {if $only_admin}class="erreur"{/if}>animateurs</a>]<br/>
68{*
69 XXX: This code has been temporary dropped, waiting for a cleaner way to do that stuff
0337d704 70{foreach from=$alphabet item=c}
d8d9fb55 71{if $c}
f6d7a2df 72[<a href="{$platal->ns}annuaire?order={$order}&amp;admin={$only_admin}"{if $request_group eq $c} class="erreur"{/if}>{$c}</a>]
d8d9fb55 73{/if}
0337d704 74{/foreach}
f6d7a2df 75*}
0337d704 76</p>
77
54b24ba2 78<table summary="membres du groupe" class="bicol">
0337d704 79 <tr>
e02ecfce 80 <th>
f6d7a2df
FB
81 <a href="{$platal->ns}annuaire?order={if $order eq 'directory_name'}-{/if}directory_name&amp;admin={$only_admin}">
82 {if $order eq 'directory_name'}
c73a312d 83 <img src="{$platal->baseurl}images/dn.png" alt="" title="Tri croissant" />
f6d7a2df 84 {elseif $order eq '-directory_name'}
a7de4ef7 85 <img src="{$platal->baseurl}images/up.png" alt="" title="Tri décroissant" />
e02ecfce 86 {/if}
f6d7a2df 87 Prénom NOM
e02ecfce 88 </a>
89 </th>
90 <th>
f6d7a2df
FB
91 <a href="{$platal->ns}annuaire?order={if $order eq 'promo'}-{/if}promo&amp;admin={$only_admin}">
92 {if $order eq '-promo'}
c73a312d 93 <img src="{$platal->baseurl}images/dn.png" alt="" title="Tri croissant" />
f6d7a2df 94 {elseif $order eq 'promo'}
a7de4ef7 95 <img src="{$platal->baseurl}images/up.png" alt="" title="Tri décroissant" />
e02ecfce 96 {/if}
f6d7a2df 97 Promo
e02ecfce 98 </a>
99 </th>
54b24ba2 100 <th colspan="2">Infos</th>
d24c8a11 101 {if $is_admin}
a72a67b9 102 <th>Actions</th>
0337d704 103 {/if}
104 </tr>
f6d7a2df 105 {foreach from=$users item=user}
4664b701 106 <tr>
fbacde57 107 <td>
f6d7a2df 108 {profile user=$user promo=false}
9c817bfd 109 </td>
f6d7a2df
FB
110 <td>
111 {if $user->group_perms eq 'admin'}<strong>{/if}
112 {$user->promo()}
113 {if $user->group_perms eq 'admin'}</strong>{/if}
114 </td>
115 {if $user->group_comm}
116 <td>{$user->group_comm}</td>
54b24ba2 117 {/if}
e46cf8c4 118 <td class="right"{if !$user->group_comm} colspan="2"{/if}>
34ade5a6
FB
119 {if $user->hasProfile()}
120 <a href="https://www.polytechnique.org/vcard/{$user->login()}.vcf">{icon name=vcard title="[vcard]"}</a>
121 {/if}
122 <a href="mailto:{$user->bestEmail()}">{icon name=email title="email"}</a>
0337d704 123 </td>
d24c8a11 124 {if $is_admin}
4664b701 125 <td class="center">
3f95a7bd 126 <a href="{$platal->ns}member/{$user->login()}">{icon name=user_edit title="Édition du profil"}</a>
f6d7a2df 127 <a href="{$platal->ns}member/del/{$user->login()}">{icon name=delete title="Supprimer de l'annuaire"}</a>
a72a67b9 128 </td>
0337d704 129 {/if}
130 </tr>
f6d7a2df 131 {/foreach}
0337d704 132</table>
133
a087cc8d 134{if $pages gt 1}
4664b701 135<p class="descr" style="text-align: center">
a087cc8d 136{section name="links" loop=$pages}
ce814052
FB
137{if $smarty.section.links.index eq $current}
138<span class="erreur">{$smarty.section.links.iteration}</span>
139{else}
140{if $smarty.section.links.first}
141<a href="{$platal->ns}annuaire?offset={$current-1}&amp;order={$order}&amp;admin={$only_admin}">précédente</a>
142{/if}
143<a href="{$platal->ns}annuaire?offset={$smarty.section.links.index}&amp;order={$order}&amp;admin={$only_admin}">{$smarty.section.links.iteration}</a>
144{if $smarty.section.links.last}
145<a href="{$platal->ns}annuaire?offset={$current+1}&amp;order={$order}&amp;admin={$only_admin}">suivante</a>
146{/if}
147{/if}
148{/section}
0337d704 149</p>
ce814052 150{/if}
0337d704 151
e429fff0 152{if $broken}
153<p class="smaller">
841ff7e7 154 {icon name=error}&nbsp;Un camarade signalé par ce symbole n'a plus d'adresse de redirection et ne peut donc
a7de4ef7 155 plus être contacté via son adresse polytechnique.org. Si tu connais sa nouvelle adresse, tu peux nous la communiquer en
e429fff0 156 cliquant sur le symbole.
157</p>
158{/if}
159
a91fb584 160{/if}
161
a7de4ef7 162{* vim:set et sw=2 sts=2 sws=2 enc=utf-8: *}