{**************************************************************************}
{* *}
-{* Copyright (C) 2003-2007 Polytechnique.org *}
+{* Copyright (C) 2003-2008 Polytechnique.org *}
{* http://opensource.polytechnique.org/ *}
{* *}
{* This program is free software; you can redistribute it and/or modify *}
{* *}
{**************************************************************************}
-{if $ajaxadr}
-<?xml version="1.0" encoding="utf-8"?>
-{/if}
{assign var=adpref value="addresses[$i]"}
{assign var=adid value="addresses_$i"}
<input type="hidden" name="{$adpref}[removed]" value="0"/>
<input type="hidden" name="{$adpref}[datemaj]" value="{$adr.datemaj}"/>
-<table class="bicol" style="margin-bottom: 1em">
+<table class="bicol" style="display: none; margin-bottom: 1em" id="{$adid}_grayed">
+ <tr>
+ <th class="grayed">
+ <div style="float: right">
+ <a href="javascript:restoreAddress('{$adid}', '{$adpref}')">{icon name=arrow_refresh title="Restaurer l'adresse"}</a>
+ </div>
+ Restaurer l'adresse n°{$i+1}
+ </th>
+ </tr>
+</table>
+<table class="bicol" style="margin-bottom: 1em" id="{$adid}">
<tr>
<th>
<div style="float: left">
</tr>
<tr>
<td>
- <div>{include file="include/flags.radio.tpl" name="`$adpref`[pub]" notable=true val=$adr.pub}</div>
+ <div style="margin-bottom: 0.2em" class="flags">
+ {include file="include/flags.radio.tpl" name="`$adpref`[pub]" val=$adr.pub}
+ </div>
<div style="clear: both"></div>
<div style="float: left">{include file="geoloc/form.address.tpl" name=$adpref id=$adid adr=$adr}</div>
- <div style="float: right">
+ <div style="float: left">
<div>
<input type="radio" name="{$adpref}[temporary]" id="{$adid}_temp_0" value="0"
{if !$adr.temporary}checked="checked"{/if} /><label for="{$adid}_temp_0">permanente</label>