migrate list creation.
[platal.git] / templates / xnet / groupe / listes.tpl
CommitLineData
0337d704 1{**************************************************************************}
2{* *}
50a40a33 3{* Copyright (C) 2003-2006 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
23{if $smarty.get.del_alias}
24
25<p class="error">Est tu sur de supprimer l'alias {$smarty.get.del_alias} ?</p>
9fdacf8d 26<form action='{rel}/{$platal->ns}lists' method="post">
0337d704 27 <div class="center">
28 <input type='submit' value="Oui, je suis sur" />
29 <input type='hidden' name='del_alias' value="{$smarty.get.del_alias}" />
30 </div>
31</form>
9fdacf8d 32<p>[<a href='{rel}/{$platal->ns}lists'>retour à la page des listes</a>]</p>
0337d704 33
34{else}
35
36<h1>{$asso.nom} : Listes de diffusion</h1>
37
38<h2>Listes de diffusion du groupe {$asso.nom} :</h2>
39
40<p class="descr">
41Une liste dont <strong>la diffusion</strong> est modérée est une liste dont les mails sont validés
42par les administrateurs avant d'être transmis aux membres de la liste. Une liste dont
43<strong>l'inscription</strong> est modérée est une liste pour laquelle l'abonnement est soumis à
44l'accord préalable des responsables du groupe.
45</p>
46<p class="descr">
47La dernière colonne du tableau t'indique si tu es inscrit{if $smarty.session.femme}e{/if} ou non à
48la liste. Dans le premier cas, une croix rouge te permet de te désabonner. Dans le second cas, une
49croix verte te permet de t'inscrire, après accord des responsables si l'inscription est modérée.
50</p>
51
52<table cellpadding="0" cellspacing="0" class='large'>
53 <tr>
54 <th>Liste</th>
55 <th>Description</th>
56 <th>Diffusion</th>
57 <th>Inscription</th>
58 <th>Nb</th>
59 <th>&nbsp;</th>
60 </tr>
61 {foreach from=$listes item=l}
62 <tr>
63 <td>
64 <a href="mailto:{$l.list}@{$asso.mail_domain}"><img src="{rel}/images/mail.png" alt='[mail]' /></a>
9fdacf8d 65 <a href='{rel}/{$platal->ns}lists/members/{$l.list}'>{$l.list} {if $l.priv}<sup>#</sup>{/if}{if $l.own}<sup>o</sup>{/if}</a>
0337d704 66 </td>
67 <td>{$l.desc}</td>
68 <td class='center'>
69 {if $l.diff eq 2}modérée{elseif $l.diff eq 1}restreinte{else}libre{/if}
70 </td>
71 <td class='center'>{if $l.ins}modérée{else}libre{/if}</td>
72 <td align='right'>{$l.nbsub}</td>
73 <td align='right'>
74 {if $l.sub eq 2}
9fdacf8d 75 <a href="{rel}/{$platal->ns}lists?del={$l.list}"><img src="{rel}/images/del.png" alt="[désinscrire]" title="me désinscrire" /></a>
0337d704 76 {elseif $l.sub eq 1}
77 <img src="{rel}/images/flag.png" alt="[en attente]" title="en attente de modération" />
78 {else}
9fdacf8d 79 <a href="{rel}/{$platal->ns}lists?add={$l.list}"><img src="{rel}/images/ajouter.gif" alt="[m'inscrire]" title="m'inscrire" /></a>
0337d704 80 {/if}
81 </td>
82 </tr>
83 {foreachelse}
84 <tr><td colspan='6'>Pas de listes pour ce groupe</td></tr>
85 {/foreach}
86</table>
87
88<p class="descr">
89<sup>o</sup>: tu es {if $smarty.session.femme}modératrice{else}moderateur{/if} sur cette liste<br />
90<sup>#</sup>: cette liste est invisible aux non-membres de la liste. S'en désabonner
91t'empêcherait de t'y réabonner par la suite sans l'aide d'un administrateur.
92</p>
93
94<h2>Voici les alias existants pour le groupe {$asso.nom} :</h2>
95
96{if $alias->total()}
97<table cellspacing="0" cellpadding="0" class='large'>
98 <tr>
99 <th{if $may_update} colspan='3'{/if}>Alias</th>
100 </tr>
101 {iterate from=$alias item=a}
102 <tr>
103 {if $may_update}
104 <td class="center"><a href='mailto:{$a.alias}'><img src='{rel}/images/mail.png' alt='[mail]' /></a></td>
105 <td><a href="alias-admin.php?liste={$a.alias}">{$a.alias}</a></td>
9fdacf8d 106 <td class="center"><a href="{rel}/{$platal->ns}lists?del_alias={$a.alias}"><img src='{rel}/images/del.png' alt='[supprimer]' /></a></td>
0337d704 107 {else}
108 <td><a href='mailto:{$a.alias}'><img src='{rel}/images/mail.png' alt='[mail]' /> {$a.alias}</a></td>
109 {/if}
110 </tr>
111 {/iterate}
112</table>
113{else}
114<p>Aucun alias pour ce groupe</p>
115{/if}
116
117{/if}
118
119{* vim:set et sw=2 sts=2 sws=2: *}