Don't display addresses marked as 'private' when directory_private
[platal.git] / templates / profile / jobs.job.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
3ac45f10 23<script type="text/javascript" src="javascript/jquery.jstree.js"></script>
541e8d03 24{assign var=jobid value="job_"|cat:$i}
37d44b3b 25{assign var=jobpref value="jobs[`$i`]"}
b814a8b8
SJ
26{assign var=sector_text value="sector_text_"|cat:$i}
27{assign var=sector value="sector_"|cat:$i}
28{assign var=entreprise value="entreprise_"|cat:$i}
2dcac0f5
FB
29<div id="{$jobid}">
30 <input type="hidden" name="{$jobpref}[removed]" value="0" />
31 <input type="hidden" name="{$jobpref}[new]" value="{if $new}1{else}0{/if}" />
afaa2cc7
SJ
32 <input type="hidden" name="{$jobpref}[id]" value="{$i}" />
33 <input type="hidden" name="{$jobpref}[jobid]" value="{$job.jobid}" />
2dcac0f5
FB
34 <table id="{$jobid}_grayed" class="bicol" style="display: none; margin-bottom: 1em">
35 <tr>
36 <th class="grayed">
37 <div style="float: right">
9fce7016 38 <a href="javascript:restoreJob('{$jobid}','{$jobpref}')">{icon name=arrow_refresh title="Restaure l'emploi"}</a>
77842972 39 </div>
37d44b3b 40 Restaurer l'entreprise n°{$i+1}&nbsp;:&nbsp;<span id="{$jobid}_grayed_name"></span>
2dcac0f5
FB
41 </th>
42 </tr>
43 </table>
afaa2cc7 44
2dcac0f5
FB
45 <table id="{$jobid}_cont" class="bicol" summary="Entreprise n°{$i+1}" style="margin-bottom: 1em">
46 <tr>
47 <th colspan="2" style="text-align: right">
48 <div class="flags" style="float: left; text-align: left">
ee12da4e 49 {include file="include/flags.radio.tpl" name="`$jobpref`[pub]" val=$job.pub}
77842972 50 </div>
4f06d57b 51 Entreprise n°{$i+1}&nbsp;:
b814a8b8 52 {if $job.tmp_name}{$job.tmp_name} <small>(en cours de validation)</small>{else}
d1d01361 53 <input type="text" class="enterpriseName{if $job.name_error} error{/if}" size="35" maxlength="100"
c7139c07 54 name="{$jobpref}[name]" value="{$job.name}" />
b814a8b8 55 {/if}
9fce7016 56 <a href="javascript:removeJob('{$jobid}','{$jobpref}')">
4f06d57b
SJ
57 {icon name=cross title="Supprimer cet emploi"}
58 </a>
59 </th>
b814a8b8 60 </tr>
afaa2cc7 61 {if !$job.tmp_name && !$job.name}
b814a8b8
SJ
62 <tr class="{$entreprise}">
63 <td class="center" colspan="2">
64 <small>Si ton entreprise ne figure pas dans la liste,
65 <a href="javascript:addEntreprise({$i})">clique ici</a> et complète les informations la concernant.</small>
66 </td>
67 </tr>
b814a8b8
SJ
68 <tr class="{$entreprise}" style="display: none">
69 <td class="titre">Acronyme</td>
70 <td>
ea9cfc3e 71 <input type="text" size="35" maxlength="255" name="{$jobpref}[hq_acronym]" />
b814a8b8
SJ
72 </td>
73 </tr>
74 <tr class="{$entreprise}" style="display: none">
4f06d57b 75 <td class="titre">Page web</td>
b814a8b8 76 <td>
ea9cfc3e 77 <input type="text" size="35" maxlength="255" name="{$jobpref}[hq_url]" />
b814a8b8
SJ
78 </td>
79 </tr>
80 <tr class="{$entreprise}" style="display: none">
81 <td class="titre">Email de contact</td>
82 <td>
ea9cfc3e 83 <input type="text" maxlength="60" name="{$jobpref}[hq_email]" />
b814a8b8
SJ
84 </td>
85 </tr>
0bcc8717 86 <tr class="{$entreprise}" style="display: none">
ea9cfc3e
SJ
87 <td class="titre">Adresse du siège</td>
88 <td>
89 <textarea name="{$jobpref}[hq_address]" cols="30" rows="4"></textarea>
b814a8b8 90 </td>
0bcc8717 91 </tr>
b814a8b8
SJ
92 <tr class="{$entreprise}" style="display: none">
93 <td class="titre">Téléphone</td>
94 <td>
ea9cfc3e 95 <input type="text" maxlength="28" name="{$jobpref}[hq_fixed]" />
b814a8b8
SJ
96 </td>
97 </tr>
98 <tr class="{$entreprise}" style="display: none">
99 <td class="titre">Fax</td>
100 <td>
ea9cfc3e 101 <input type="text" maxlength="28" name="{$jobpref}[hq_fax]" />
37d44b3b 102 </td>
2dcac0f5 103 </tr>
ea9cfc3e 104 {/if}
c7139c07
SJ
105
106 <tr class="pair">
107 <td colspan="2" class="center" style="font-style: italic">Ta place dans l'entreprise</td>
108 </tr>
b814a8b8 109 <tr class="pair {$sector_text}">
3ac45f10
PC
110 <td class="titre">Mots-clefs</td>
111 <td class="job_terms">
112 <input type="text" class="term_search" size="35"/>
113 <a href="javascript:toggleJobTermsTree({$i})">{icon name="table" title="Tous les mots-clefs"}</a>
114 <script type="text/javascript">
115 /* <![CDATA[ */
116 $(function() {ldelim}
117 {foreach from=$job.terms item=term}
118 addJobTerm("{$i}", "{$term.jtid}", "{$term.full_name|replace:'"':'\\"'}");
119 {/foreach}
120 $('#job_{$i} .term_search').autocomplete(platal_baseurl + 'profile/jobterms',
121 {ldelim}
122 "formatItem" : displayJobTerm,
123 "extraParams" : {ldelim} "jobid" : "{$i}" {rdelim},
124 "width" : $('#job_{$i} .term_search').width()*2,
125 "onItemSelect" : selectJobTerm,
126 "matchSubset" : false
127 {rdelim});
128 {rdelim});
129 /* ]]> */
130 </script>
131 </td>
132 </tr>
133 <tr class="pair">
134 <td colspan="2" class="term_tree">
c7139c07
SJ
135 </td>
136 </tr>
c7139c07 137 <tr class="pair">
c7139c07
SJ
138 <td class="titre">Description</td>
139 <td>
140 <input type="text" size="35" maxlength="120" {if $job.description_error}class="error"{/if}
541e8d03 141 name="{$jobpref}[description]" value="{$job.description}" />
30c895be
SJ
142 </td>
143 </tr>
2dcac0f5 144 <tr class="pair">
0bcc8717
SJ
145 <td class="titre">Page&nbsp;perso</td>
146 <td>
541e8d03
SJ
147 <input type="text" size="35" maxlength="255" {if $job.w_rul}class="error"{/if}
148 name="{$jobpref}[w_url]" value="{$job.w_url}" />
0bcc8717
SJ
149 </td>
150 </tr>
151 <tr class="pair">
2dcac0f5
FB
152 <td colspan="2">
153 <div style="float: left">
154 <div class="titre">Adresse</div>
155 <div class="flags">
541e8d03 156 {include file="include/flags.radio.tpl" name="`$jobpref`[w_address][pub]" val=$job.w_address.pub}
2dcac0f5
FB
157 </div>
158 <div style="margin-top: 20px; clear: both">
541e8d03
SJ
159 {include file="geoloc/form.address.tpl" prefname="`$jobpref`[w_address]"
160 prefid=$jobid address=$job.w_address}
2dcac0f5 161 </div>
77842972 162 </div>
bde2be3b
GB
163 </td>
164 </tr>
0bcc8717
SJ
165 {include file="include/emails.combobox.tpl" name=$jobpref|cat:'[w_email]' val=$job.w_email
166 class="pair" i=$i error=$job.w_email_error prefix="w_" pub=$job.w_email_pub id=$i}
bde2be3b
GB
167 <tr class="pair">
168 <td colspan="2">
541e8d03
SJ
169 {foreach from=$job.w_phone key=t item=phone}
170 <div id="{"`$jobid`_w_phone_`$t`"}" style="clear: both">
171 {include file="profile/phone.tpl" prefname="`$jobpref`[w_phone]" prefid="`$jobid`_w_phone" telid=$t tel=$phone}
bde2be3b
GB
172 </div>
173 {/foreach}
541e8d03
SJ
174 {if $job.w_phone|@count eq 0}
175 <div id="{"`$jobid`_w_phone_0"}" style="clear: both">
176 {include file="profile/phone.tpl" prefname="`$jobpref`[w_phone]" prefid="`$jobid`_w_phone" telid=0 tel=0}
2dcac0f5 177 </div>
bde2be3b 178 {/if}
541e8d03 179 <div id="{$jobid}_w_phone_add" class="center" style="clear: both; padding-top: 4px;">
9fce7016 180 <a href="javascript:addTel('{$jobid}_w_phone','{$jobpref}[w_phone]')">
bde2be3b
GB
181 {icon name=add title="Ajouter un numéro de téléphone"} Ajouter un numéro de téléphone
182 </a>
2dcac0f5
FB
183 </div>
184 </td>
185 </tr>
186 </table>
187</div>
0337d704 188
a7de4ef7 189{* vim:set et sw=2 sts=2 sws=2 enc=utf-8: *}