X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=templates%2Femails%2Fsend.tpl;h=99326de88c68f5a6a968cb5435c875a7d58a94f5;hb=51fb3b6facb76baf990d0407baf9be4c669fffa7;hp=42bfa4389c853563239935169c887eaa56ab2219;hpb=9f5bd98e936d8cef7ca9f774eeef64dbb8a1b079;p=platal.git
diff --git a/templates/emails/send.tpl b/templates/emails/send.tpl
index 42bfa43..99326de 100644
--- a/templates/emails/send.tpl
+++ b/templates/emails/send.tpl
@@ -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,60 @@
+ {if !$to_not_empty}
+ {* HTML compatibility *}
+
+ {/if}
+
+ {if !$to_not_empty}
+ {/if}
+
- {foreach item=contact from=$contacts}
-
- {/foreach}
{/if}
@@ -283,7 +301,7 @@
{$smarty.request.contenu}
{if !$smarty.request.contenu}
--
-{$smarty.session.prenom} {$smarty.session.nom}
+{$smarty.session.user->full_name}
{/if}