X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=templates%2Femails%2Fsend.tpl;h=24189b2e9df0238f33ebef606098309c8ac042b0;hb=a1c554a92888e0b017ba362817a67cc2849a9154;hp=26ae04d8a1be0b2e633c6382f648e56095181d79;hpb=25fe4c85de79aa601948d788b5754b5b6070080d;p=platal.git diff --git a/templates/emails/send.tpl b/templates/emails/send.tpl index 26ae04d..24189b2 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 *} @@ -150,22 +150,33 @@ 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} @@ -283,15 +305,15 @@ {$smarty.request.contenu} {if !$smarty.request.contenu} -- -{$smarty.session.prenom} {$smarty.session.nom} +{$smarty.session.user->full_name} {/if}
Destinataires
de : @@ -176,19 +187,19 @@ {/if}' />
à :
copie :
copie cachée : @@ -211,49 +222,60 @@

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