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