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