Hide 'always-private' fields when profile is edited by an AX secretary.
[platal.git] / templates / profile / jobs.tpl
CommitLineData
3950bc21
FB
1{**************************************************************************}
2{* *}
9f5bd98e 3{* Copyright (C) 2003-2010 Polytechnique.org *}
3950bc21
FB
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
c732df02 23{javascript name=jquery.jstree}
3ac45f10 24{javascript name=jobtermstree}
37d44b3b 25{foreach from=$jobs item=job key=i}
2dcac0f5 26{include file="profile/jobs.job.tpl" i=$i job=$job new=false}
3950bc21
FB
27{/foreach}
28{if $jobs|@count eq 0}
2dcac0f5 29{include file="profile/jobs.job.tpl" i=0 job=0 new=true}
3950bc21
FB
30{/if}
31
32<div id="add_job" class="center">
33 <a href="javascript:addJob()">
34 {icon name=add title="Ajouter un emploi"} Ajouter un emploi
35 </a>
72e96bc0 36 <br/><br/>
3950bc21
FB
37</div>
38
72e96bc0
SJ
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 <select name="corps[original]">
52 {foreach from=$original_corps item=o_corps}
53 <option value="{$o_corps.id}" {if $o_corps.id eq $corps.original}selected="selected"{/if}>{$o_corps.name}</option>
54 {/foreach}
55 </select>
56 </td>
57 </tr>
58 <tr>
59 <td class="titre">Corps actuel</td>
60 <td>
61 <select name="corps[current]">
62 {foreach from=$current_corps item=c_corps}
63 <option value="{$c_corps.id}" {if $c_corps.id eq $corps.current}selected="selected"{/if}>{$c_corps.name}</option>
64 {/foreach}
65 </select>
66 </td>
67 </tr>
68 <tr>
69 <td class="titre">Grade</td>
70 <td>
71 <select name="corps[rank]">
72 {foreach from=$corps_rank item=rank}
73 <option value="{$rank.id}" {if $rank.id eq $corps.rank}selected="selected"{/if}>{$rank.name}</option>
74 {/foreach}
75 </select>
76 </td>
77 </tr>
78</table>
79
b539d596 80{if $smarty.session.user->checkPerms('directory_private')}
2dcac0f5 81<table class="bicol" summary="CV" style="margin-top: 1.5em">
3950bc21
FB
82 <tr>
83 <th>
0c6cbd63 84 <div class="flags" style="float: left">
ee12da4e
FB
85 <input type="checkbox" name="accesCV" checked="checked" disabled="disabled" />
86 {icon name="flag_red" title="privé"}
0c6cbd63 87 </div>
2dcac0f5 88 Curriculum vitae
3950bc21
FB
89 </th>
90 </tr>
91 <tr>
92 <td>
93 <div style="float: left; width: 25%">
0c6cbd63 94 <div class="smaller" style="margin-top: 40px">
3950bc21
FB
95 <a href="Xorg/FAQ?display=light#cv" class="popup_800x480">
96 {icon name="lightbulb" title="Astuce"}Comment remplir mon CV&nbsp;?
97 </a><br />
98 <a href="wiki_help" class="popup3">
99 {icon name=information title="Syntaxe wiki"} Voir la syntaxe wiki
100 </a>
101 <div class="center">
102 <input type="submit" name="preview" value="Aperçu du CV"
103 onclick="previewWiki('cv', 'cv_preview', true, 'cv_preview'); return false;" />
104 </div>
105 </div>
106 </div>
107 <div style="float: right">
108 <div id="cv_preview" style="display: none"></div>
37d44b3b 109 <textarea name="cv" {if $errors.cv}class="error"{/if} id="cv" rows="15" cols="55">{$cv}</textarea>
3950bc21
FB
110 </div>
111 </td>
112 </tr>
113</table>
b539d596 114{/if}
3950bc21
FB
115
116{* vim:set et sw=2 sts=2 sws=2 enc=utf-8: *}