Job page should work
[platal.git] / templates / profile / jobs.job.tpl
CommitLineData
0337d704 1{**************************************************************************}
2{* *}
5ddeb07c 3{* Copyright (C) 2003-2007 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
2dcac0f5
FB
23{if $ajaxjob}
24<?xml version="1.0" encoding="utf-8"?>
25{/if}
77842972 26{assign var=jobid value="job_`$i`"}
37d44b3b 27{assign var=jobpref value="jobs[`$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}&nbsp;:&nbsp;<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">
45 {include file="include/flags.radio.tpl" notable=true display="div" name="`$jobpref`[pub]" value=$job.pub}
77842972 46 </div>
2dcac0f5 47 Entreprise n°{$i+1}&nbsp;:
37d44b3b
FB
48 <input type="text" {if $job.name_error}class="error"{/if} size="35" maxlength="100"
49 name="{$jobpref}[name]" value="{$job.name}" />
2dcac0f5
FB
50 <a href="javascript:removeJob('{$jobid}', '{$jobpref}')">
51 {icon name=cross title="Supprimer cet emploi"}
52 </a>
53 </th>
54 </tr>
55 <tr>
56 <td class="titre">Page Web</td>
37d44b3b
FB
57 <td>
58 <input type="text" size="35" maxlength="255" {if $job.web_error}class="error"{/if}
59 name="{$jobpref}[web]" value="{$job.web}" />
60 </td>
2dcac0f5
FB
61 </tr>
62 <tr>
63 <td class="titre">Secteur d'activité</td>
64 <td>
65 <select name="{$jobpref}[secteur]" onchange="updateSecteur({$i}, '{$jobid}', '{$jobpref}', ''); return true;">
66 <option value="">&nbsp;</option>
67 {iterate from=$secteurs item=secteur}
68 <option value="{$secteur.id}" {if $secteur.id eq $job.secteur}selected="selected"{/if}>
69 {$secteur.label}
70 </option>
71 {/iterate}
72 </select>
73 </td>
74 </tr>
75 <tr>
76 <td class="titre">Sous-Secteur d'activité</td>
77 <td id="{$jobid}_ss_secteur">
78 </td>
79 </tr>
80 <tr>
81 <td class="titre">Poste occupé</td>
82 <td>
37d44b3b
FB
83 <input type="text" size="35" maxlength="120" {if $job.poste_error}class="error"{/if}
84 name="{$jobpref}[poste]" value="{$job.poste}" />
2dcac0f5
FB
85 </td>
86 </tr>
87 <tr>
88 <td class="titre">Fonction occupée</td>
89 <td id=>
90 <select name="{$jobpref}[fonction]">
91 <option value="">&nbsp;</option>
92 {assign var=ingroup value=false}
93 {iterate from=$fonctions item=fonct}
94 {if $fonct.title}
95 {if $ingroup}</optgroup>{/if}
96 <optgroup label="{$fonct.fonction_fr}">
97 {assign var=ingroup value=true}
98 {/if}
99 <option value="{$fonct.id}" {if $fonct.id eq $job.fonction}selected="selected"{/if}>
100 {$fonct.fonction_fr}
101 </option>
102 {/iterate}
103 {if $ingroup}</optgroup>{/if}
104 </select>
105 </td>
106 </tr>
107 <tr class="pair">
108 <td colspan="2">
109 <span class="titre">E-mail professionnel&nbsp;:</span>
37d44b3b
FB
110 <input type="text" size="30" maxlength="60" {if $job.email_error}class="error"{/if}
111 name="{$jobpref}[email]" value="{$job.email}" />
2dcac0f5
FB
112 <span class="flags">
113 {include file="include/flags.radio.tpl" name="`$jobpref`[email_pub]" val=$job.mail_pub display="div"}
114 </span>
115 </td>
116 </tr>
117 <tr class="pair">
118 <td colspan="2">
119 <div style="float: left">
120 <div class="titre">Adresse</div>
121 <div class="flags">
122 {include file="include/flags.radio.tpl" name="`$jobpref`[adr][pub]" val=$job.adr.pub display="div"}
123 </div>
124 <div style="margin-top: 20px; clear: both">
37d44b3b 125 {include file="geoloc/form.address.tpl" name="`$jobpref`[adr]" id="`$jobid`_adr" adr=$job.adr}
2dcac0f5 126 </div>
77842972 127 </div>
2dcac0f5
FB
128 <div style="float: right; width: 50%">
129 <div class="titre">Téléphone</div>
130 <div class="flags">
131 {include file="include/flags.radio.tpl" name="`$jobpref`[tel_pub]" val=$job.tel_pub display="div"}
132 </div>
133 <table style="clear: both">
134 <tr>
135 <td>Bureau&nbsp;:</td>
37d44b3b
FB
136 <td>
137 <input type="text" size="18" maxlength="18" {if $job.tel_error}class="error"{/if}
138 name="{$jobpref}[tel]" value="{$job.tel}" />
139 </td>
2dcac0f5
FB
140 </tr>
141 <tr>
142 <td>Fax&nbsp;:</td>
37d44b3b
FB
143 <td>
144 <input type="text" size="18" maxlength="18" {if $job.fax_error}class="error"{/if}
145 name="{$jobpref}[fax]" value="{$job.fax}" /></td>
2dcac0f5
FB
146 </tr>
147 <tr>
148 <td>Mobile&nbsp;:</td>
37d44b3b
FB
149 <td>
150 <input type="text" size="18" maxlength="18" {if $job.mobile_error}class="error"{/if}
151 name="{$jobpref}[mobile]" value="{$job.mobile}" />
152 </td>
2dcac0f5
FB
153 </tr>
154 </table>
155 </div>
156 </td>
157 </tr>
158 </table>
159</div>
0337d704 160
a7de4ef7 161{* vim:set et sw=2 sts=2 sws=2 enc=utf-8: *}