From 44c7ed76cd23ec881941e2f54da59abde7b44440 Mon Sep 17 00:00:00 2001 From: =?utf8?q?St=C3=A9phane=20Jacob?= Date: Mon, 6 Jul 2009 18:07:20 +0200 Subject: [PATCH] The address of a dead person is her last address (Closes #951). --- ChangeLog | 1 + templates/include/minifiche.tpl | 2 +- templates/profile/profile.tpl | 13 +++++++++---- 3 files changed, 11 insertions(+), 5 deletions(-) diff --git a/ChangeLog b/ChangeLog index e52aa43..6355b1e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -20,6 +20,7 @@ Bug/Wish: - #972: Adds a legend on the email redirection page -JAC * Profile: + - #951: The address of a dead person is her last address -JAC - #958: Fix the address in the professionnal vcard -JAC - #970: Shows a confirmation message when the profile is modified -JAC diff --git a/templates/include/minifiche.tpl b/templates/include/minifiche.tpl index fa4535b..511e661 100644 --- a/templates/include/minifiche.tpl +++ b/templates/include/minifiche.tpl @@ -102,7 +102,7 @@ {$c.web} {/if} - {if $c.countrytxt || $c.city} + {if ($c.countrytxt || $c.city) && !$c.dcd} Géographie : {$c.city}{if $c.city && $c.countrytxt}, {/if}{$c.countrytxt} diff --git a/templates/profile/profile.tpl b/templates/profile/profile.tpl index e6a0cd3..6128b54 100644 --- a/templates/profile/profile.tpl +++ b/templates/profile/profile.tpl @@ -113,7 +113,7 @@ function chgMainWinLoc(strPage) {/if} {if $x.mobile}
- Mobile : {$x.mobile} + {if $x.dcd}Dernier m{else}M{/if}obile : {$x.mobile}
{/if}
@@ -138,6 +138,11 @@ function chgMainWinLoc(strPage) {if $x.adr}

Contact :

+ {if $x.dcd} + {assign var=address_name value="Dernière adresse"} + {else} + {assign var=address_name value="Adresse"} + {/if} {foreach from=$x.adr item="address" name=adresses} {if $smarty.foreach.adresses.iteration is even} {assign var=pos value="right"} @@ -145,13 +150,13 @@ function chgMainWinLoc(strPage) {assign var=pos value="left"} {/if} {if $address.active} - {include file="geoloc/address.tpl" address=$address titre_div=true titre="Mon adresse actuelle :" + {include file="geoloc/address.tpl" address=$address titre_div=true titre=$address_name|@cat:" actuelle :" for="`$x.prenom` `$x.nom`" pos=$pos} {elseif $address.secondaire} - {include file="geoloc/address.tpl" address=$address titre_div=true titre="Adresse secondaire :" + {include file="geoloc/address.tpl" address=$address titre_div=true titre=$address_name|@cat:" secondaire :" for="`$x.prenom` `$x.nom`" pos=$pos} {else} - {include file="geoloc/address.tpl" address=$address titre_div=true titre="Adresse principale :" + {include file="geoloc/address.tpl" address=$address titre_div=true titre=$address_name|@cat:" principale :" for="`$x.prenom` `$x.nom`" pos=$pos} {/if} {if $smarty.foreach.adresses.iteration is even}
{/if} -- 2.1.4