From 7a5719a29c3266f9730329fb0558dde04755564d Mon Sep 17 00:00:00 2001 From: Pascal Corpet Date: Sat, 29 May 2010 15:23:38 +0200 Subject: [PATCH] HTML fixes --- templates/emails/send.tpl | 30 ++++++++++++++++---- templates/lists/create.tpl | 52 +++++++++++++++++------------------ templates/platal/webredirect.tpl | 1 + templates/reminder/base.tpl | 6 ++-- templates/reminder/gapps.tpl | 4 +-- templates/reminder/ml.tpl | 4 +-- templates/reminder/profile_update.tpl | 2 +- 7 files changed, 60 insertions(+), 39 deletions(-) diff --git a/templates/emails/send.tpl b/templates/emails/send.tpl index 75b0d67..3b4d0e1 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} //]]> @@ -215,29 +222,42 @@ + {assign var="to_not_empty" value="true"} {/if} {/foreach} -
+ {if !$to_not_empty} + {* HTML compatibility *} + + {/if} + + {if !$to_not_empty} + {/if} +
Destinataires
- >> >>
- << << + >> >>
+ << <<
En copie
- >> >>
- << << + >> >>
+ << <<
diff --git a/templates/lists/create.tpl b/templates/lists/create.tpl index f738f48..144d34b 100644 --- a/templates/lists/create.tpl +++ b/templates/lists/create.tpl @@ -62,7 +62,7 @@ liste : Promotion : + {if $smarty.post.promo}value='{$smarty.post.promo}'{else}value='{$smarty.session.promo}'{/if} /> Par exemple : 2004 @@ -79,31 +79,6 @@ liste : @.diminutifdugroupe.polytechnique.org - Sujet (bref) : @@ -183,6 +158,31 @@ liste : +

La création de la liste sera soumise à un contrôle manuel avant d'être validée. Ce contrôle a pour but notamment de vérifier qu'il n'y aura pas ambiguité entre les membres de la liste et son diff --git a/templates/platal/webredirect.tpl b/templates/platal/webredirect.tpl index 48769ba..fcddb19 100644 --- a/templates/platal/webredirect.tpl +++ b/templates/platal/webredirect.tpl @@ -53,6 +53,7 @@ {else} La redirection n'est pas utilisée… {/if} +

Pour modifier ta redirection remplis le champ suivant et clique sur Valider. diff --git a/templates/reminder/base.tpl b/templates/reminder/base.tpl index f531cc0..efbf648 100644 --- a/templates/reminder/base.tpl +++ b/templates/reminder/base.tpl @@ -38,13 +38,13 @@ {$reminder->text()}

- + {icon name=add} M'inscrire - - + {icon name=delete} Ne pas m'inscrire - - + {icon name=cross} Décider plus tard {if $reminder->info()} diff --git a/templates/reminder/gapps.tpl b/templates/reminder/gapps.tpl index 5ae8f44..7304234 100644 --- a/templates/reminder/gapps.tpl +++ b/templates/reminder/gapps.tpl @@ -30,10 +30,10 @@ {icon name=add} M'inscrire - - + {icon name=delete} Ne pas m'inscrire - - + {icon name=cross} Décider plus tard - {icon name=information} En savoir plus diff --git a/templates/reminder/ml.tpl b/templates/reminder/ml.tpl index dbeb42b..e53b7d8 100644 --- a/templates/reminder/ml.tpl +++ b/templates/reminder/ml.tpl @@ -41,10 +41,10 @@ diff --git a/templates/reminder/profile_update.tpl b/templates/reminder/profile_update.tpl index 9b17c41..c148cd7 100644 --- a/templates/reminder/profile_update.tpl +++ b/templates/reminder/profile_update.tpl @@ -37,7 +37,7 @@ {/if} -- 2.1.4