X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=templates%2Femails%2Fantispam.tpl;h=0c5e38b8df4948dd7fc75aec52189c98d6d6d93a;hb=3b346b99fd10a34dc4ac85af9da1abb778db8154;hp=e2af941789f69bfd3d1508acdeaa1fc4aa7faedf;hpb=4294dc6c2242bd3079b7b66a854f3bc0cc31b889;p=platal.git diff --git a/templates/emails/antispam.tpl b/templates/emails/antispam.tpl index e2af941..0c5e38b 100644 --- a/templates/emails/antispam.tpl +++ b/templates/emails/antispam.tpl @@ -26,29 +26,88 @@ {literal} $(function() { var url = '{/literal}{$globals->baseurl}/emails/antispam/{literal}'; - var msg = "Le changement de réglage de l'antispam a bien été effectué."; + var msg = "Le changement de réglage de l'antispam a bien été effectué pour toutes tes redirections."; $(':radio[name=filter_status]').change(function() { - $("#bogo-msg").successMessage(url + $(this).val(), msg); + 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} +
+ {$redirection.redirect|replace:'googleapps':'Compte Google Apps'} : + + + +
+ + +
+ + +
+ + +
+ + +
+{/foreach} +{/if} {include wiki=Xorg.Antispam part=2}