X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=templates%2Femails%2Fredirect.tpl;h=27f50ed4b09d22393be2bdf69f97970a73fe2286;hb=8182ad000cdaba325232aaa9186f4085a84d63b6;hp=b14da71b9a7e7c37c127de51fcb1522b2a36bc6d;hpb=b11cf21e6583592e9c38b3d0a217f425d539cfab;p=platal.git
diff --git a/templates/emails/redirect.tpl b/templates/emails/redirect.tpl
index b14da71..27f50ed 100644
--- a/templates/emails/redirect.tpl
+++ b/templates/emails/redirect.tpl
@@ -28,12 +28,12 @@
{/if}
{if $retour == $smarty.const.ERROR_INVALID_EMAIL}
- Erreur: {$smarty.session.forlife}@{#globals.mail.domain#} ne doit pas être renvoyé
+ Erreur : {$smarty.session.forlife}@{#globals.mail.domain#} ne doit pas être renvoyé
vers lui-même, ni vers son équivalent en {#globals.mail.domain2#} ni vers polytechnique.edu.
{/if}
@@ -122,9 +122,21 @@
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}
//]]>
- {javascript name="jquery"}
{test_email}
@@ -150,9 +162,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()}
- |