From: Stéphane Jacob Date: Mon, 6 Jul 2009 16:07:20 +0000 (+0200) Subject: The address of a dead person is her last address (Closes #951). X-Git-Tag: xorg/0.10.1~22 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=44c7ed76cd23ec881941e2f54da59abde7b44440;p=platal.git The address of a dead person is her last address (Closes #951). --- 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}