From 3fe218e4aca2e24984b615fed5e8142d33fef0fc Mon Sep 17 00:00:00 2001 From: x2000habouzit Date: Sun, 16 Jul 2006 11:59:46 +0000 Subject: [PATCH] move templates at the right place for xnetlists git-svn-id: svn+ssh://murphy/home/svn/platal/trunk@522 839d8a87-29fc-0310-9880-83ba4fa771e5 --- modules/xnetlists.php | 6 +-- templates/xnetlists/create.tpl | 102 +++++++++++++++++++++++++++++++++++ templates/xnetlists/index.tpl | 119 +++++++++++++++++++++++++++++++++++++++++ templates/xnetlists/sync.tpl | 48 +++++++++++++++++ 4 files changed, 272 insertions(+), 3 deletions(-) create mode 100644 templates/xnetlists/create.tpl create mode 100644 templates/xnetlists/index.tpl create mode 100644 templates/xnetlists/sync.tpl diff --git a/modules/xnetlists.php b/modules/xnetlists.php index 278fa7d..b284fc9 100644 --- a/modules/xnetlists.php +++ b/modules/xnetlists.php @@ -72,7 +72,7 @@ class XnetListsModule extends ListsModule $this->prepare_client($page); - $page->changeTpl('xnet/groupe/listes.tpl'); + $page->changeTpl('xnetlists/index.tpl'); if (Get::has('del')) { $this->client->unsubscribe(Get::get('del')); @@ -115,7 +115,7 @@ class XnetListsModule extends ListsModule $this->prepare_client($page); - $page->changeTpl('xnet/groupe/listes-create.tpl'); + $page->changeTpl('xnetlists/create.tpl'); $page->assign('force_list_super', may_update()); if (!Post::has('submit')) { @@ -189,7 +189,7 @@ class XnetListsModule extends ListsModule $this->prepare_client($page); - $page->changeTpl('xnet/groupe/listes-sync.tpl'); + $page->changeTpl('xnetlists/sync.tpl'); if (Env::has('add')) { $this->client->mass_subscribe($liste, array_keys(Env::getMixed('add'))); diff --git a/templates/xnetlists/create.tpl b/templates/xnetlists/create.tpl new file mode 100644 index 0000000..d717871 --- /dev/null +++ b/templates/xnetlists/create.tpl @@ -0,0 +1,102 @@ +{**************************************************************************} +{* *} +{* Copyright (C) 2003-2006 Polytechnique.org *} +{* http://opensource.polytechnique.org/ *} +{* *} +{* This program is free software; you can redistribute it and/or modify *} +{* it under the terms of the GNU General Public License as published by *} +{* the Free Software Foundation; either version 2 of the License, or *} +{* (at your option) any later version. *} +{* *} +{* This program is distributed in the hope that it will be useful, *} +{* but WITHOUT ANY WARRANTY; without even the implied warranty of *} +{* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *} +{* GNU General Public License for more details. *} +{* *} +{* You should have received a copy of the GNU General Public License *} +{* along with this program; if not, write to the Free Software *} +{* Foundation, Inc., *} +{* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA *} +{* *} +{**************************************************************************} + +

{$asso.nom} : Création d'une liste de diffusion

+ +

+Note : Les listes de diffusion sont un outil particulièrement adapté pour des +échanges entre 6 personnes, ou plus (newsletter, débat interne au groupe ...). En revanche, elles +s'avèrent peu praticables pour des discussions plus restreintes. Il est alors préférable +d'utiliser un alias, à la gestion beaucoup plus souple. +

+

+D'autre part, il est impossible d'inscrire une liste de diffusion à une autre liste de diffusion. +Si tu as besoin de cette fonctionnalité, il faut alors impérativement utiliser +un alias qui, lui, est capable de regrouper plusieurs listes. +

+
+ + + + + + + + + + + + + + + + +
Caractéristiques de la Liste
Addresse souhaitée : + @{$asso.mail_domain} +
Sujet (bref) : + +
Propriétés : + + + + + + + + + + + + + + + + + + + +
visibilité : + publique + + privée +
diffusion : + libre + + restreinte + modérée +
inscription : + libre + + modérée +
+
+

