X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=templates%2Femails%2Fsend.tpl;h=3b4d0e1615bd06189eea7f7926a4d7f4a38d4207;hb=12ce19efb0f31da0db58f6a5ce4c27bb318097df;hp=9768f3174c4ae9bcfc91ac9187b22870fbcfad73;hpb=1ebf2b93bef5ab13342293a34041b9a68ed31f03;p=platal.git diff --git a/templates/emails/send.tpl b/templates/emails/send.tpl index 9768f31..3b4d0e1 100644 --- a/templates/emails/send.tpl +++ b/templates/emails/send.tpl @@ -1,6 +1,6 @@ {**************************************************************************} {* *} -{* Copyright (C) 2003-2008 Polytechnique.org *} +{* Copyright (C) 2003-2010 Polytechnique.org *} {* http://opensource.polytechnique.org/ *} {* *} {* This program is free software; you can redistribute it and/or modify *} @@ -150,6 +150,13 @@ saveMessage(); return true; }); + $(document).ready( + function() { + // Remove empty options in select (they were added only for HTML + // compatibility). + $('#to_contacts option[value=""]').remove(); + $('#cc_contacts option[value=""]').remove(); + }); {/literal} //]]> @@ -211,49 +218,59 @@

+ {if !$to_not_empty} + {* HTML compatibility *} + + {/if} + + {if !$to_not_empty} + {/if} +
Destinataires
- >> >>
- << << + >> >>
+ << <<
En copie
- >> >>
- << << + >> >>
+ << <<
- {foreach item=contact from=$contacts} - - {/foreach} {/if} @@ -283,7 +300,7 @@ {$smarty.request.contenu} {if !$smarty.request.contenu} -- -{$smarty.session.prenom} {$smarty.session.nom} +{$smarty.session.user->full_name} {/if}