Commit | Line | Data |
---|---|---|
0337d704 | 1 | {**************************************************************************} |
2 | {* *} | |
5e1513f6 | 3 | {* Copyright (C) 2003-2011 Polytechnique.org *} |
0337d704 | 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 | ||
eb54852e | 23 | {if t($address.geocodedText)} |
42568423 SJ |
24 | <div class="erreur center {$prefid}_geoloc"> |
25 | Le géocodage n'a pas donné un résultat certain ! Tu as le choix entre : | |
26 | </div> | |
27 | <div class="{$prefid}_geoloc"> | |
28 | <ul> | |
9fce7016 | 29 | <li><a href="javascript:validGeoloc('{$prefid}','{$id}',2)" |
42568423 SJ |
30 | title="Garder le texte de l'adresse que tu as renseignée tout en utilisant les informations trouvées par le géocodage pour te localiser sur le planisphère et dans lors d'une recherche dans l'annuaire."> |
31 | le texte de ton adresse localisé à l'endroit que nous te suggérons</a>.</li> | |
eb54852e SJ |
32 | <li><a href="javascript:validGeoloc('{$prefid}','{$id}',0)" style="color: red">ton adresse (à gauche)</a> ;</li> |
33 | <li><a href="javascript:validGeoloc('{$prefid}','{$id}',1)" style="color: green">notre suggestion (à droite)</a> ;</li> | |
42568423 | 34 | </ul> |
0b14f91d | 35 | </div> |
0b14f91d | 36 | {/if} |
041a5cec | 37 | |
32346370 | 38 | <div> |
541e8d03 | 39 | <textarea name="{$prefname}[text]" cols="30" rows="4" onkeyup="addressChanged('{$prefid}')" |
eb54852e SJ |
40 | {if t($address.geocodedText)}class="error"{/if}>{$address.text}</textarea> |
41 | {if t($address.geocodedText)} | |
42 | <textarea cols="30" rows="4" class="valid {$prefid}_geoloc">{$address.geocodedText}</textarea> | |
0b14f91d | 43 | {/if} |
32346370 | 44 | </div> |
4fad1180 | 45 | {if !$isMe}<div><small><strong>Adress postale :</strong><br />{$address.postalText|nl2br}</small></div>{/if} |
eb54852e SJ |
46 | {if t($address.geocodedText)} |
47 | <input type="hidden" name="{$prefname}[geocodeChosen]" value="1" /> | |
48 | <input type="hidden" name="{$prefname}[geocodedText]" value="{$address.geocodedText}" /> | |
041a5cec | 49 | {/if} |
041a5cec | 50 | <input type="hidden" name="{$prefname}[accuracy]" value="{$address.accuracy}" /> |
6ee948c2 | 51 | <input type="hidden" name="{$prefname}[postalText]" value="{$address.postalText}" /> |
041a5cec SJ |
52 | <input type="hidden" name="{$prefname}[postalCode]" value="{$address.postalCode}" /> |
53 | <input type="hidden" name="{$prefname}[administrativeAreaId]" value="{$address.administrativeAreaId}" /> | |
54 | <input type="hidden" name="{$prefname}[subAdministrativeAreaId]" value="{$address.subAdministrativeAreaId}" /> | |
041a5cec SJ |
55 | <input type="hidden" name="{$prefname}[localityId]" value="{$address.localityId}" /> |
56 | <input type="hidden" name="{$prefname}[countryId]" value="{$address.countryId}" /> | |
57 | <input type="hidden" name="{$prefname}[latitude]" value="{$address.latitude}" /> | |
58 | <input type="hidden" name="{$prefname}[longitude]" value="{$address.longitude}" /> | |
59 | <input type="hidden" name="{$prefname}[north]" value="{$address.north}" /> | |
60 | <input type="hidden" name="{$prefname}[south]" value="{$address.south}" /> | |
61 | <input type="hidden" name="{$prefname}[east]" value="{$address.east}" /> | |
62 | <input type="hidden" name="{$prefname}[west]" value="{$address.west}" /> | |
041a5cec SJ |
63 | <input type="hidden" name="{$prefname}[changed]" value="0" /> |
64 | <input type="hidden" name="{$prefname}[removed]" value="0" /> | |
65 | ||
a7de4ef7 | 66 | {* vim:set et sw=2 sts=2 sws=2 enc=utf-8: *} |