Hum, do not need to show the new value if it is unchanged
authorx2003bruneau <x2003bruneau@839d8a87-29fc-0310-9880-83ba4fa771e5>
Fri, 25 May 2007 20:04:22 +0000 (20:04 +0000)
committerx2003bruneau <x2003bruneau@839d8a87-29fc-0310-9880-83ba4fa771e5>
Fri, 25 May 2007 20:04:22 +0000 (20:04 +0000)
 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

templates/admin/mail_intervention.tpl

index 5344930..d1e423b 100644 (file)
@@ -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}