Navigation links.
[platal.git] / templates / xnetgrp / annuaire.tpl
CommitLineData
0337d704 1{**************************************************************************}
2{* *}
8d84c630 3{* Copyright (C) 2003-2009 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
e8439508 23<h1>{$asso.nom}&nbsp;: Annuaire du groupe </h1>
0337d704 24
25<p class="descr">
78cf6438 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>
37 <li>
38 <a href="{$platal->ns}admin/annuaire">
39 {icon name=wand title="Synchroniser"}
77af6562 40 Synchroniser annuaire et listes de diffusion
5e193297 41 </a>
42 </li>
43 {/if}
dc2073c3 44 <li>
102f4e64
FB
45 <a href="{$platal->ns}annuaire/csv/{$asso.diminutif}.csv">
46 {icon name=page_excel title="Fichier Excel"}
47 Obtenir au format Excel
48 </a>
49 </li>
50 <li>
dc2073c3 51 <a href="{$platal->ns}annuaire/vcard/photos/{$asso.diminutif}.vcf">
52 {icon name=vcard title="Carte de visite"}
a7de4ef7 53 Ajouter les membres à ton carnet d'adresse
dc2073c3 54 </a>
55 (<a href="{$platal->ns}annuaire/vcard/{$asso.diminutif}.vcf">sans les photos</a>)
56 </li>
0337d704 57</ul>
0337d704 58
a91fb584 59{if $plset_base}
a9cd2bab 60{include core=plset.tpl}
a91fb584 61{else}
62
0337d704 63<p class="center">
f6d7a2df
FB
64[<a href="{$platal->ns}annuaire?order={$order}" {if !$only_admin}class="erreur"{/if}>tous les membres</a>]
65[<a href="{$platal->ns}annuaire?order={$order}&amp;admin=1" {if $only_admin}class="erreur"{/if}>animateurs</a>]<br/>
66{*
67 XXX: This code has been temporary dropped, waiting for a cleaner way to do that stuff
0337d704 68{foreach from=$alphabet item=c}
d8d9fb55 69{if $c}
f6d7a2df 70[<a href="{$platal->ns}annuaire?order={$order}&amp;admin={$only_admin}"{if $request_group eq $c} class="erreur"{/if}>{$c}</a>]
d8d9fb55 71{/if}
0337d704 72{/foreach}
f6d7a2df 73*}
0337d704 74</p>
75
54b24ba2 76<table summary="membres du groupe" class="bicol">
0337d704 77 <tr>
e02ecfce 78 <th>
f6d7a2df
FB
79 <a href="{$platal->ns}annuaire?order={if $order eq 'directory_name'}-{/if}directory_name&amp;admin={$only_admin}">
80 {if $order eq 'directory_name'}
c73a312d 81 <img src="{$platal->baseurl}images/dn.png" alt="" title="Tri croissant" />
f6d7a2df 82 {elseif $order eq '-directory_name'}
a7de4ef7 83 <img src="{$platal->baseurl}images/up.png" alt="" title="Tri décroissant" />
e02ecfce 84 {/if}
f6d7a2df 85 Prénom NOM
e02ecfce 86 </a>
87 </th>
88 <th>
f6d7a2df
FB
89 <a href="{$platal->ns}annuaire?order={if $order eq 'promo'}-{/if}promo&amp;admin={$only_admin}">
90 {if $order eq '-promo'}
c73a312d 91 <img src="{$platal->baseurl}images/dn.png" alt="" title="Tri croissant" />
f6d7a2df 92 {elseif $order eq 'promo'}
a7de4ef7 93 <img src="{$platal->baseurl}images/up.png" alt="" title="Tri décroissant" />
e02ecfce 94 {/if}
f6d7a2df 95 Promo
e02ecfce 96 </a>
97 </th>
54b24ba2 98 <th colspan="2">Infos</th>
d24c8a11 99 {if $is_admin}
a72a67b9 100 <th>Actions</th>
0337d704 101 {/if}
102 </tr>
f6d7a2df 103 {foreach from=$users item=user}
4664b701 104 <tr>
fbacde57 105 <td>
f6d7a2df
FB
106 {profile user=$user promo=false}
107 <td>
108 {if $user->group_perms eq 'admin'}<strong>{/if}
109 {$user->promo()}
110 {if $user->group_perms eq 'admin'}</strong>{/if}
111 </td>
112 {if $user->group_comm}
113 <td>{$user->group_comm}</td>
54b24ba2 114 {/if}
f6d7a2df 115 <td class="right" {if !$m->group_comm}colspan="2"{/if}>
7ac1ef77 116 <a href="https://www.polytechnique.org/vcard/{$m.email}.vcf">{icon name=vcard title="[vcard]"}</a>
faefdbb7 117 <a href="mailto:{$m.email}@polytechnique.org">{icon name=email title="email"}</a>
0337d704 118 </td>
d24c8a11 119 {if $is_admin}
4664b701 120 <td class="center">
f6d7a2df
FB
121 <a href="{$platal->ns}member/{$user->login()}">{icon name=user_edit title="Edition du profil"}</a>
122 <a href="{$platal->ns}member/del/{$user->login()}">{icon name=delete title="Supprimer de l'annuaire"}</a>
a72a67b9 123 </td>
0337d704 124 {/if}
125 </tr>
f6d7a2df 126 {/foreach}
0337d704 127</table>
128
ce814052 129{if $pages ge 1}
4664b701 130<p class="descr" style="text-align: center">
ce814052
FB
131{section name="links" loop=$pages min=1}
132{if $smarty.section.links.index eq $current}
133<span class="erreur">{$smarty.section.links.iteration}</span>
134{else}
135{if $smarty.section.links.first}
136<a href="{$platal->ns}annuaire?offset={$current-1}&amp;order={$order}&amp;admin={$only_admin}">précédente</a>
137{/if}
138<a href="{$platal->ns}annuaire?offset={$smarty.section.links.index}&amp;order={$order}&amp;admin={$only_admin}">{$smarty.section.links.iteration}</a>
139{if $smarty.section.links.last}
140<a href="{$platal->ns}annuaire?offset={$current+1}&amp;order={$order}&amp;admin={$only_admin}">suivante</a>
141{/if}
142{/if}
143{/section}
0337d704 144</p>
ce814052 145{/if}
0337d704 146
e429fff0 147{if $broken}
148<p class="smaller">
841ff7e7 149 {icon name=error}&nbsp;Un camarade signalé par ce symbole n'a plus d'adresse de redirection et ne peut donc
a7de4ef7 150 plus être contacté via son adresse polytechnique.org. Si tu connais sa nouvelle adresse, tu peux nous la communiquer en
e429fff0 151 cliquant sur le symbole.
152</p>
153{/if}
154
a91fb584 155{/if}
156
a7de4ef7 157{* vim:set et sw=2 sts=2 sws=2 enc=utf-8: *}