0fe683d8c9132b413c715994915b7a3254a3e505
[platal.git] / templates / profile / fiche_referent.tpl
1 {**************************************************************************}
2 {*                                                                        *}
3 {*  Copyright (C) 2003-2011 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 <script type="text/javascript">
24   $($.closeOnEsc);
25 </script>
26
27 {assign var=terms value=$profile->getMentoringTerms()}
28 {assign var=countries value=$profile->getMentoringCountries()}
29 <div id="fiche">
30 <div id="fiche_referent">
31   <div id="fiche_identite">
32     <div class="civilite">
33       <strong>{$profile->fullName()}</strong><br />
34       <span>{$profile->promo()}&nbsp;-&nbsp;</span> <a href="mailto:{$profile->displayEmail()}">{$profile->displayEmail()}</a>
35     </div>
36   </div>
37   <div class="spacer"></div>
38
39   {if $profile->mentor_expertise != '' || $terms|count || $countries|count }
40   <div id="part">
41     <h2>Informations de référent&nbsp;:</h2>
42     {if $profile->mentor_expertise}
43     <div class="rubrique_referent">
44       <em>Expertise&nbsp;: </em><br />
45       <span>{$profile->mentor_expertise|nl2br}</span>
46     </div>
47     {/if}
48     {if $terms|count}
49     <div class="rubrique_referent">
50       <em>Mots-clefs&nbsp;:</em><br />
51       <ul>
52         {foreach from=$terms item="term"}
53         <li>{$term->full_name}</li>
54         {/foreach}
55       </ul>
56     </div>
57     {/if}
58     {if $countries|count}
59     <div class="rubrique_referent">
60       <em>Pays&nbsp;:</em>
61       <ul>
62         {foreach from=$pays item="pays_i"}
63         <li>{$pays_i}</li>
64         {/foreach}
65       </ul>
66     </div>
67     {/if}
68     <div class="spacer">&nbsp;</div>
69   </div>
70   {/if}
71
72   {assign var=jobs value=$profile->getJobs(2)}
73   <div class="part">
74     {foreach from=$jobs item="job"}
75       <h2>{$job->company->name}</h2>
76       {include file="include/emploi.tpl" job=$job}
77       {if $job->address}
78         {include file="geoloc/address.tpl" address=$job->address titre="Adresse&nbsp;: " for=$job->company->name phones=$job->phones pos="left"}
79       {elseif $job->phones}
80         {display_phones tels=$job->phones}
81       {/if}
82       <div class="spacer">&nbsp;</div>
83     {/foreach}
84   </div>
85
86   {if $profile->cv}
87   <div class="part">
88     <h2>Curriculum Vitae&nbsp;: </h2>
89     <div style="padding: 0 2ex">{$profile->cv|miniwiki:title|smarty:nodefaults}</div>
90   </div>
91   {/if}
92
93
94   <div class="spacer"></div>
95 </div>
96 </div>
97 {* vim:set et sw=2 sts=2 sws=2 enc=utf-8: *}