Merge branch 'master' into fusionax
[platal.git] / templates / profile / adresses.address.tpl
CommitLineData
c6a7beb2
FB
1{**************************************************************************}
2{* *}
179afa7f 3{* Copyright (C) 2003-2008 Polytechnique.org *}
c6a7beb2
FB
4{* http://opensource.polytechnique.org/ *}
5{* *}
6{* This program is free software; you can redistribute it and/or modify *}
7{* it under the terms of the GNU General Public License as published by *}
8{* the Free Software Foundation; either version 2 of the License, or *}
9{* (at your option) any later version. *}
10{* *}
11{* This program is distributed in the hope that it will be useful, *}
12{* but WITHOUT ANY WARRANTY; without even the implied warranty of *}
13{* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *}
14{* GNU General Public License for more details. *}
15{* *}
16{* You should have received a copy of the GNU General Public License *}
17{* along with this program; if not, write to the Free Software *}
18{* Foundation, Inc., *}
19{* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA *}
20{* *}
21{**************************************************************************}
22
c6a7beb2
FB
23{assign var=adpref value="addresses[$i]"}
24{assign var=adid value="addresses_$i"}
25<input type="hidden" name="{$adpref}[removed]" value="0"/>
26<input type="hidden" name="{$adpref}[datemaj]" value="{$adr.datemaj}"/>
9a1cb883
FB
27<table class="bicol" style="display: none; margin-bottom: 1em" id="{$adid}_grayed">
28 <tr>
29 <th class="grayed">
30 <div style="float: right">
31 <a href="javascript:restoreAddress('{$adid}', '{$adpref}')">{icon name=arrow_refresh title="Restaurer l'adresse"}</a>
32 </div>
33 Restaurer l'adresse n°{$i+1}
34 </th>
35 </tr>
36</table>
37<table class="bicol" style="margin-bottom: 1em" id="{$adid}">
c6a7beb2
FB
38 <tr>
39 <th>
40 <div style="float: left">
41 <input name="{$adpref}[current]" type="radio" value="1" {if $adr.current}checked="checked"{/if}
42 id="{$adid}_current" onchange="checkCurrentAddress(this); return true" />
43 <label for="{$adid}_current" class="smaller" style="font-weight: normal">actuelle</label>
44 </div>
45 <div style="float: right">
46 <a href="javascript:removeAddress('{$adid}', '{$adpref}')">{icon name=cross title="Supprimer l'adresse"}</a>
47 </div>
48 Adresse n°{$i+1}
49 </th>
50 </tr>
51 <tr>
52 <td>
2dcac0f5 53 <div style="margin-bottom: 0.2em" class="flags">
ee12da4e 54 {include file="include/flags.radio.tpl" name="`$adpref`[pub]" val=$adr.pub}
92412b28 55 </div>
c6a7beb2
FB
56 <div style="clear: both"></div>
57 <div style="float: left">{include file="geoloc/form.address.tpl" name=$adpref id=$adid adr=$adr}</div>
32346370 58 <div style="float: left">
c6a7beb2
FB
59 <div>
60 <input type="radio" name="{$adpref}[temporary]" id="{$adid}_temp_0" value="0"
61 {if !$adr.temporary}checked="checked"{/if} /><label for="{$adid}_temp_0">permanente</label>
62 <input type="radio" name="{$adpref}[temporary]" id="{$adid}_temp_1" value="1"
63 {if $adr.temporary}checked="checked"{/if} /><label for="{$adid}_temp_1">temporaire</label>
64 </div>
65 <div>
66 <input type="radio" name="{$adpref}[secondaire]" id="{$adid}_sec_0" value="0"
67 {if !$adr.secondaire}checked="checked"{/if} /><label for="{$adid}_sec_0">ma résidence principale</label>
68 <input type="radio" name="{$adpref}[secondaire]" id="{$adid}_sec_1" value="1"
69 {if $adr.secondaire}checked="checked"{/if} /><label for="{$adid}_sec_1">une résidence secondaire</label>
70 </div>
71 <div>
72 <input type="checkbox" name="{$adpref}[mail]" id="{$adid}_mail"
73 {if $adr.mail}checked="checked"{/if} />
74 <label for="{$adid}_mail">on peut m'y envoyer du courrier par la poste</label>
75 </div>
76 </div>
77 </td>
78 </tr>
79 <tr class="pair">
80 <td>
81 {foreach from=$adr.tel key=t item=tel}
82 <div id="{"`$adid`_tel_`$t`"}" style="clear: both">
83 {include file="profile/adresses.tel.tpl" t=$t tel=$tel}
84 </div>
85 {/foreach}
86 {if $adr.tel|@count eq 0}
87 <div id="{"`$adid`_tel_0"}" style="clear: both">
88 {include file="profile/adresses.tel.tpl" t=0 tel=0}
89 </div>
90 {/if}
91 <div id="{$adid}_add_tel" class="center" style="clear: both">
92 <a href="javascript:addTel({$i})">
93 {icon name=add title="Ajouter un numéro de téléphone"} Ajouter un numéro de téléphone
94 </a>
95 </div>
96 </td>
97 </tr>
98</table>
99
100{* vim:set et sw=2 sts=2 sws=2 enc=utf-8: *}