Adapts the profile_update to the new geocoding.
[platal.git] / templates / xnetgrp / annuaire.tpl
1 {**************************************************************************}
2 {*                                                                        *}
3 {*  Copyright (C) 2003-2009 Polytechnique.org                             *}
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
23 <h1>{$asso.nom}&nbsp;: Annuaire du groupe </h1>
24
25 <p class="descr">
26 Le groupe {$asso.nom} compte {$nb_tot} membres&nbsp;:
27 </p>
28
29 <ul class="descr">
30   {if $is_admin}
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>
37   {if $asso.has_ml}
38   <li>
39     <a href="{$platal->ns}admin/annuaire">
40       {icon name=wand title="Synchroniser"} 
41       Synchroniser annuaire et listes de diffusion
42     </a>
43   </li>
44   {/if}
45   {/if}
46   <li>
47     <a href="{$platal->ns}annuaire/csv/{$asso.diminutif}.csv">
48       {icon name=page_excel title="Fichier Excel"} 
49       Obtenir au format Excel
50     </a>
51   </li>
52   <li>
53     <a href="{$platal->ns}annuaire/vcard/photos/{$asso.diminutif}.vcf">
54       {icon name=vcard title="Carte de visite"} 
55       Ajouter les membres à ton carnet d'adresse
56     </a>
57     (<a href="{$platal->ns}annuaire/vcard/{$asso.diminutif}.vcf">sans les photos</a>)
58   </li>
59 </ul>
60
61 {if $plset_base}
62 {include core=plset.tpl}
63 {else}
64
65 <p class="center">
66 [<a href="{$platal->ns}annuaire?order={$smarty.request.order}" {if !$only_admin}class="erreur"{/if}>tous les membres</a>]
67 [<a href="{$platal->ns}annuaire?order={$smarty.request.order}&amp;admin=1" {if $only_admin}class="erreur"{/if}>animateurs</a>]<br/>
68 {foreach from=$alphabet item=c}
69 {if $c}
70 [<a href="{$platal->ns}annuaire?{$group}={$c}&amp;order={$smarty.request.order}{if $only_admin}&amp;admin=1{/if}"{if $request_group eq $c} class="erreur"{/if}>{$c}</a>]
71 {/if}
72 {/foreach}
73 </p>
74
75 <table summary="membres du groupe" class="bicol">
76   <tr>
77     <th>
78       <a href="{$platal->ns}annuaire?order=alpha{if $sort neq "alpha_inv"}_inv{/if}{if $request_group and $group eq 'initiale'}&amp;initiale={$request_group}{/if}{if $only_admin}&amp;admin=1{/if}">
79       {if $sort eq 'alpha'}
80         <img src="{$platal->baseurl}images/dn.png" alt="" title="Tri croissant" />
81       {elseif $sort eq 'alpha_inv'}
82         <img src="{$platal->baseurl}images/up.png" alt="" title="Tri décroissant" />
83       {/if}
84       Prénom NOM 
85       </a>
86     </th>
87     <th>
88       <a href="{$platal->ns}annuaire?order=promo{if $sort eq "promo"}_inv{/if}{if $request_group and $group eq 'promo'}&amp;promo={$request_group}{/if}">
89       {if $sort eq 'promo_inv'}
90         <img src="{$platal->baseurl}images/dn.png" alt="" title="Tri croissant" />
91       {elseif $sort eq 'promo'}
92         <img src="{$platal->baseurl}images/up.png" alt="" title="Tri décroissant" />
93       {/if}
94         Promo
95       </a>
96     </th>
97     <th colspan="2">Infos</th>
98     {if $is_admin}
99     <th>Actions</th>
100     {/if}
101   </tr>
102   {iterate from=$ann item=m}
103   <tr>
104     <td>
105       {if $m.admin}<strong>{/if}
106       {if $m.inscrit}
107       <a href="https://www.polytechnique.org/profile/{$m.email}" class="popup2">
108       {elseif $m.x}
109       <a href="https://www.polytechnique.org/marketing/public/{$m.uid}">
110       {/if}
111       {if $m.femme}&bull;{/if}{if $m.prenom || $m.nom}{$m.prenom} {$m.nom|strtoupper}{else}{$m.email}{/if}
112       {if $m.x}</a>{/if} 
113       {if $m.admin}</strong>{/if}
114       {if $m.inscrit && !$m.actif}
115       <a href="https://www.polytechnique.org/marketing/broken/{$m.email}">{icon name=error title="Recherche d'email"}</a>
116       {assign var=broken value=true}
117       {/if}</td>
118     <td>{if $m.admin}<strong>{/if}{$m.promo}{if $m.admin}</strong>{/if}</td>
119     {if $m.comm}
120     <td>{$m.comm}</td>
121     {/if}
122     <td class="right" {if !$m.comm}colspan="2"{/if}>
123       {if $m.inscrit}
124       <a href="https://www.polytechnique.org/vcard/{$m.email}.vcf">{icon name=vcard title="[vcard]"}</a>
125       <a href="mailto:{$m.email}@polytechnique.org">{icon name=email title="email"}</a>
126       {else}
127       <a href="mailto:{$m.email}">{icon name=email title="email"}</a>
128       {/if}
129     </td>
130     {if $is_admin}
131     <td class="center">
132       <a href="{$platal->ns}member/{if $m.x}{$m.email}{else}{$m.uid}{/if}">{icon name=user_edit title="Édition du profil"}</a>
133       <a href="{$platal->ns}member/del/{if $m.x}{$m.email}{else}{$m.uid}{/if}">{icon name=delete title="Supprimer de l'annuaire"}</a>
134     </td>
135     {/if}
136   </tr>
137   {/iterate}
138 </table>
139
140 <p class="descr" style="text-align: center">
141 {foreach from=$links item=ofs key=txt}
142 <a href="{$platal->ns}annuaire?offset={$ofs}&amp;initiale={$smarty.request.initiale}&amp;order={$sort}"{if $smarty.request.offset eq $ofs} class="erreur"{/if}>{$txt}</a>
143 {/foreach}
144 </p>
145
146 {if $broken}
147 <p class="smaller">
148   {icon name=error}&nbsp;Un camarade signalé par ce symbole n'a plus d'adresse de redirection et ne peut donc
149   plus être contacté via son adresse polytechnique.org. Si tu connais sa nouvelle adresse, tu peux nous la communiquer en
150   cliquant sur le symbole.
151 </p>
152 {/if}
153
154 {/if}
155
156 {* vim:set et sw=2 sts=2 sws=2 enc=utf-8: *}