09f0a89f2b7eb07562c5022f4b89894347e569d1
[platal.git] / templates / profile / jobs.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 {javascript name=jquery.jstree}
24 {javascript name=jobtermstree}
25 {foreach from=$jobs item=job key=i}
26 {include file="profile/jobs.job.tpl" i=$i job=$job new=false}
27 {/foreach}
28 {if $jobs|@count eq 0}
29 {include file="profile/jobs.job.tpl" i=0 job=0 new=true}
30 {/if}
31
32 <div id="add_job" class="center">
33   <a href="javascript:addJob({$profile->id()})">
34     {icon name=add title="Ajouter un emploi"} Ajouter un emploi
35   </a>
36   <br/><br/>
37 </div>
38
39 <table class="bicol" style="margin-bottom: 1em" summary="Corps">
40   <tr>
41     <th colspan="2">
42       <div class="flags" style="float: left; text-align: left">
43         {include file="include/flags.radio.tpl" name="corps[pub]" val=$corps.pub}
44       </div>
45       Corps
46     </th>
47   </tr>
48   <tr>
49     <td class="titre">Corps d'origine</td>
50     <td>
51     {if $isMe}
52       {$corps.originalText}
53       <input type="hidden" name="corps[original]" value="{$corps.original}" />
54       <input type="hidden" name="corps[originalText]" value="{$corps.originalText}" />
55     {else}
56       <select name="corps[original]">
57         {foreach from=$original_corps item=o_corps}
58         <option value="{$o_corps.id}" {if $o_corps.id eq $corps.original}selected="selected"{/if}>{$o_corps.name}</option>
59         {/foreach}
60       </select>
61       <input type="hidden" name="corps[originalText]" value="{$corps.originalText}" />
62     {/if}
63     </td>
64   </tr>
65   <tr>
66     <td class="titre">Corps actuel</td>
67     <td>
68       <select name="corps[current]">
69         {foreach from=$current_corps item=c_corps}
70         <option value="{$c_corps.id}" {if $c_corps.id eq $corps.current}selected="selected"{/if}>{$c_corps.name}</option>
71         {/foreach}
72       </select>
73     </td>
74   </tr>
75   <tr>
76     <td class="titre">Grade</td>
77     <td>
78       <select name="corps[rank]">
79         {foreach from=$corps_rank item=rank}
80         <option value="{$rank.id}" {if $rank.id eq $corps.rank}selected="selected"{/if}>{$rank.name}</option>
81         {/foreach}
82       </select>
83     </td>
84   </tr>
85 </table>
86
87 {if $smarty.session.user->checkPerms('directory_private')}
88 <table class="bicol" summary="CV" style="margin-top: 1.5em">
89   <tr>
90     <th>
91       <div class="flags" style="float: left">
92         <input type="checkbox" name="accesCV" checked="checked" disabled="disabled" />
93         {icon name="flag_red" title="privé"}
94       </div>
95       Curriculum vitae
96     </th>
97   </tr>
98   <tr>
99     <td>
100       <div style="float: left; width: 25%">
101         <div class="smaller" style="margin-top: 40px">
102           <a href="Xorg/FAQ?display=light#cv" class="popup_800x480">
103             {icon name="lightbulb" title="Astuce"}Comment remplir mon CV&nbsp;?
104           </a><br />
105           <a href="wiki_help" class="popup3">
106             {icon name=information title="Syntaxe wiki"} Voir la syntaxe wiki
107           </a>
108           <div class="center">
109             <input type="submit" name="preview" value="Aperçu du CV"
110                    onclick="previewWiki('cv',  'cv_preview', true, 'cv_preview'); return false;" />
111           </div>
112         </div>
113       </div>
114       <div style="float: right">
115         <div id="cv_preview" style="display: none"></div>
116         <textarea name="cv" {if $errors.cv}class="error"{/if} id="cv" rows="15" cols="55">{$cv}</textarea>
117       </div>
118     </td>
119   </tr>
120 </table>
121 {/if}
122
123 {* vim:set et sw=2 sts=2 sws=2 enc=utf-8: *}