Closes #682: Add search in contact list
[platal.git] / templates / carnet / mescontacts.tpl
1 {**************************************************************************}
2 {*                                                                        *}
3 {*  Copyright (C) 2003-2007 Polytechnique.org                             *}
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
23
24
25 <h1>
26   Ma liste personnelle de contacts
27 </h1>
28
29 <form action="carnet/contacts" method="post">
30 <p>
31   Ajouter la personne suivante à ma liste de contacts (prenom.nom) :<br />
32   <input type="hidden" name="action" value="ajouter" />
33   <input type="text" name="user" size="20" maxlength="70" />&nbsp;
34   <input type="submit" value="Ajouter" />
35 </p>
36 </form>
37 <p>
38   Tu peux également rajouter des camarades dans tes contacts lors d'une recherche dans l'annuaire : 
39   il te suffit de cliquer sur l'icône {icon name=add} en face de son nom dans les résultats !
40 </p>  
41
42 {if $plset_count || $smarty.request.quick}
43 <p>
44 Pour récupérer ta liste de contacts dans un PDF imprimable :<br />
45 (attention, les photos font beaucoup grossir les fichiers !)
46 </p>
47 <ul>
48   <li>avec les photos :
49   [<a href="carnet/contacts/pdf/promo/photos/mescontacts.pdf" class='popup'><strong>tri par promo</strong></a>]
50   [<a href="carnet/contacts/pdf/photos/mescontacts.pdf" class='popup'><strong>tri par noms</strong></a>]
51   </li>
52   <li>sans les photos :
53   [<a href="carnet/contacts/pdf/promo/mescontacts.pdf" class='popup'><strong>tri par promo</strong></a>]
54   [<a href="carnet/contacts/pdf/mescontacts.pdf" class='popup'><strong>tri par noms</strong></a>]
55   </li>
56 </ul>
57
58 <p>
59   Tu peux télécharger des informations sur tes contacts :
60 </p>
61 <ul>
62   <li>
63     {icon name=calendar_view_day title='Anniversaires'} 
64     <a href="carnet/contacts/ical/{$smarty.session.forlife}/{$smarty.session.core_rss_hash}/anniv-x.ics">
65       Le calendrier des anniversaires
66     </a>
67   </li>
68   <li>
69     {icon name=vcard title='Carte de visite'} 
70     <a href="carnet/contacts/vcard/photos/MesContactsXorg.vcf">La carte de visite électronique</a>
71     (<a href="carnet/contacts/vcard/MesContactsXorg.vcf">sans les photos</a>)
72   </li>
73 </ul>
74
75 <p>
76   <div style="float: right">
77     <form action="carnet/contacts/search#plset_content" method="get">
78       <input type="text" size="30" name="quick" class="quick_search"
79              value="{$smarty.request.quick|default:'recherche dans tes contacts'}"
80              onfocus="if (this.value == 'recherche dans tes contacts') this.value=''"
81              onblur="if (this.value == '') this.value='recherche dans tes contacts'"/>
82       <a href="carnet/contacts">{icon name=cross title='Annuler la recherche'}</a>
83     </form>
84   </div>
85   Tu peux faire une recherche sur tes contacts :
86 </p>
87
88 {include file="core/plset.tpl"}
89
90 {/if}
91
92 {* vim:set et sw=2 sts=2 sws=2 enc=utf-8: *}