{**************************************************************************} {* *} {* Copyright (C) 2003-2014 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 *} {* *} {**************************************************************************} {assign var=prefname value="addresses[$i]"} {assign var=prefid value="addresses_$i"} {if !hasPerm('directory_private') && ($address.pub eq 'private') && !$new} {assign var=hiddenaddr value=true} {else} {assign var=hiddenaddr value=false} {/if} {include file="geoloc/form.address.tpl" prefname=$prefname prefid=$prefid address=$address id=$i hiddenaddr=$hiddenaddr} {if !$isMe}
{icon name=cross title="Supprimer l'adresse"}
Adresse n°{$i+1}{if $hiddenaddr} (masquée){/if}
{include file="include/flags.radio.tpl" name="`$prefname`[pub]" val=$address.pub mainField='addresses' mainId=$i subField='phones' subId=-1}
Adresse postale :
{$address.postalText|nl2br}
{else} {/if}
{if !t($isMe)}
{else}
{/if}
{foreach from=$address.phones key=t item=tel}
{include file="profile/phone.tpl" prefname="`$prefname`[phones]" prefid="`$prefid`_phones" telid=$t tel=$tel subField='phones' mainField='addresses' mainId=$i}
{/foreach} {if $address.phones|@count eq 0}
{include file="profile/phone.tpl" prefname="`$prefname`[phones]" prefid="`$prefid`_phones" telid=0 tel=0 subField='phones' mainField='addresses' mainId=$i}
{/if}
{* vim:set et sw=2 sts=2 sws=2 fenc=utf-8: *}