Erases a few trailing whitespaces.
[platal.git] / templates / profile / jobs.job.tpl
1 {**************************************************************************}
2 {*                                                                        *}
3 {*  Copyright (C) 2003-2008 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 {assign var=jobid value="job_`$i`"}
24 {assign var=jobpref value="jobs[`$i`]"}
25 <div id="{$jobid}">
26   <input type="hidden" name="{$jobpref}[removed]" value="0" />
27   <input type="hidden" name="{$jobpref}[new]" value="{if $new}1{else}0{/if}" />
28   <table id="{$jobid}_grayed" class="bicol" style="display: none; margin-bottom: 1em">
29     <tr>
30       <th class="grayed">
31         <div style="float: right">
32           <a href="javascript:restoreJob('{$jobid}', '{$jobpref}')">{icon name=arrow_refresh title="Restaure l'emploi"}</a>
33         </div>
34         Restaurer l'entreprise n°{$i+1}&nbsp;:&nbsp;<span id="{$jobid}_grayed_name"></span>
35       </th>
36     </tr>
37   </table>
38   <table id="{$jobid}_cont" class="bicol" summary="Entreprise n°{$i+1}" style="margin-bottom: 1em">
39     <tr>
40       <th colspan="2" style="text-align: right">
41         <div class="flags" style="float: left; text-align: left">
42           {include file="include/flags.radio.tpl" name="`$jobpref`[pub]" val=$job.pub}
43         </div>
44         Entreprise n°{$i+1}
45         <a href="javascript:removeJob('{$jobid}', '{$jobpref}')">
46           {icon name=cross title="Supprimer cet emploi"}
47         </a>
48       </th>
49     </tr>
50     <tr>
51       <td colspan="2" class="center" style="font-style: italic">Ton entreprise</td>
52     </tr>
53     <tr>
54       <td class="titre">Nom de l'entreprise</td>
55       <td>
56         <input type="text" class="enterprise_name {if $job.name_error}error{/if}" size="35" maxlength="100"
57                name="{$jobpref}[name]" value="{$job.name}" />
58       </td>
59     </tr>
60
61     <tr class="pair">
62       <td colspan="2" class="center" style="font-style: italic">Ta place dans l'entreprise</td>
63     </tr>
64     <tr class="pair sector_text">
65       <td class="titre">Secteur d'activité</td>
66       <td>
67         <input type="text" class="sector_name {if $job.sector_error}error{/if}" size="35" maxlength="100"
68                name="{$jobpref}[sss_secteur_name]" value="{$job.sss_secteur_name}" />
69         <a href="javascript:displayAllSector()">{icon name="table" title="Tous les secteurs"}</a>
70       </td>
71     </tr>
72     <tr class="pair sector" style="display: none">
73       <td class="titre" rowspan="3">Secteur d'activité</td>
74       <td>
75         <select name="{$jobpref}[secteur]" onchange="updateJobSecteur({$i}, '{$jobid}', '{$jobpref}', ''); return true;">
76           <option value="">&nbsp;</option>
77           {foreach from=$secteurs item=secteur}
78           <option value="{$secteur.id}" {if $secteur.id eq $job.secteur}selected="selected"{/if}>
79             {$secteur.label}
80           </option>
81           {/foreach}
82         </select>
83       </td>
84     </tr>
85     <tr class="pair sector" style="display: none">
86       <td id="{$jobid}_ss_secteur">
87         <input type="hidden" name="{$jobpref}[ss_secteur]" value="{$job.ss_secteur|default:'-1'}" />
88       </td>
89     </tr>
90     <tr class="pair sector" style="display: none">
91       <td id="{$jobid}_sss_secteur">
92         <input type="hidden" name="{$jobpref}[sss_secteur]" value="{$job.sss_secteur|default:'-1'}" />
93       </td>
94     </tr>
95     <tr class="pair">
96       <td class="titre">Fonction occupée</td>
97       <td>
98         <select name="{$jobpref}[fonction]">
99           <option value="">&nbsp;</option>
100           {assign var=ingroup value=false}
101           {foreach from=$fonctions item=fonct}
102           {if $fonct.title}
103             {if $ingroup}</optgroup>{/if}
104             <optgroup label="{$fonct.fonction_fr}">
105             {assign var=ingroup value=true}
106           {/if}
107           <option value="{$fonct.id}" {if $fonct.id eq $job.fonction}selected="selected"{/if}>
108             {$fonct.fonction_fr}
109           </option>
110           {/foreach}
111           {if $ingroup}</optgroup>{/if}
112         </select>
113       </td>
114     </tr>
115     <tr class="pair">
116       <td class="titre">Description</td>
117       <td>
118         <input type="text" size="35" maxlength="120" {if $job.description_error}class="error"{/if}
119                name="{$jobpref}[description]" value="{$job.description}" />
120       </td>
121     </tr>
122     <tr class="pair">
123       <td class="titre">Page Web</td>
124       <td>
125         <input type="text" size="35" maxlength="255" {if $job.w_web_error}class="error"{/if}
126                name="{$jobpref}[w_web]" value="{$job.w_web}" />
127       </td>
128     </tr>
129     {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}
130     <tr class="pair">
131       <td colspan="2">
132         <div style="float: left">
133           <div class="titre">Adresse</div>
134           <div class="flags">
135             {include file="include/flags.radio.tpl" name="`$jobpref`[w_adr][pub]" val=$job.w_adr.pub}
136           </div>
137           <div style="margin-top: 20px; clear: both">
138             {include file="geoloc/form.address.tpl" name="`$jobpref`[w_adr]" id="`$jobid`_adr" adr=$job.w_adr}
139           </div>
140         </div>
141       </td>
142     </tr>
143     <tr class="pair">
144       <td colspan="2">
145         {foreach from=$job.w_tel key=t item=tel}
146           <div id="{"`$jobid`_w_tel_`$t`"}" style="clear: both">
147             {include file="profile/phone.tpl" prefname="`$jobpref`[w_tel]" prefid="`$jobid`_w_tel" telid=$t tel=$tel}
148           </div>
149         {/foreach}
150         {if $job.w_tel|@count eq 0}
151           <div id="{"`$jobid`_w_tel_0"}" style="clear: both">
152             {include file="profile/phone.tpl" prefname="`$jobpref`[w_tel]" prefid="`$jobid`_w_tel" telid=0 tel=0}
153           </div>
154         {/if}
155         <div id="{$jobid}_w_tel_add" class="center" style="clear: both; padding-top: 4px;">
156           <a href="javascript:addTel('{$jobid}_w_tel', '{$jobpref}[w_tel]')">
157             {icon name=add title="Ajouter un numéro de téléphone"} Ajouter un numéro de téléphone
158           </a>
159         </div>
160       </td>
161     </tr>
162   </table>
163 </div>
164
165 {* vim:set et sw=2 sts=2 sws=2 enc=utf-8: *}