X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=templates%2Femails%2Fsend.tpl;h=15248246794199cbcb0868a1a3865c65b11df71d;hb=5c1c757295c2a0937730d002f1e5ea1947c2e40b;hp=26ae04d8a1be0b2e633c6382f648e56095181d79;hpb=ced003168bf3b75a29313c727fe28d65cb03057c;p=platal.git diff --git a/templates/emails/send.tpl b/templates/emails/send.tpl index 26ae04d..1524824 100644 --- a/templates/emails/send.tpl +++ b/templates/emails/send.tpl @@ -1,6 +1,6 @@ {**************************************************************************} {* *} -{* Copyright (C) 2003-2009 Polytechnique.org *} +{* Copyright (C) 2003-2011 Polytechnique.org *} {* http://opensource.polytechnique.org/ *} {* *} {* This program is free software; you can redistribute it and/or modify *} @@ -65,7 +65,7 @@ for (var i = 0 ; i < form['cc_contacts[]'].length ; ++i) { ccc += form['cc_contacts[]'].options[i].value + ";"; } - $.post(platal_baseurl + "emails/send", + $.xpost("emails/send", { save: true, token: '{xsrf_token}', from: form.from.value, @@ -142,6 +142,15 @@ } } + function toggleWiki() + { + if ($('[name="wiki"]').val() == 'text') { + $('[name="wiki"]').val('wiki'); + } else { + $('[name="wiki"]').val('text'); + } + } + $(window).unload( function() { if (sent) { @@ -150,45 +159,53 @@ saveMessage(); return true; }); + $( + function() { + // Remove empty options in select (they were added only for HTML + // compatibility). + $('#to_contacts option[value=""]').remove(); + $('#cc_contacts option[value=""]').remove(); + }); + + $(function() { + $("[name='to']").focus(); + }); {/literal} //]]>

{icon name=information title="Envoi d'email"} Pour envoyer un email, tu peux soit le faire depuis l'interface - ci-dessous, soit utiliser notre serveur d'envoi SMTP. + ci-dessous, soit utiliser notre serveur d'envoi SMTP.

{xsrf_token_field} - + - + - + - + - + {/if} @@ -262,8 +290,12 @@ Sujet : 
Tu peux utiliser des {icon name=information title="Syntaxe wiki"} marqueurs wiki pour formatter ton texte.
- +
Destinataires
de : - +
à :
copie :
copie cachée : @@ -211,49 +228,60 @@

+ {if !$to_not_empty} + {* HTML compatibility *} + + {/if} + + {if !$to_not_empty} + {/if} +
Destinataires
- >> >>
- << << + >> >>
+ << <<
En copie
- >> >>
- << << + >> >>
+ << <<
- {foreach item=contact from=$contacts} - - {/foreach}