X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;ds=sidebyside;f=templates%2Femails%2Fantispam.tpl;h=794e8ba24a633564dfe2857717debef1dae2cdd4;hb=73317355964c4cd538157f8b281a1384b7e38e4d;hp=628cf37569fda04a8fb25f43fa397e56a1bf9c96;hpb=a43cdc7aab599efc9ebc698e91c131d3a40d6bee;p=platal.git diff --git a/templates/emails/antispam.tpl b/templates/emails/antispam.tpl index 628cf37..794e8ba 100644 --- a/templates/emails/antispam.tpl +++ b/templates/emails/antispam.tpl @@ -1,6 +1,6 @@ {**************************************************************************} {* *} -{* Copyright (C) 2003-2011 Polytechnique.org *} +{* Copyright (C) 2003-2014 Polytechnique.org *} {* http://opensource.polytechnique.org/ *} {* *} {* This program is free software; you can redistribute it and/or modify *} @@ -26,30 +26,120 @@ {literal} $(function() { var url = '{/literal}{$globals->baseurl}/emails/antispam/{literal}'; - var msg = "Le changement de réglage de l'antispam a bien été effectué."; - $(':radio[name=statut_filtre]').change(function() { - $("#bogo-msg").successMessage(url + $(this).val(), msg); + var msg = "Le changement de réglage de l'antispam a bien été effectué pour toutes tes redirections."; + $(':radio[name=filter_status]').change(function() { + var val = $(this).val(); + $(':radio[name*=filter_status_]').removeAttr('checked'); + $(':radio[name*=filter_status_]').attr('checked', function(i, v) { + if ($(this).val() == val) { + return 'checked'; + } + }); + $("#bogo-msg").successMessage(url + val, msg); + }); + }); + $(function() { + var url = '{/literal}{$globals->baseurl}/emails/antispam/{literal}'; + var msg = "Le changement de réglage de l'antispam a bien été effectué pour "; + $(':radio[name*=filter_status_]').change(function() { + var id = $(this).attr('name').replace('filter_status_', ''); + var redirection = $('#bogo_' + id).val(); + $(':radio[name=filter_status]').removeAttr('checked'); + $("#bogo-msg-mult").successMessage(url + $(this).val() + "/" + redirection, msg + redirection.replace('googleapps', 'ton compte Google Apps') + "."); }); }); {/literal} //]]> -
- Choisis ton propre réglage : - - -
- - -
- - -
- - -
- -

+
+ Choisis ton propre réglage : + {if !$single_state} + Attention, tu as actuellement un réglage spécifique pour chacune de tes redirections. + Les modifications dans ce cadre sont globales et entraineront une uniformisation de + l'antispam pour toutes tes redirections au niveau demandé. +
{/if} + + +
+ + +
+ + +
+ + +
+ + +
+ +

+ +{if !$single_redirection} +

Réglages avancés

+

+ Si tu le souhaites, tu peux adapter le niveau de ton antispam pour chacune de tes redirections. Par exemple, + tu peux éliminer tous les spams (niveau 4) vers ton adresse professionnelle, mais ne faire que marquer comme + spams (niveau 2) de tels emails vers ton adresse personnelle. +

+ +

+ + + + + + + + + + + {foreach from=$redirections key=i item=redirection} + + + + + + + + + {/foreach} +
RedirectionNiveau recommandéNiveau 1Niveau 2Niveau 3Niveau 4
+ {$redirection.redirect|replace:'googleapps':'Compte Google Apps'} + + + + + + + + + + + +
+ +

Légende

+ +{/if} {include wiki=Xorg.Antispam part=2} -{* vim:set et sw=2 sts=2 sws=2 enc=utf-8: *} +{* vim:set et sw=2 sts=2 sws=2 fenc=utf-8: *}