#277: Ergonomy of registration
[platal.git] / templates / xnetlists / index.tpl
CommitLineData
3fe218e4 1{**************************************************************************}
2{* *}
3{* Copyright (C) 2003-2006 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">Est tu sur de supprimer l'alias {$smarty.get.del_alias} ?</p>
7b2413f6 26<form action='{$platal->ns}lists' method="post">
3fe218e4 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>
7b2413f6 32<p>[<a href='{$platal->ns}lists'>retour à la page des listes</a>]</p>
3fe218e4 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>
66152b79 54 <th colspan="2">Liste</th>
3fe218e4 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>
49848fd7 63 <td class='center'>
66152b79 64 <a href="mailto:{$l.list}@{$asso.mail_domain}">{icon name=email title="mail"}</a>
865d4626 65 </td>
66 <td>
66152b79 67 {if $l.own}
68 {icon name=wrench title="Modérateur"}
69 {elseif $l.priv}
865d4626 70 {icon name=weather_cloudy title="Liste privée"}
71 {/if}
865d4626 72 <a href='{$platal->ns}lists/members/{$l.list}'>{$l.list}</a>
3fe218e4 73 </td>
74 <td>{$l.desc}</td>
75 <td class='center'>
76 {if $l.diff eq 2}modérée{elseif $l.diff eq 1}restreinte{else}libre{/if}
77 </td>
78 <td class='center'>{if $l.ins}modérée{else}libre{/if}</td>
79 <td align='right'>{$l.nbsub}</td>
49848fd7 80 <td align='center'>
3fe218e4 81 {if $l.sub eq 2}
0f5c3d5c 82 <a href="{$platal->ns}lists?del={$l.list}">{icon name=cross title="me désinscrire"}</a>
3fe218e4 83 {elseif $l.sub eq 1}
bf8206c7 84 {icon name=flag_orange title='inscription en attente de modération'}
3fe218e4 85 {else}
7c0881fd 86 <a href="{$platal->ns}lists?add={$l.list}">{icon name=add title="m'inscrire"}</a>
3fe218e4 87 {/if}
88 </td>
89 </tr>
90 {foreachelse}
24bcf50c 91 <tr><td colspan='7'>Pas de listes pour ce groupe</td></tr>
3fe218e4 92 {/foreach}
c77e45f1 93 {if $may_update}
94 <tr><td colspan="7" class="center">
95 <a href="{$platal->ns}lists/create">
96 {icon name=add title="Créer une liste"} Créer une nouvelle liste
97 </a>
98 </td></tr>
99 {/if}
3fe218e4 100</table>
101
102<p class="descr">
865d4626 103{icon name=wrench title="Modérateur"} tu es {if $smarty.session.femme}modératrice{else}moderateur{/if} sur cette liste<br />
104{icon name=weather_cloudy title="Liste privée"} cette liste est invisible aux non-membres de la liste. S'en désabonner
3fe218e4 105t'empêcherait de t'y réabonner par la suite sans l'aide d'un administrateur.
106</p>
107
108<h2>Voici les alias existants pour le groupe {$asso.nom} :</h2>
109
3fe218e4 110<table cellspacing="0" cellpadding="0" class='large'>
111 <tr>
112 <th{if $may_update} colspan='3'{/if}>Alias</th>
113 </tr>
c77e45f1 114 {if $alias->total()}
3fe218e4 115 {iterate from=$alias item=a}
116 <tr>
117 {if $may_update}
f7413044 118 <td class="center"><a href='mailto:{$a.alias}'>{icon name=email title="mail"}</a></td>
7b2413f6 119 <td><a href="{$platal->ns}alias/admin/{$a.alias}">{$a.alias}</a></td>
a72a67b9 120 <td class="center"><a href="{$platal->ns}lists?del_alias={$a.alias}">{icon name=delete title='supprimer'}</a></td>
3fe218e4 121 {else}
f7413044 122 <td><a href='mailto:{$a.alias}'>{icon name=email title="mail"} {$a.alias}</a></td>
3fe218e4 123 {/if}
124 </tr>
125 {/iterate}
c77e45f1 126 {else}
127 <tr>
128 <td{if $may_update} colspan='3'{/if}>Aucun alias pour ce groupe</td>
129 </tr>
130 {/if}
131 {if $may_update}
132 <tr><td colspan="3" class="center">
133 <a href="{$platal->ns}alias/create">
134 {icon name=add title="Créer une liste"} Créer un nouvel alias
135 </a>
136 </td></tr>
137 {/if}
3fe218e4 138</table>
3fe218e4 139
140{/if}
141
142{* vim:set et sw=2 sts=2 sws=2: *}