X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=templates%2Femails%2Fredirect.tpl;h=c602df3e5ef88be4537a3a87862e0c959c8e8ff5;hb=7972436ae72911c7f2e8d5f3a26204a7ca0ee39d;hp=7b858e3fd9903faaf1e722de11e2a8383c2afd37;hpb=2a6cca40fb0afa2a445f2e0c2135b14069676086;p=platal.git diff --git a/templates/emails/redirect.tpl b/templates/emails/redirect.tpl index 7b858e3..c602df3 100644 --- a/templates/emails/redirect.tpl +++ b/templates/emails/redirect.tpl @@ -123,6 +123,19 @@ Ajax.update_html(null, 'emails/redirect/' + (checked ? '' : 'in') + 'active/' + email, redirectUpdate); } + function rewriteUpdate(mail, allow, box) + { + return function() { + if (!allow) { + if (box.value != '') { + alert("Un mail de validation vient d'être envoyer sur " + mail + + ". La réécriture ne sera active que lorsque tu auras cliqué sur le lien indiqué dans ce mail."); + } + } + redirectUpdate(); + }; + } + {/literal} //]]> {test_email} @@ -150,9 +163,9 @@ {if $e->active}checked="checked"{/if} {if $smarty.foreach.redirect.total eq 1}disabled="disabled"{/if} onchange="updateRedirect(this.checked, '{$e->email}')" /> - + {if $e->has_rewrite()} - {assign var=dom1 value=#globals.mail.domain#} {assign var=dom2 value=#globals.mail.domain2#} @@ -163,6 +176,7 @@ value='{$a.alias}@{#globals.mail.domain2#}'>{$a.alias}@{#globals.mail.domain2#} {/foreach} + {if $e->rewrite neq '' && !$e->allow_rewrite}{icon name="error" title="en attente de validation"}{/if} {else} pas de réécriture {/if}