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`]"} |
2dcac0f5 FB |
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> | |
77842972 | 33 | </div> |
37d44b3b | 34 | Restaurer l'entreprise n°{$i+1} : <span id="{$jobid}_grayed_name"></span> |
2dcac0f5 FB |
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"> | |
ee12da4e | 42 | {include file="include/flags.radio.tpl" name="`$jobpref`[pub]" val=$job.pub} |
77842972 | 43 | </div> |
2dcac0f5 | 44 | Entreprise n°{$i+1} : |
16594a1a | 45 | <input type="text" class="enterprise_name {if $job.name_error}error{/if}" size="35" maxlength="100" |
37d44b3b | 46 | name="{$jobpref}[name]" value="{$job.name}" /> |
2dcac0f5 FB |
47 | <a href="javascript:removeJob('{$jobid}', '{$jobpref}')"> |
48 | {icon name=cross title="Supprimer cet emploi"} | |
49 | </a> | |
50 | </th> | |
51 | </tr> | |
52 | <tr> | |
53 | <td class="titre">Page Web</td> | |
37d44b3b FB |
54 | <td> |
55 | <input type="text" size="35" maxlength="255" {if $job.web_error}class="error"{/if} | |
56 | name="{$jobpref}[web]" value="{$job.web}" /> | |
57 | </td> | |
2dcac0f5 FB |
58 | </tr> |
59 | <tr> | |
60 | <td class="titre">Secteur d'activité</td> | |
61 | <td> | |
46ae38a9 | 62 | <select name="{$jobpref}[secteur]" onchange="updateJobSecteur({$i}, '{$jobid}', '{$jobpref}', ''); return true;"> |
2dcac0f5 FB |
63 | <option value=""> </option> |
64 | {iterate from=$secteurs item=secteur} | |
65 | <option value="{$secteur.id}" {if $secteur.id eq $job.secteur}selected="selected"{/if}> | |
66 | {$secteur.label} | |
67 | </option> | |
68 | {/iterate} | |
69 | </select> | |
70 | </td> | |
71 | </tr> | |
72 | <tr> | |
661e78f7 | 73 | <td class="titre">Sous-secteur d'activité</td> |
2dcac0f5 | 74 | <td id="{$jobid}_ss_secteur"> |
96a992ad | 75 | <input type="hidden" name="{$jobpref}[ss_secteur]" value="{$job.ss_secteur|default:'-1'}" /> |
2dcac0f5 FB |
76 | </td> |
77 | </tr> | |
78 | <tr> | |
79 | <td class="titre">Poste occupé</td> | |
80 | <td> | |
37d44b3b FB |
81 | <input type="text" size="35" maxlength="120" {if $job.poste_error}class="error"{/if} |
82 | name="{$jobpref}[poste]" value="{$job.poste}" /> | |
2dcac0f5 FB |
83 | </td> |
84 | </tr> | |
85 | <tr> | |
86 | <td class="titre">Fonction occupée</td> | |
6457b5e4 | 87 | <td> |
2dcac0f5 FB |
88 | <select name="{$jobpref}[fonction]"> |
89 | <option value=""> </option> | |
90 | {assign var=ingroup value=false} | |
91 | {iterate from=$fonctions item=fonct} | |
92 | {if $fonct.title} | |
93 | {if $ingroup}</optgroup>{/if} | |
94 | <optgroup label="{$fonct.fonction_fr}"> | |
95 | {assign var=ingroup value=true} | |
96 | {/if} | |
97 | <option value="{$fonct.id}" {if $fonct.id eq $job.fonction}selected="selected"{/if}> | |
98 | {$fonct.fonction_fr} | |
99 | </option> | |
100 | {/iterate} | |
101 | {if $ingroup}</optgroup>{/if} | |
102 | </select> | |
103 | </td> | |
104 | </tr> | |
30c895be SJ |
105 | <tr class="titre"> |
106 | <td class="center" colspan="2"> | |
107 | <small>Si des informations font défaut dans les listes ci-dessus, | |
108 | <a href="mailto:support@{#globals.mail.domain#}">contacte-nous</a>.</small> | |
109 | </td> | |
110 | </tr> | |
2dcac0f5 FB |
111 | <tr class="pair"> |
112 | <td colspan="2"> | |
113 | <span class="titre">E-mail professionnel :</span> | |
37d44b3b FB |
114 | <input type="text" size="30" maxlength="60" {if $job.email_error}class="error"{/if} |
115 | name="{$jobpref}[email]" value="{$job.email}" /> | |
2dcac0f5 | 116 | <span class="flags"> |
ee12da4e | 117 | {include file="include/flags.radio.tpl" name="`$jobpref`[email_pub]" val=$job.mail_pub} |
2dcac0f5 FB |
118 | </span> |
119 | </td> | |
120 | </tr> | |
121 | <tr class="pair"> | |
122 | <td colspan="2"> | |
123 | <div style="float: left"> | |
124 | <div class="titre">Adresse</div> | |
125 | <div class="flags"> | |
ee12da4e | 126 | {include file="include/flags.radio.tpl" name="`$jobpref`[adr][pub]" val=$job.adr.pub} |
2dcac0f5 FB |
127 | </div> |
128 | <div style="margin-top: 20px; clear: both"> | |
37d44b3b | 129 | {include file="geoloc/form.address.tpl" name="`$jobpref`[adr]" id="`$jobid`_adr" adr=$job.adr} |
2dcac0f5 | 130 | </div> |
77842972 | 131 | </div> |
2dcac0f5 FB |
132 | <div style="float: right; width: 50%"> |
133 | <div class="titre">Téléphone</div> | |
134 | <div class="flags"> | |
ee12da4e | 135 | {include file="include/flags.radio.tpl" name="`$jobpref`[tel_pub]" val=$job.tel_pub} |
2dcac0f5 FB |
136 | </div> |
137 | <table style="clear: both"> | |
138 | <tr> | |
139 | <td>Bureau :</td> | |
37d44b3b FB |
140 | <td> |
141 | <input type="text" size="18" maxlength="18" {if $job.tel_error}class="error"{/if} | |
142 | name="{$jobpref}[tel]" value="{$job.tel}" /> | |
143 | </td> | |
2dcac0f5 FB |
144 | </tr> |
145 | <tr> | |
146 | <td>Fax :</td> | |
37d44b3b FB |
147 | <td> |
148 | <input type="text" size="18" maxlength="18" {if $job.fax_error}class="error"{/if} | |
149 | name="{$jobpref}[fax]" value="{$job.fax}" /></td> | |
2dcac0f5 FB |
150 | </tr> |
151 | <tr> | |
152 | <td>Mobile :</td> | |
37d44b3b FB |
153 | <td> |
154 | <input type="text" size="18" maxlength="18" {if $job.mobile_error}class="error"{/if} | |
155 | name="{$jobpref}[mobile]" value="{$job.mobile}" /> | |
156 | </td> | |
2dcac0f5 FB |
157 | </tr> |
158 | </table> | |
159 | </div> | |
160 | </td> | |
161 | </tr> | |
162 | </table> | |
163 | </div> | |
0337d704 | 164 | |
a7de4ef7 | 165 | {* vim:set et sw=2 sts=2 sws=2 enc=utf-8: *} |