Move profile/edit javascript in .js files and activate PlWizard eye-candies
[platal.git] / templates / profile / skill.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 <table class="bicol" style="margin-bottom: 1em">
24   <tr>
25     <th>
26       Compétences professionnelles
27     </th>
28   </tr>
29   <tr>
30     <td>
31       <div class="flags">
32         <span class="rouge"><input type="checkbox" name="accesX" checked="checked" disabled="disabled" /></span>
33         <span class="texte">privé</span>
34       </div>
35       <div>
36         <span class="titre">Domaine&nbsp;:</span>
37         <select name="competences_sel" onchange="updateSkill('competences')">
38           <option value=""></option>
39           {assign var=ingroup value=false}
40           {iterate from=$comp_list item=comp}
41           {if $comp.title}
42           {if $ingroup}</optgroup>{/if}
43           <optgroup label="{$comp.text_fr}">
44           {assign var=ingroup value=true}
45           {/if}
46           <option value="{$comp.id}">{$comp.text_fr}</option>
47           {/iterate}
48           {if $ingroup}</optgroup>{/if}
49         </select>
50         <span id="competences_add" style="display: none">
51           <a href="javascript:addSkill('competences')">{icon name=add title="Ajouter cette compétence"}</a>
52         </span>
53       </div>
54     </td>
55   </tr>
56   <tr class="pair">
57     <td id="competences">
58       {foreach from=$competences item=competence key=id}
59       {include file="profile/skill.skill.tpl" cat='competences' skill=$competence id=$id levels=$comp_level}
60       {/foreach}
61     </td>
62   </tr>
63 </table>
64
65 <table class="bicol">
66   <tr>
67     <th>Compétences linguistiques</th>
68   </tr>
69   <tr>
70     <td>
71       <div class="flags">
72         <span class="rouge"><input type="checkbox" name="accesX" checked="checked" disabled="disabled" /></span>
73         <span class="texte">privé</span>
74       </div>
75       <div>
76         <span class="titre">Domaine&nbsp;:</span>
77         <select name="langues_sel" onchange="updateSkill('langues')">
78           <option value=""></option>
79           {iterate from=$lang_list item=lang}
80           <option value="{$lang.id}">{$lang.langue_fr}</option>
81           {/iterate}
82         </select>
83         <span id="langues_add" style="display: none">
84           <a href="javascript:addSkill('langues')">{icon name=add title="Ajouter cette langue"}</a>
85         </span>
86       </div>
87     </td>
88   </tr>
89   <tr class="pair">
90     <td id="langues">
91       {foreach from=$langues item=langue key=id}
92       {include file="profile/skill.skill.tpl" cat='langues' skill=$langue id=$id levels=$lang_level}
93       {/foreach}
94     </td>
95   </tr>
96  </table>
97
98 {* vim:set et sw=2 sts=2 sws=2 enc=utf-8: *}