Commit | Line | Data |
---|---|---|
0337d704 | 1 | {**************************************************************************} |
2 | {* *} | |
179afa7f | 3 | {* Copyright (C) 2003-2008 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 | ||
77842972 | 23 | {assign var=jobid value="job_`$i`"} |
37d44b3b | 24 | {assign var=jobpref value="jobs[`$i`]"} |
b814a8b8 SJ |
25 | {assign var=sector_text value="sector_text_"|cat:$i} |
26 | {assign var=sector value="sector_"|cat:$i} | |
27 | {assign var=entreprise value="entreprise_"|cat:$i} | |
2dcac0f5 FB |
28 | <div id="{$jobid}"> |
29 | <input type="hidden" name="{$jobpref}[removed]" value="0" /> | |
30 | <input type="hidden" name="{$jobpref}[new]" value="{if $new}1{else}0{/if}" /> | |
31 | <table id="{$jobid}_grayed" class="bicol" style="display: none; margin-bottom: 1em"> | |
32 | <tr> | |
33 | <th class="grayed"> | |
34 | <div style="float: right"> | |
35 | <a href="javascript:restoreJob('{$jobid}', '{$jobpref}')">{icon name=arrow_refresh title="Restaure l'emploi"}</a> | |
77842972 | 36 | </div> |
37d44b3b | 37 | Restaurer l'entreprise n°{$i+1} : <span id="{$jobid}_grayed_name"></span> |
2dcac0f5 FB |
38 | </th> |
39 | </tr> | |
40 | </table> | |
41 | <table id="{$jobid}_cont" class="bicol" summary="Entreprise n°{$i+1}" style="margin-bottom: 1em"> | |
42 | <tr> | |
43 | <th colspan="2" style="text-align: right"> | |
44 | <div class="flags" style="float: left; text-align: left"> | |
ee12da4e | 45 | {include file="include/flags.radio.tpl" name="`$jobpref`[pub]" val=$job.pub} |
77842972 | 46 | </div> |
c7139c07 | 47 | Entreprise n°{$i+1} |
2dcac0f5 FB |
48 | <a href="javascript:removeJob('{$jobid}', '{$jobpref}')"> |
49 | {icon name=cross title="Supprimer cet emploi"} | |
50 | </a> | |
51 | </th> | |
52 | </tr> | |
53 | <tr> | |
c7139c07 SJ |
54 | <td colspan="2" class="center" style="font-style: italic">Ton entreprise</td> |
55 | </tr> | |
56 | <tr> | |
57 | <td class="titre">Nom de l'entreprise</td> | |
37d44b3b | 58 | <td> |
b814a8b8 | 59 | {if $job.tmp_name}{$job.tmp_name} <small>(en cours de validation)</small>{else} |
c7139c07 SJ |
60 | <input type="text" class="enterprise_name {if $job.name_error}error{/if}" size="35" maxlength="100" |
61 | name="{$jobpref}[name]" value="{$job.name}" /> | |
b814a8b8 SJ |
62 | {/if} |
63 | </td> | |
64 | </tr> | |
65 | {if !$job.tmp_name} | |
66 | <tr class="{$entreprise}"> | |
67 | <td class="center" colspan="2"> | |
68 | <small>Si ton entreprise ne figure pas dans la liste, | |
69 | <a href="javascript:addEntreprise({$i})">clique ici</a> et complète les informations la concernant.</small> | |
70 | </td> | |
71 | </tr> | |
72 | {/if} | |
73 | <tr class="{$entreprise}" style="display: none"> | |
74 | <td class="titre">Acronyme</td> | |
75 | <td> | |
76 | <input type="text" size="35" maxlength="255" {if $job.acronym_error}class="error"{/if} | |
77 | name="{$jobpref}[acronym]" value="{$job.acronym}" /> | |
78 | </td> | |
79 | </tr> | |
80 | <tr class="{$entreprise}" style="display: none"> | |
81 | <td class="titre">Page Web</td> | |
82 | <td> | |
83 | <input type="text" size="35" maxlength="255" {if $job.hq_web_error}class="error"{/if} | |
84 | name="{$jobpref}[hq_web]" value="{$job.hq_web}" /> | |
85 | </td> | |
86 | </tr> | |
87 | <tr class="{$entreprise}" style="display: none"> | |
88 | <td class="titre">Email de contact</td> | |
89 | <td> | |
90 | <input type="text" maxlength="60" {if $job.hq_email_error}class="error"{/if} | |
91 | name="{$jobpref}[hq_email]" value="{$job.hq_email}" /> | |
92 | </td> | |
93 | </tr> | |
94 | <!--<tr class="{$entreprise}" style="display: none"> | |
95 | <td colspan="2"> | |
96 | <div style="float: left"> | |
97 | <div class="titre">Adresse du siège</div> | |
98 | <div style="margin-top: 20px; clear: both"> | |
99 | {include file="geoloc/form.address.tpl" name="`$jobpref`[hq_adr]" id="`$jobid`_adr" adr=$job.hq_adr} | |
100 | </div> | |
101 | </div> | |
102 | </td> | |
103 | </tr>--> | |
104 | <tr class="{$entreprise}" style="display: none"> | |
105 | <td class="titre">Téléphone</td> | |
106 | <td> | |
107 | <input type="text" maxlength="28" {if $job.hq_tel_error}class="error"{/if} | |
108 | name="{$jobpref}[hq_tel]" value="{$job.hq_tel}" /> | |
109 | </td> | |
110 | </tr> | |
111 | <tr class="{$entreprise}" style="display: none"> | |
112 | <td class="titre">Fax</td> | |
113 | <td> | |
114 | <input type="text" maxlength="28" {if $job.hq_fax_error}class="error"{/if} | |
115 | name="{$jobpref}[hq_fax]" value="{$job.hq_fax}" /> | |
37d44b3b | 116 | </td> |
2dcac0f5 | 117 | </tr> |
c7139c07 SJ |
118 | |
119 | <tr class="pair"> | |
120 | <td colspan="2" class="center" style="font-style: italic">Ta place dans l'entreprise</td> | |
121 | </tr> | |
b814a8b8 | 122 | <tr class="pair {$sector_text}"> |
2dcac0f5 FB |
123 | <td class="titre">Secteur d'activité</td> |
124 | <td> | |
c7139c07 SJ |
125 | <input type="text" class="sector_name {if $job.sector_error}error{/if}" size="35" maxlength="100" |
126 | name="{$jobpref}[sss_secteur_name]" value="{$job.sss_secteur_name}" /> | |
b814a8b8 | 127 | <a href="javascript:displayAllSector({$i})">{icon name="table" title="Tous les secteurs"}</a> |
c7139c07 SJ |
128 | </td> |
129 | </tr> | |
b814a8b8 | 130 | <tr class="pair {$sector}" style="display: none"> |
c7139c07 SJ |
131 | <td class="titre" rowspan="3">Secteur d'activité</td> |
132 | <td> | |
46ae38a9 | 133 | <select name="{$jobpref}[secteur]" onchange="updateJobSecteur({$i}, '{$jobid}', '{$jobpref}', ''); return true;"> |
2dcac0f5 | 134 | <option value=""> </option> |
01cb14ce | 135 | {foreach from=$secteurs item=secteur} |
2dcac0f5 FB |
136 | <option value="{$secteur.id}" {if $secteur.id eq $job.secteur}selected="selected"{/if}> |
137 | {$secteur.label} | |
138 | </option> | |
01cb14ce | 139 | {/foreach} |
2dcac0f5 FB |
140 | </select> |
141 | </td> | |
142 | </tr> | |
b814a8b8 | 143 | <tr class="pair {$sector}" style="display: none"> |
2dcac0f5 | 144 | <td id="{$jobid}_ss_secteur"> |
96a992ad | 145 | <input type="hidden" name="{$jobpref}[ss_secteur]" value="{$job.ss_secteur|default:'-1'}" /> |
02125f19 | 146 | </td> |
2dcac0f5 | 147 | </tr> |
b814a8b8 | 148 | <tr class="pair {$sector}" style="display: none"> |
c7139c07 SJ |
149 | <td id="{$jobid}_sss_secteur"> |
150 | <input type="hidden" name="{$jobpref}[sss_secteur]" value="{$job.sss_secteur|default:'-1'}" /> | |
02125f19 | 151 | </td> |
2dcac0f5 | 152 | </tr> |
c7139c07 | 153 | <tr class="pair"> |
2dcac0f5 | 154 | <td class="titre">Fonction occupée</td> |
6457b5e4 | 155 | <td> |
2dcac0f5 FB |
156 | <select name="{$jobpref}[fonction]"> |
157 | <option value=""> </option> | |
158 | {assign var=ingroup value=false} | |
01cb14ce | 159 | {foreach from=$fonctions item=fonct} |
2dcac0f5 FB |
160 | {if $fonct.title} |
161 | {if $ingroup}</optgroup>{/if} | |
162 | <optgroup label="{$fonct.fonction_fr}"> | |
163 | {assign var=ingroup value=true} | |
164 | {/if} | |
165 | <option value="{$fonct.id}" {if $fonct.id eq $job.fonction}selected="selected"{/if}> | |
166 | {$fonct.fonction_fr} | |
167 | </option> | |
01cb14ce | 168 | {/foreach} |
2dcac0f5 FB |
169 | {if $ingroup}</optgroup>{/if} |
170 | </select> | |
171 | </td> | |
172 | </tr> | |
c7139c07 SJ |
173 | <tr class="pair"> |
174 | <td class="titre">Description</td> | |
175 | <td> | |
176 | <input type="text" size="35" maxlength="120" {if $job.description_error}class="error"{/if} | |
177 | name="{$jobpref}[description]" value="{$job.description}" /> | |
178 | </td> | |
179 | </tr> | |
180 | <tr class="pair"> | |
181 | <td class="titre">Page Web</td> | |
182 | <td> | |
183 | <input type="text" size="35" maxlength="255" {if $job.w_web_error}class="error"{/if} | |
184 | name="{$jobpref}[w_web]" value="{$job.w_web}" /> | |
30c895be SJ |
185 | </td> |
186 | </tr> | |
c7139c07 | 187 | {include file="include/emails.combobox.tpl" name=$jobpref|cat:'[w_email]' val=$job.w_email class="pair" i=$i error=$job.w_email_error prefix="w_" pub=$job.w_email_pub} |
2dcac0f5 FB |
188 | <tr class="pair"> |
189 | <td colspan="2"> | |
190 | <div style="float: left"> | |
191 | <div class="titre">Adresse</div> | |
192 | <div class="flags"> | |
c7139c07 | 193 | {include file="include/flags.radio.tpl" name="`$jobpref`[w_adr][pub]" val=$job.w_adr.pub} |
2dcac0f5 FB |
194 | </div> |
195 | <div style="margin-top: 20px; clear: both"> | |
c7139c07 | 196 | {include file="geoloc/form.address.tpl" name="`$jobpref`[w_adr]" id="`$jobid`_adr" adr=$job.w_adr} |
2dcac0f5 | 197 | </div> |
77842972 | 198 | </div> |
bde2be3b GB |
199 | </td> |
200 | </tr> | |
201 | <tr class="pair"> | |
202 | <td colspan="2"> | |
c7139c07 SJ |
203 | {foreach from=$job.w_tel key=t item=tel} |
204 | <div id="{"`$jobid`_w_tel_`$t`"}" style="clear: both"> | |
205 | {include file="profile/phone.tpl" prefname="`$jobpref`[w_tel]" prefid="`$jobid`_w_tel" telid=$t tel=$tel} | |
bde2be3b GB |
206 | </div> |
207 | {/foreach} | |
c7139c07 SJ |
208 | {if $job.w_tel|@count eq 0} |
209 | <div id="{"`$jobid`_w_tel_0"}" style="clear: both"> | |
210 | {include file="profile/phone.tpl" prefname="`$jobpref`[w_tel]" prefid="`$jobid`_w_tel" telid=0 tel=0} | |
2dcac0f5 | 211 | </div> |
bde2be3b | 212 | {/if} |
c7139c07 SJ |
213 | <div id="{$jobid}_w_tel_add" class="center" style="clear: both; padding-top: 4px;"> |
214 | <a href="javascript:addTel('{$jobid}_w_tel', '{$jobpref}[w_tel]')"> | |
bde2be3b GB |
215 | {icon name=add title="Ajouter un numéro de téléphone"} Ajouter un numéro de téléphone |
216 | </a> | |
2dcac0f5 FB |
217 | </div> |
218 | </td> | |
219 | </tr> | |
220 | </table> | |
221 | </div> | |
0337d704 | 222 | |
a7de4ef7 | 223 | {* vim:set et sw=2 sts=2 sws=2 enc=utf-8: *} |