From: x2003bruneau Date: Fri, 25 May 2007 20:04:22 +0000 (+0000) Subject: Hum, do not need to show the new value if it is unchanged X-Git-Tag: xorg/0.9.15~281 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=88713115262e09e9a1cb42cc39c67b63247c1bbe;p=platal.git Hum, do not need to show the new value if it is unchanged mail_intervention.tpl | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) git-svn-id: svn+ssh://murphy/home/svn/platal/trunk@1835 839d8a87-29fc-0310-9880-83ba4fa771e5 --- diff --git a/templates/admin/mail_intervention.tpl b/templates/admin/mail_intervention.tpl index 5344930..d1e423b 100644 --- a/templates/admin/mail_intervention.tpl +++ b/templates/admin/mail_intervention.tpl @@ -30,12 +30,15 @@ Le profil du camarade {$old.prenom} {$old.nom} ({$old.promo}) a été édité.\\ Les champs suivants ont été changés : {foreach from=$old item=value key=field} {if $value neq $new[$field]} -* '''{$field}''' : {$value} -> {$new[$field]}{/if} +* '''{$field}''' : {$value} -> {$new[$field]} +{/if} {/foreach} -Valeur des différents champs : +Et ceux qui n'ont pas changé : {foreach from=$old item=value key=field} -* '''{$field}''' : {$value} -> {$new[$field]} +{if $value eq $new[$field]} +* '''{$field}''' : {$value} +{/if} {/foreach} {/if}