Merge commit 'origin/master' into account
[platal.git] / templates / carnet / mescontacts.tpl
index 06d7647..64a068c 100644 (file)
@@ -1,6 +1,6 @@
 {**************************************************************************}
 {*                                                                        *}
-{*  Copyright (C) 2003-2008 Polytechnique.org                             *}
+{*  Copyright (C) 2003-2010 Polytechnique.org                             *}
 {*  http://opensource.polytechnique.org/                                  *}
 {*                                                                        *}
 {*  This program is free software; you can redistribute it and/or modify  *}
     <input type="hidden" name="action" value="ajouter" />
     <input type="text" size="30" name="user" class="quick_search"
            value="ajouter prenom.nom"
-           onfocus="if (this.value == 'ajouter prenom.nom') this.value=''"
+           onfocus="if (this.value == 'ajouter prenom.nom') this.value=''; $('#add_button').show()"
            onblur="if (this.value == '') this.value='ajouter prenom.nom'"
            size="20" maxlength="70"/>
-    <a href="" onclick="document.getElementById('add_user').submit(); return false;">
+    <a id="add_button" href="" style="display: none" onclick="document.getElementById('add_user').submit(); return false;">
       {icon name=add title="Ajouter la personne"}
     </a>
     </div>
   Sur la page de résultats d'une recherche, tu peux ajouter un contact en cliquant sur {icon name=add}.
 </p>
 
+{if $plset_count || $smarty.request.quick}
 <p>
   Tu peux télécharger des informations sur tes contacts&nbsp;:
 </p>
-{if $plset_count || $smarty.request.quick}
 <ul>
   <li>Tes contacts en PDF, sans les photos&nbsp;:
   [<a href="carnet/contacts/pdf/promo/mescontacts.pdf" class='popup'><strong>tri par promo</strong></a>]
@@ -64,7 +64,7 @@
   </li>
   <li>
     {icon name=calendar_view_day title='Anniversaires'} 
-    <a href="carnet/contacts/ical/{$smarty.session.forlife}/{$smarty.session.core_rss_hash}/anniv-x.ics" title="Anniversaires">
+    <a href="carnet/contacts/ical/{$smarty.session.hruid}/{$smarty.session.token}/anniv-x.ics" title="Anniversaires">
       Le calendrier des anniversaires
     </a>
   </li>
@@ -90,7 +90,7 @@
   Rechercher dans tes contacts&nbsp;:
 </p>
 
-{include file="core/plset.tpl"}
+{include core=plset.tpl}
 
 {/if}