+
+ +{* vim:set et sw=2 sts=2 sws=2: *} diff --git a/templates/xnetlists/index.tpl b/templates/xnetlists/index.tpl new file mode 100644 index 0000000..bd7db7c --- /dev/null +++ b/templates/xnetlists/index.tpl @@ -0,0 +1,119 @@ +{**************************************************************************} +{* *} +{* Copyright (C) 2003-2006 Polytechnique.org *} +{* http://opensource.polytechnique.org/ *} +{* *} +{* This program is free software; you can redistribute it and/or modify *} +{* it under the terms of the GNU General Public License as published by *} +{* the Free Software Foundation; either version 2 of the License, or *} +{* (at your option) any later version. *} +{* *} +{* This program is distributed in the hope that it will be useful, *} +{* but WITHOUT ANY WARRANTY; without even the implied warranty of *} +{* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *} +{* GNU General Public License for more details. *} +{* *} +{* You should have received a copy of the GNU General Public License *} +{* along with this program; if not, write to the Free Software *} +{* Foundation, Inc., *} +{* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA *} +{* *} +{**************************************************************************} + +{if $smarty.get.del_alias} + +

Est tu sur de supprimer l'alias {$smarty.get.del_alias} ?

+
+
+ + +
+
+

[retour à la page des listes]

+ +{else} + +

{$asso.nom} : Listes de diffusion

+ +

Listes de diffusion du groupe {$asso.nom} :

+ +

+Une liste dont la diffusion est modérée est une liste dont les mails sont validés +par les administrateurs avant d'être transmis aux membres de la liste. Une liste dont +l'inscription est modérée est une liste pour laquelle l'abonnement est soumis à +l'accord préalable des responsables du groupe. +

+

+La dernière colonne du tableau t'indique si tu es inscrit{if $smarty.session.femme}e{/if} ou non à +la liste. Dans le premier cas, une croix rouge te permet de te désabonner. Dans le second cas, une +croix verte te permet de t'inscrire, après accord des responsables si l'inscription est modérée. +

+ + + + + + + + + + + {foreach from=$listes item=l} + + + + + + + + + {foreachelse} + + {/foreach} +
ListeDescriptionDiffusionInscriptionNb 
+ [mail] + {$l.list} {if $l.priv}#{/if}{if $l.own}o{/if} + {$l.desc} + {if $l.diff eq 2}modérée{elseif $l.diff eq 1}restreinte{else}libre{/if} + {if $l.ins}modérée{else}libre{/if}{$l.nbsub} + {if $l.sub eq 2} + [désinscrire] + {elseif $l.sub eq 1} + [en attente] + {else} + [m'inscrire] + {/if} +
Pas de listes pour ce groupe
+ +

+o: tu es {if $smarty.session.femme}modératrice{else}moderateur{/if} sur cette liste
+#: cette liste est invisible aux non-membres de la liste. S'en désabonner +t'empêcherait de t'y réabonner par la suite sans l'aide d'un administrateur. +

+ +

Voici les alias existants pour le groupe {$asso.nom} :

+ +{if $alias->total()} + + + Alias + + {iterate from=$alias item=a} + + {if $may_update} + + + + {else} + + {/if} + + {/iterate} +
[mail]{$a.alias}[supprimer][mail] {$a.alias}
+{else} +

Aucun alias pour ce groupe

+{/if} + +{/if} + +{* vim:set et sw=2 sts=2 sws=2: *} diff --git a/templates/xnetlists/sync.tpl b/templates/xnetlists/sync.tpl new file mode 100644 index 0000000..8244a22 --- /dev/null +++ b/templates/xnetlists/sync.tpl @@ -0,0 +1,48 @@ +{**************************************************************************} +{* *} +{* Copyright (C) 2003-2006 Polytechnique.org *} +{* http://opensource.polytechnique.org/ *} +{* *} +{* This program is free software; you can redistribute it and/or modify *} +{* it under the terms of the GNU General Public License as published by *} +{* the Free Software Foundation; either version 2 of the License, or *} +{* (at your option) any later version. *} +{* *} +{* This program is distributed in the hope that it will be useful, *} +{* but WITHOUT ANY WARRANTY; without even the implied warranty of *} +{* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *} +{* GNU General Public License for more details. *} +{* *} +{* You should have received a copy of the GNU General Public License *} +{* along with this program; if not, write to the Free Software *} +{* Foundation, Inc., *} +{* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA *} +{* *} +{**************************************************************************} + +{include file='listes/header_listes.tpl' on='sync'} +

Non abonnés à la liste {$platal->argv[1]}@{$asso.mail_domain}

+ +
+ + + + + + + {foreach from=$not_in_list item=u} + + + + + {/foreach} + + + +
Membre
{$u.prenom} {$u.nom}
+ +
+ +
+ +{* vim:set et sw=2 sts=2 sws=2: *} -- 2.1.4