projects
/
platal.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'platal-0.10.0'
[platal.git]
/
templates
/
profile
/
jobs.job.tpl
diff --git
a/templates/profile/jobs.job.tpl
b/templates/profile/jobs.job.tpl
index
bfdb471
..
b146549
100644
(file)
--- a/
templates/profile/jobs.job.tpl
+++ b/
templates/profile/jobs.job.tpl
@@
-1,6
+1,6
@@
{**************************************************************************}
{* *}
{**************************************************************************}
{* *}
-{* Copyright (C) 2003-200
7
Polytechnique.org *}
+{* Copyright (C) 2003-200
9
Polytechnique.org *}
{* http://opensource.polytechnique.org/ *}
{* *}
{* This program is free software; you can redistribute it and/or modify *}
{* http://opensource.polytechnique.org/ *}
{* *}
{* This program is free software; you can redistribute it and/or modify *}
@@
-20,11
+20,8
@@
{* *}
{**************************************************************************}
{* *}
{**************************************************************************}
-{if $ajaxjob}
-<?xml version="1.0" encoding="utf-8"?>
-{/if}
{assign var=jobid value="job_`$i`"}
{assign var=jobid value="job_`$i`"}
-{assign var=jobpref value="job[`$i`]"}
+{assign var=jobpref value="job
s
[`$i`]"}
<div id="{$jobid}">
<input type="hidden" name="{$jobpref}[removed]" value="0" />
<input type="hidden" name="{$jobpref}[new]" value="{if $new}1{else}0{/if}" />
<div id="{$jobid}">
<input type="hidden" name="{$jobpref}[removed]" value="0" />
<input type="hidden" name="{$jobpref}[new]" value="{if $new}1{else}0{/if}" />
@@
-34,7
+31,7
@@
<div style="float: right">
<a href="javascript:restoreJob('{$jobid}', '{$jobpref}')">{icon name=arrow_refresh title="Restaure l'emploi"}</a>
</div>
<div style="float: right">
<a href="javascript:restoreJob('{$jobid}', '{$jobpref}')">{icon name=arrow_refresh title="Restaure l'emploi"}</a>
</div>
- Restaurer l'entreprise n°{$i+1} :<span id="{$jobid}_grayed_name"></span>
+ Restaurer l'entreprise n°{$i+1} :
<span id="{$jobid}_grayed_name"></span>
</th>
</tr>
</table>
</th>
</tr>
</table>
@@
-42,10
+39,11
@@
<tr>
<th colspan="2" style="text-align: right">
<div class="flags" style="float: left; text-align: left">
<tr>
<th colspan="2" style="text-align: right">
<div class="flags" style="float: left; text-align: left">
- {include file="include/flags.radio.tpl" n
otable=true display="div" name="`$jobpref`[pub]" value
=$job.pub}
+ {include file="include/flags.radio.tpl" n
ame="`$jobpref`[pub]" val
=$job.pub}
</div>
Entreprise n°{$i+1} :
</div>
Entreprise n°{$i+1} :
- <input type="text" size="35" maxlength="100" name="{$jobpref}[name]" value="{$job.name}" />
+ <input type="text" class="enterprise_name {if $job.name_error}error{/if}" size="35" maxlength="100"
+ name="{$jobpref}[name]" value="{$job.name}" />
<a href="javascript:removeJob('{$jobid}', '{$jobpref}')">
{icon name=cross title="Supprimer cet emploi"}
</a>
<a href="javascript:removeJob('{$jobid}', '{$jobpref}')">
{icon name=cross title="Supprimer cet emploi"}
</a>
@@
-53,39
+51,44
@@
</tr>
<tr>
<td class="titre">Page Web</td>
</tr>
<tr>
<td class="titre">Page Web</td>
- <td><input type="text" size="35" maxlength="255" name="{$jobpref}[web]" value="{$job.web}" /></td>
+ <td>
+ <input type="text" size="35" maxlength="255" {if $job.web_error}class="error"{/if}
+ name="{$jobpref}[web]" value="{$job.web}" />
+ </td>
</tr>
<tr>
<td class="titre">Secteur d'activité</td>
<td>
</tr>
<tr>
<td class="titre">Secteur d'activité</td>
<td>
- <select name="{$jobpref}[secteur]" onchange="updateSecteur({$i}, '{$jobid}', '{$jobpref}', ''); return true;">
+ <select name="{$jobpref}[secteur]" onchange="update
Job
Secteur({$i}, '{$jobid}', '{$jobpref}', ''); return true;">
<option value=""> </option>
<option value=""> </option>
- {
iterate
from=$secteurs item=secteur}
+ {
foreach
from=$secteurs item=secteur}
<option value="{$secteur.id}" {if $secteur.id eq $job.secteur}selected="selected"{/if}>
{$secteur.label}
</option>
<option value="{$secteur.id}" {if $secteur.id eq $job.secteur}selected="selected"{/if}>
{$secteur.label}
</option>
- {/
iterate
}
+ {/
foreach
}
</select>
</td>
</tr>
<tr>
</select>
</td>
</tr>
<tr>
- <td class="titre">Sous-
S
ecteur d'activité</td>
+ <td class="titre">Sous-
s
ecteur d'activité</td>
<td id="{$jobid}_ss_secteur">
<td id="{$jobid}_ss_secteur">
+ <input type="hidden" name="{$jobpref}[ss_secteur]" value="{$job.ss_secteur|default:'-1'}" />
</td>
</tr>
<tr>
<td class="titre">Poste occupé</td>
<td>
</td>
</tr>
<tr>
<td class="titre">Poste occupé</td>
<td>
- <input type="text" size="35" maxlength="120" name="{$jobpref}[poste]" value="{$job.poste}" />
+ <input type="text" size="35" maxlength="120" {if $job.poste_error}class="error"{/if}
+ name="{$jobpref}[poste]" value="{$job.poste}" />
</td>
</tr>
<tr>
<td class="titre">Fonction occupée</td>
</td>
</tr>
<tr>
<td class="titre">Fonction occupée</td>
- <td
id=
>
+ <td>
<select name="{$jobpref}[fonction]">
<option value=""> </option>
{assign var=ingroup value=false}
<select name="{$jobpref}[fonction]">
<option value=""> </option>
{assign var=ingroup value=false}
- {
iterate
from=$fonctions item=fonct}
+ {
foreach
from=$fonctions item=fonct}
{if $fonct.title}
{if $ingroup}</optgroup>{/if}
<optgroup label="{$fonct.fonction_fr}">
{if $fonct.title}
{if $ingroup}</optgroup>{/if}
<optgroup label="{$fonct.fonction_fr}">
@@
-94,17
+97,24
@@
<option value="{$fonct.id}" {if $fonct.id eq $job.fonction}selected="selected"{/if}>
{$fonct.fonction_fr}
</option>
<option value="{$fonct.id}" {if $fonct.id eq $job.fonction}selected="selected"{/if}>
{$fonct.fonction_fr}
</option>
- {/
iterate
}
+ {/
foreach
}
{if $ingroup}</optgroup>{/if}
</select>
</td>
</tr>
{if $ingroup}</optgroup>{/if}
</select>
</td>
</tr>
+ <tr class="titre">
+ <td class="center" colspan="2">
+ <small>Si des informations font défaut dans les listes ci-dessus,
+ <a href="mailto:support@{#globals.mail.domain#}">contacte-nous</a>.</small>
+ </td>
+ </tr>
<tr class="pair">
<td colspan="2">
<tr class="pair">
<td colspan="2">
- <span class="titre">E-mail professionnel :</span>
- <input type="text" size="30" maxlength="60" name="{$jobpref}[email]" value="{$job.email}" />
+ <span class="titre">Email professionnel :</span>
+ <input type="text" size="30" maxlength="60" {if $job.email_error}class="error"{/if}
+ name="{$jobpref}[email]" value="{$job.email}" />
<span class="flags">
<span class="flags">
- {include file="include/flags.radio.tpl" name="`$jobpref`[email_pub]" val=$job.mail_pub
display="div"
}
+ {include file="include/flags.radio.tpl" name="`$jobpref`[email_pub]" val=$job.mail_pub}
</span>
</td>
</tr>
</span>
</td>
</tr>
@@
-113,29
+123,37
@@
<div style="float: left">
<div class="titre">Adresse</div>
<div class="flags">
<div style="float: left">
<div class="titre">Adresse</div>
<div class="flags">
- {include file="include/flags.radio.tpl" name="`$jobpref`[adr][pub]" val=$job.adr.pub
display="div"
}
+ {include file="include/flags.radio.tpl" name="`$jobpref`[adr][pub]" val=$job.adr.pub}
</div>
<div style="margin-top: 20px; clear: both">
</div>
<div style="margin-top: 20px; clear: both">
- {include file="geoloc/form.address.tpl" name="`$jobpref`[adr]" id="`$job
pref
`_adr" adr=$job.adr}
+ {include file="geoloc/form.address.tpl" name="`$jobpref`[adr]" id="`$job
id
`_adr" adr=$job.adr}
</div>
</div>
<div style="float: right; width: 50%">
<div class="titre">Téléphone</div>
<div class="flags">
</div>
</div>
<div style="float: right; width: 50%">
<div class="titre">Téléphone</div>
<div class="flags">
- {include file="include/flags.radio.tpl" name="`$jobpref`[tel_pub]" val=$job.tel_pub
display="div"
}
+ {include file="include/flags.radio.tpl" name="`$jobpref`[tel_pub]" val=$job.tel_pub}
</div>
<table style="clear: both">
<tr>
<td>Bureau :</td>
</div>
<table style="clear: both">
<tr>
<td>Bureau :</td>
- <td><input type="text" size="18" maxlength="18" name="{$jobpref}[tel_office]" value="{$job.tel_office}" /></td>
+ <td>
+ <input type="text" size="18" maxlength="18" {if $job.tel_error}class="error"{/if}
+ name="{$jobpref}[tel]" value="{$job.tel}" />
+ </td>
</tr>
<tr>
<td>Fax :</td>
</tr>
<tr>
<td>Fax :</td>
- <td><input type="text" size="18" maxlength="18" name="{$jobpref}[tel_fax]" value="{$job.tel_fax}" /></td>
+ <td>
+ <input type="text" size="18" maxlength="18" {if $job.fax_error}class="error"{/if}
+ name="{$jobpref}[fax]" value="{$job.fax}" /></td>
</tr>
<tr>
<td>Mobile :</td>
</tr>
<tr>
<td>Mobile :</td>
- <td><input type="text" size="18" maxlength="18" name="{$jobpref}[tel_mobile]" value="{$job.tel_mobile}" /></td>
+ <td>
+ <input type="text" size="18" maxlength="18" {if $job.mobile_error}class="error"{/if}
+ name="{$jobpref}[mobile]" value="{$job.mobile}" />
+ </td>
</tr>
</table>
</div>
</tr>
</table>
</div>