From: Pascal Corpet Date: Wed, 12 Jan 2005 17:30:37 +0000 (+0000) Subject: separation de l'affichage d'une adresse pour eviter la duplication de code (2) X-Git-Tag: xorg/old~452 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=f9b9d0d200fa7ad47370a988b8bf87ef3f28b78f;p=platal.git separation de l'affichage d'une adresse pour eviter la duplication de code (2) git-archimport-id: opensource@polytechnique.org--2005/platal--mainline--0.9--patch-304 --- diff --git a/templates/geoloc/address.tpl b/templates/geoloc/address.tpl new file mode 100644 index 0000000..ae48a36 --- /dev/null +++ b/templates/geoloc/address.tpl @@ -0,0 +1,65 @@ +{*************************************************************************** + * Copyright (C) 2003-2004 Polytechnique.org * + * http://opensource.polytechnique.org/ * + * * + * This program is free software; you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation; either version 2 of the License, or * + * (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; if not, write to the Free Software * + * Foundation, Inc., * + * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * + ***************************************************************************} + + + {if $address.adr1 || $address.pays || $geoloc_address.ville || $address.tel || $address.fax || $address.mobile} +
+ {if $titre && ($address.adr1 || $address.ville || $address.pays)} + {if $titre_div} +
+ {$titre} +
+ {else} + {$titre}
+ {/if} + {/if} + {if $address.adr1}{$address.adr1}
{/if} + {if $address.adr2}{$address.adr2}
{/if} + {if $address.adr3}{$address.adr3}
{/if} + {if $address.ville}{$address.cp} {$address.ville}
{/if} + {if $address.pays} + {$address.pays}{if $address.region} ({$address.region}){/if} + {/if} + + {if $address.tel} +
+ Tél : + {$address.tel} +
+ {/if} + + {if $address.fax} +
+ Fax : + {$address.fax} +
+ {/if} + + {if $address.mobile} +
+ Mobile : + {$address.mobile} +
+ {/if} + +
+ {/if} + +{* vim:set et sw=2 sts=2 sws=2: *}