Removes trailing spaces.
[platal.git] / templates / xnetlists / index.tpl
1 {**************************************************************************}
2 {*                                                                        *}
3 {*  Copyright (C) 2003-2010 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 {if $smarty.get.del_alias}
24
25 <p class="error">Es-tu sûr de vouloir supprimer l'alias {$smarty.get.del_alias}&nbsp;?</p>
26 <form action='{$platal->ns}lists' method="post">
27   {xsrf_token_field}
28   <div class="center">
29     <input type='submit' value="Oui, je suis sûr" />
30     <input type='hidden' name='del_alias' value="{$smarty.get.del_alias}" />
31   </div>
32 </form>
33 <p>[<a href='{$platal->ns}lists'>retour à la page des listes</a>]</p>
34
35 {else}
36
37 <h1>{$asso->nom}&nbsp;: Listes de diffusion</h1>
38
39 <h2>Listes de diffusion du groupe {$asso->nom}&nbsp;:</h2>
40
41 <p class="descr">
42 Une liste dont <strong>la diffusion</strong> est modérée est une liste dont les emails sont validés
43 par les administrateurs avant d'être transmis aux membres de la liste.  Une liste dont
44 <strong>l'inscription</strong> est modérée est une liste pour laquelle l'abonnement est soumis à
45 l'accord préalable des responsables du groupe.
46 </p>
47 <p class="descr">
48 La dernière colonne du tableau t'indique si tu es inscrit{if $smarty.session.user->gender}e{/if} ou non à
49 la liste. Dans le premier cas, une croix rouge te permet de te désabonner. Dans le second cas, une
50 croix verte te permet de t'inscrire, après accord des responsables si l'inscription est modérée.
51 </p>
52
53 <table cellpadding="0" cellspacing="0" class='large'>
54   <tr>
55     <th colspan="2">Liste</th>
56     <th>Description</th>
57     <th>Diffusion</th>
58     <th>Inscription</th>
59     <th>Nb</th>
60     <th>&nbsp;</th>
61   </tr>
62   {foreach from=$listes item=l}
63   <tr>
64     <td class='center'>
65       <a href="mailto:{$l.list}@{$asso->mail_domain}">{icon name=email title="email"}</a>
66     </td>
67     <td>
68       {if $l.own}
69       {icon name=wrench title="Modérateur"}
70       {elseif $l.priv}
71       {icon name=weather_cloudy title="Liste privée"}
72       {/if}
73       <a href='{$platal->ns}lists/members/{$l.list}'>{$l.list}</a>
74     </td>
75     <td>{$l.desc|smarty:nodefaults}</td>
76     <td class='center'>
77       {if $l.diff eq 2}modérée{elseif $l.diff eq 1}restreinte{else}libre{/if}
78     </td>
79     <td class='center'>{if $l.ins}modérée{else}libre{/if}</td>
80     <td align='right'>{$l.nbsub}</td>
81     <td align='center'>
82       {if $l.sub eq 2}
83       <a href="{$platal->ns}lists?del={$l.list}&amp;token={xsrf_token}">{icon name=cross title="me désinscrire"}</a>
84       {elseif $l.sub eq 1}
85       {icon name=flag_orange title='inscription en attente de modération'}
86       {else}
87       <a href="{$platal->ns}lists?add={$l.list}&amp;token={xsrf_token}">{icon name=add title="m'inscrire"}</a>
88       {/if}
89     </td>
90   </tr>
91   {foreachelse}
92   <tr><td colspan='7'>Pas de listes pour ce groupe</td></tr>
93   {/foreach}
94   {if $may_update}
95   <tr><td colspan="7" class="center">
96     <a href="{$platal->ns}lists/create">
97       {icon name=add title="Créer une liste"} Créer une nouvelle liste
98     </a>
99   </td></tr>
100   {/if}
101 </table>
102
103 <p class="descr">
104 {icon name=wrench title="Modérateur"} tu es {if $smarty.session.user->gender}modératrice{else}moderateur{/if} sur cette liste.<br />
105 {icon name=weather_cloudy title="Liste privée"} cette liste est invisible aux non-membres de la liste. S'en désabonner
106 t'empêcherait de t'y réabonner par la suite sans l'aide d'un administrateur.
107 </p>
108
109 <h2>Voici les alias existants pour le groupe {$asso->nom}&nbsp;:</h2>
110
111 <table cellspacing="0" cellpadding="0" class='large'>
112   <tr>
113     <th{if $may_update} colspan='3'{/if}>Alias</th>
114   </tr>
115   {if $alias->total()}
116   {iterate from=$alias item=a}
117   <tr>
118     {if $may_update}
119     <td class="center"><a href='mailto:{$a.alias}'>{icon name=email title="email"}</a></td>
120     <td><a href="{$platal->ns}alias/admin/{$a.alias}">{$a.alias}</a></td>
121     <td class="center"><a href="{$platal->ns}lists?del_alias={$a.alias}">{icon name=delete title='supprimer'}</a></td>
122     {else}
123     <td><a href='mailto:{$a.alias}'>{icon name=email title="email"} {$a.alias}</a></td>
124     {/if}
125   </tr>
126   {/iterate}
127   {else}
128   <tr>
129     <td{if $may_update} colspan='3'{/if}>Aucun alias pour ce groupe</td>
130   </tr>
131   {/if}
132   {if $may_update}
133   <tr><td colspan="3" class="center">
134     <a href="{$platal->ns}alias/create">
135       {icon name=add title="Créer une liste"} Créer un nouvel alias
136     </a>
137   </td></tr>
138   {/if}
139 </table>
140
141 {/if}
142
143 {* vim:set et sw=2 sts=2 sws=2 enc=utf-8: *}