X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=templates%2Fprofile%2Fadresses.address.tpl;h=48319b603a2fa677695b02b2bddb1468f15bfe9c;hb=28c20b86be8b40cecba0d83080879f81c49e07ad;hp=8679831baddd036a69d9b2b3a6dc825760c027c1;hpb=ecf2b474289f94932ff60ab18674610979d0e0db;p=platal.git diff --git a/templates/profile/adresses.address.tpl b/templates/profile/adresses.address.tpl index 8679831..48319b6 100644 --- a/templates/profile/adresses.address.tpl +++ b/templates/profile/adresses.address.tpl @@ -1,6 +1,6 @@ {**************************************************************************} {* *} -{* Copyright (C) 2003-2009 Polytechnique.org *} +{* Copyright (C) 2003-2010 Polytechnique.org *} {* http://opensource.polytechnique.org/ *} {* *} {* This program is free software; you can redistribute it and/or modify *} @@ -20,30 +20,32 @@ {* *} {**************************************************************************} -{assign var=adpref value="addresses[$i]"} -{assign var=adid value="addresses_$i"} - - - +{assign var=prefname value="addresses[$i]"} +{assign var=prefid value="addresses_$i"} + - +
@@ -51,45 +53,68 @@
- - +
- {icon name=cross title="Supprimer l'adresse"} + + {icon name=cross title="Supprimer l'adresse"} +
Adresse n°{$i+1}
- {include file="include/flags.radio.tpl" name="`$adpref`[pub]" val=$adr.pub} + {include file="include/flags.radio.tpl" name="`$prefname`[pub]" val=$address.pub}
-
{include file="geoloc/form.address.tpl" name=$adpref id=$adid adr=$adr}
+ {include file="geoloc/form.address.tpl" prefname=$prefname prefid=$prefid address=$address id=$i} +
+
+
+ + +
- - + +
- - +
- - +
- {foreach from=$adr.tel key=t item=tel} -
- {include file="profile/adresses.tel.tpl" t=$t tel=$tel} -
+ {foreach from=$address.tel key=t item=tel} +
+ {include file="profile/phone.tpl" prefname="`$prefname`[tel]" + prefid="`$prefid`_tel" telid=$t tel=$tel} +
{/foreach} - {if $adr.tel|@count eq 0} -
- {include file="profile/adresses.tel.tpl" t=0 tel=0} -
+ {if $address.tel|@count eq 0} +
+ {include file="profile/phone.tpl" prefname="`$prefname`[tel]" prefid="`$prefid`_tel" telid=0 tel=0} +
{/if} -