Fixes some XHTML strict errors or warnings
[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
541e8d03 23{assign var=jobid value="job_"|cat:$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}" />
afaa2cc7
SJ
31 <input type="hidden" name="{$jobpref}[id]" value="{$i}" />
32 <input type="hidden" name="{$jobpref}[jobid]" value="{$job.jobid}" />
2dcac0f5
FB
33 <table id="{$jobid}_grayed" class="bicol" style="display: none; margin-bottom: 1em">
34 <tr>
35 <th class="grayed">
36 <div style="float: right">
9fce7016 37 <a href="javascript:restoreJob('{$jobid}','{$jobpref}')">{icon name=arrow_refresh title="Restaure l'emploi"}</a>
77842972 38 </div>
37d44b3b 39 Restaurer l'entreprise n°{$i+1}&nbsp;:&nbsp;<span id="{$jobid}_grayed_name"></span>
2dcac0f5
FB
40 </th>
41 </tr>
42 </table>
afaa2cc7 43
2dcac0f5
FB
44 <table id="{$jobid}_cont" class="bicol" summary="Entreprise n°{$i+1}" style="margin-bottom: 1em">
45 <tr>
46 <th colspan="2" style="text-align: right">
47 <div class="flags" style="float: left; text-align: left">
ee12da4e 48 {include file="include/flags.radio.tpl" name="`$jobpref`[pub]" val=$job.pub}
77842972 49 </div>
4f06d57b 50 Entreprise n°{$i+1}&nbsp;:
b814a8b8 51 {if $job.tmp_name}{$job.tmp_name} <small>(en cours de validation)</small>{else}
f3b2736f 52 <input type="text" class="enterpriseName {if $job.name_error}error{/if}" size="35" maxlength="100"
c7139c07 53 name="{$jobpref}[name]" value="{$job.name}" />
b814a8b8 54 {/if}
9fce7016 55 <a href="javascript:removeJob('{$jobid}','{$jobpref}')">
4f06d57b
SJ
56 {icon name=cross title="Supprimer cet emploi"}
57 </a>
58 </th>
b814a8b8 59 </tr>
afaa2cc7 60 {if !$job.tmp_name && !$job.name}
b814a8b8
SJ
61 <tr class="{$entreprise}">
62 <td class="center" colspan="2">
63 <small>Si ton entreprise ne figure pas dans la liste,
64 <a href="javascript:addEntreprise({$i})">clique ici</a> et complète les informations la concernant.</small>
65 </td>
66 </tr>
67 {/if}
68 <tr class="{$entreprise}" style="display: none">
69 <td class="titre">Acronyme</td>
70 <td>
71 <input type="text" size="35" maxlength="255" {if $job.acronym_error}class="error"{/if}
541e8d03 72 name="{$jobpref}[hq_acronym]" value="{$job.hq_acronym}" />
b814a8b8
SJ
73 </td>
74 </tr>
75 <tr class="{$entreprise}" style="display: none">
4f06d57b 76 <td class="titre">Page web</td>
b814a8b8 77 <td>
541e8d03
SJ
78 <input type="text" size="35" maxlength="255" {if $job.hq_url}class="error"{/if}
79 name="{$jobpref}[hq_url]" value="{$job.hq_url}" />
b814a8b8
SJ
80 </td>
81 </tr>
82 <tr class="{$entreprise}" style="display: none">
83 <td class="titre">Email de contact</td>
84 <td>
85 <input type="text" maxlength="60" {if $job.hq_email_error}class="error"{/if}
86 name="{$jobpref}[hq_email]" value="{$job.hq_email}" />
87 </td>
88 </tr>
0bcc8717 89 <tr class="{$entreprise}" style="display: none">
b814a8b8
SJ
90 <td colspan="2">
91 <div style="float: left">
92 <div class="titre">Adresse du siège</div>
93 <div style="margin-top: 20px; clear: both">
541e8d03
SJ
94 {include file="geoloc/form.address.tpl" prefname="`$jobpref`[hq_address]"
95 prefid="`$jobid`_address" address=$job.hq_address}
b814a8b8
SJ
96 </div>
97 </div>
98 </td>
0bcc8717 99 </tr>
b814a8b8
SJ
100 <tr class="{$entreprise}" style="display: none">
101 <td class="titre">Téléphone</td>
102 <td>
103 <input type="text" maxlength="28" {if $job.hq_tel_error}class="error"{/if}
541e8d03 104 name="{$jobpref}[hq_phone]" value="{$job.hq_phone}" />
b814a8b8
SJ
105 </td>
106 </tr>
107 <tr class="{$entreprise}" style="display: none">
108 <td class="titre">Fax</td>
109 <td>
110 <input type="text" maxlength="28" {if $job.hq_fax_error}class="error"{/if}
111 name="{$jobpref}[hq_fax]" value="{$job.hq_fax}" />
37d44b3b 112 </td>
2dcac0f5 113 </tr>
c7139c07
SJ
114
115 <tr class="pair">
116 <td colspan="2" class="center" style="font-style: italic">Ta place dans l'entreprise</td>
117 </tr>
b814a8b8 118 <tr class="pair {$sector_text}">
2dcac0f5
FB
119 <td class="titre">Secteur d'activité</td>
120 <td>
f3b2736f 121 <input type="text" class="sectorName {if $job.sector_error}error{/if}" size="35" maxlength="100"
541e8d03 122 name="{$jobpref}[subSubSectorName]" value="{$job.subSubSectorName}" />
b814a8b8 123 <a href="javascript:displayAllSector({$i})">{icon name="table" title="Tous les secteurs"}</a>
c7139c07
SJ
124 </td>
125 </tr>
b814a8b8 126 <tr class="pair {$sector}" style="display: none">
07e72582 127 <td class="titre" rowspan="4">Secteur&nbsp;d'activité</td>
c7139c07 128 <td>
541e8d03 129 <select name="{$jobpref}[sector]" onchange="updateJobSector({$i}, '')">
afaa2cc7 130 <option value="0">&nbsp;</option>
541e8d03
SJ
131 {foreach from=$sectors item=item}
132 <option value="{$item.id}" {if $item.id eq $job.sector}selected="selected"{/if}>
133 {$item.label}
2dcac0f5 134 </option>
01cb14ce 135 {/foreach}
2dcac0f5
FB
136 </select>
137 </td>
138 </tr>
b814a8b8 139 <tr class="pair {$sector}" style="display: none">
541e8d03 140 <td id="{$jobid}_subSector">
afaa2cc7 141 <input type="hidden" name="{$jobpref}[subSector]" value="{$job.subSector|default:0}" />
02125f19 142 </td>
2dcac0f5 143 </tr>
b814a8b8 144 <tr class="pair {$sector}" style="display: none">
541e8d03 145 <td id="{$jobid}_subSubSector">
afaa2cc7 146 <input type="hidden" name="{$jobpref}[subSubSector]" value="{$job.subSubSector|default:0}" />
02125f19 147 </td>
2dcac0f5 148 </tr>
07e72582
SJ
149 <tr class="pair {$sector}" style="display: none">
150 <td id="{$jobid}_alternates">
151 </td>
152 </tr>
c7139c07 153 <tr class="pair">
c7139c07
SJ
154 <td class="titre">Description</td>
155 <td>
156 <input type="text" size="35" maxlength="120" {if $job.description_error}class="error"{/if}
541e8d03 157 name="{$jobpref}[description]" value="{$job.description}" />
30c895be
SJ
158 </td>
159 </tr>
2dcac0f5 160 <tr class="pair">
0bcc8717
SJ
161 <td class="titre">Page&nbsp;perso</td>
162 <td>
541e8d03
SJ
163 <input type="text" size="35" maxlength="255" {if $job.w_rul}class="error"{/if}
164 name="{$jobpref}[w_url]" value="{$job.w_url}" />
0bcc8717
SJ
165 </td>
166 </tr>
167 <tr class="pair">
2dcac0f5
FB
168 <td colspan="2">
169 <div style="float: left">
170 <div class="titre">Adresse</div>
171 <div class="flags">
541e8d03 172 {include file="include/flags.radio.tpl" name="`$jobpref`[w_address][pub]" val=$job.w_address.pub}
2dcac0f5
FB
173 </div>
174 <div style="margin-top: 20px; clear: both">
541e8d03
SJ
175 {include file="geoloc/form.address.tpl" prefname="`$jobpref`[w_address]"
176 prefid=$jobid address=$job.w_address}
2dcac0f5 177 </div>
77842972 178 </div>
bde2be3b
GB
179 </td>
180 </tr>
0bcc8717
SJ
181 {include file="include/emails.combobox.tpl" name=$jobpref|cat:'[w_email]' val=$job.w_email
182 class="pair" i=$i error=$job.w_email_error prefix="w_" pub=$job.w_email_pub id=$i}
bde2be3b
GB
183 <tr class="pair">
184 <td colspan="2">
541e8d03
SJ
185 {foreach from=$job.w_phone key=t item=phone}
186 <div id="{"`$jobid`_w_phone_`$t`"}" style="clear: both">
187 {include file="profile/phone.tpl" prefname="`$jobpref`[w_phone]" prefid="`$jobid`_w_phone" telid=$t tel=$phone}
bde2be3b
GB
188 </div>
189 {/foreach}
541e8d03
SJ
190 {if $job.w_phone|@count eq 0}
191 <div id="{"`$jobid`_w_phone_0"}" style="clear: both">
192 {include file="profile/phone.tpl" prefname="`$jobpref`[w_phone]" prefid="`$jobid`_w_phone" telid=0 tel=0}
2dcac0f5 193 </div>
bde2be3b 194 {/if}
541e8d03 195 <div id="{$jobid}_w_phone_add" class="center" style="clear: both; padding-top: 4px;">
9fce7016 196 <a href="javascript:addTel('{$jobid}_w_phone','{$jobpref}[w_phone]')">
bde2be3b
GB
197 {icon name=add title="Ajouter un numéro de téléphone"} Ajouter un numéro de téléphone
198 </a>
2dcac0f5
FB
199 </div>
200 </td>
201 </tr>
202 </table>
203</div>
0337d704 204
a7de4ef7 205{* vim:set et sw=2 sts=2 sws=2 enc=utf-8: *}