| 1 | {**************************************************************************} |
| 2 | {* *} |
| 3 | {* Copyright (C) 2003-2007 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> |
| 26 | <form action='{$platal->ns}lists' method="post"> |
| 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> |
| 32 | <p>[<a href='{$platal->ns}lists'>retour à la page des listes</a>]</p> |
| 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"> |
| 41 | Une liste dont <strong>la diffusion</strong> est modérée est une liste dont les mails sont validés |
| 42 | par 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 à |
| 44 | l'accord préalable des responsables du groupe. |
| 45 | </p> |
| 46 | <p class="descr"> |
| 47 | La dernière colonne du tableau t'indique si tu es inscrit{if $smarty.session.femme}e{/if} ou non à |
| 48 | la liste. Dans le premier cas, une croix rouge te permet de te désabonner. Dans le second cas, une |
| 49 | croix 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 colspan="2">Liste</th> |
| 55 | <th>Description</th> |
| 56 | <th>Diffusion</th> |
| 57 | <th>Inscription</th> |
| 58 | <th>Nb</th> |
| 59 | <th> </th> |
| 60 | </tr> |
| 61 | {foreach from=$listes item=l} |
| 62 | <tr> |
| 63 | <td class='center'> |
| 64 | <a href="mailto:{$l.list}@{$asso.mail_domain}">{icon name=email title="mail"}</a> |
| 65 | </td> |
| 66 | <td> |
| 67 | {if $l.own} |
| 68 | {icon name=wrench title="Modérateur"} |
| 69 | {elseif $l.priv} |
| 70 | {icon name=weather_cloudy title="Liste privée"} |
| 71 | {/if} |
| 72 | <a href='{$platal->ns}lists/members/{$l.list}'>{$l.list}</a> |
| 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> |
| 80 | <td align='center'> |
| 81 | {if $l.sub eq 2} |
| 82 | <a href="{$platal->ns}lists?del={$l.list}">{icon name=cross title="me désinscrire"}</a> |
| 83 | {elseif $l.sub eq 1} |
| 84 | {icon name=flag_orange title='inscription en attente de modération'} |
| 85 | {else} |
| 86 | <a href="{$platal->ns}lists?add={$l.list}">{icon name=add title="m'inscrire"}</a> |
| 87 | {/if} |
| 88 | </td> |
| 89 | </tr> |
| 90 | {foreachelse} |
| 91 | <tr><td colspan='7'>Pas de listes pour ce groupe</td></tr> |
| 92 | {/foreach} |
| 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} |
| 100 | </table> |
| 101 | |
| 102 | <p class="descr"> |
| 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 |
| 105 | t'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 | |
| 110 | <table cellspacing="0" cellpadding="0" class='large'> |
| 111 | <tr> |
| 112 | <th{if $may_update} colspan='3'{/if}>Alias</th> |
| 113 | </tr> |
| 114 | {if $alias->total()} |
| 115 | {iterate from=$alias item=a} |
| 116 | <tr> |
| 117 | {if $may_update} |
| 118 | <td class="center"><a href='mailto:{$a.alias}'>{icon name=email title="mail"}</a></td> |
| 119 | <td><a href="{$platal->ns}alias/admin/{$a.alias}">{$a.alias}</a></td> |
| 120 | <td class="center"><a href="{$platal->ns}lists?del_alias={$a.alias}">{icon name=delete title='supprimer'}</a></td> |
| 121 | {else} |
| 122 | <td><a href='mailto:{$a.alias}'>{icon name=email title="mail"} {$a.alias}</a></td> |
| 123 | {/if} |
| 124 | </tr> |
| 125 | {/iterate} |
| 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} |
| 138 | </table> |
| 139 | |
| 140 | {/if} |
| 141 | |
| 142 | {* vim:set et sw=2 sts=2 sws=2 enc=utf-8: *} |