Merge commit 'origin/master' into account
[platal.git] / templates / carnet / mescontacts.tpl
index d6d2dff..64a068c 100644 (file)
@@ -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  *}
     <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>]