{* *}
{**************************************************************************}
+<script type="text/javascript" src="javascript/jquery.jstree.js"></script>
{assign var=jobid value="job_"|cat:$i}
{assign var=jobpref value="jobs[`$i`]"}
{assign var=sector_text value="sector_text_"|cat:$i}
</div>
Entreprise n°{$i+1} :
{if $job.tmp_name}{$job.tmp_name} <small>(en cours de validation)</small>{else}
- <input type="text" class="enterpriseName {if $job.name_error}error{/if}" size="35" maxlength="100"
+ <input type="text" class="enterpriseName{if $job.name_error} error{/if}" size="35" maxlength="100"
name="{$jobpref}[name]" value="{$job.name}" />
{/if}
<a href="javascript:removeJob('{$jobid}','{$jobpref}')">
<a href="javascript:addEntreprise({$i})">clique ici</a> et complète les informations la concernant.</small>
</td>
</tr>
- {/if}
<tr class="{$entreprise}" style="display: none">
<td class="titre">Acronyme</td>
<td>
- <input type="text" size="35" maxlength="255" {if $job.acronym_error}class="error"{/if}
- name="{$jobpref}[hq_acronym]" value="{$job.hq_acronym}" />
+ <input type="text" size="35" maxlength="255" name="{$jobpref}[hq_acronym]" />
</td>
</tr>
<tr class="{$entreprise}" style="display: none">
<td class="titre">Page web</td>
<td>
- <input type="text" size="35" maxlength="255" {if $job.hq_url}class="error"{/if}
- name="{$jobpref}[hq_url]" value="{$job.hq_url}" />
+ <input type="text" size="35" maxlength="255" name="{$jobpref}[hq_url]" />
</td>
</tr>
<tr class="{$entreprise}" style="display: none">
<td class="titre">Email de contact</td>
<td>
- <input type="text" maxlength="60" {if $job.hq_email_error}class="error"{/if}
- name="{$jobpref}[hq_email]" value="{$job.hq_email}" />
+ <input type="text" maxlength="60" name="{$jobpref}[hq_email]" />
</td>
</tr>
<tr class="{$entreprise}" style="display: none">
- <td colspan="2">
- <div style="float: left">
- <div class="titre">Adresse du siège</div>
- <div style="margin-top: 20px; clear: both">
- {include file="geoloc/form.address.tpl" prefname="`$jobpref`[hq_address]"
- prefid="`$jobid`_address" address=$job.hq_address}
- </div>
- </div>
+ <td class="titre">Adresse du siège</td>
+ <td>
+ <textarea name="{$jobpref}[hq_address]" cols="30" rows="4"></textarea>
</td>
</tr>
<tr class="{$entreprise}" style="display: none">
<td class="titre">Téléphone</td>
<td>
- <input type="text" maxlength="28" {if $job.hq_tel_error}class="error"{/if}
- name="{$jobpref}[hq_phone]" value="{$job.hq_phone}" />
+ <input type="text" maxlength="28" name="{$jobpref}[hq_fixed]" />
</td>
</tr>
<tr class="{$entreprise}" style="display: none">
<td class="titre">Fax</td>
<td>
- <input type="text" maxlength="28" {if $job.hq_fax_error}class="error"{/if}
- name="{$jobpref}[hq_fax]" value="{$job.hq_fax}" />
+ <input type="text" maxlength="28" name="{$jobpref}[hq_fax]" />
</td>
</tr>
+ {/if}
<tr class="pair">
<td colspan="2" class="center" style="font-style: italic">Ta place dans l'entreprise</td>
</tr>
<tr class="pair {$sector_text}">
- <td class="titre">Secteur d'activité</td>
- <td>
- <input type="text" class="sectorName {if $job.sector_error}error{/if}" size="35" maxlength="100"
- name="{$jobpref}[subSubSectorName]" value="{$job.subSubSectorName}" />
- <a href="javascript:displayAllSector({$i})">{icon name="table" title="Tous les secteurs"}</a>
- </td>
- </tr>
- <tr class="pair {$sector}" style="display: none">
- <td class="titre" rowspan="4">Secteur d'activité</td>
- <td>
- <select name="{$jobpref}[sector]" onchange="updateJobSector({$i}, '')">
- <option value="0"> </option>
- {foreach from=$sectors item=item}
- <option value="{$item.id}" {if $item.id eq $job.sector}selected="selected"{/if}>
- {$item.label}
- </option>
+ <td class="titre">Mots-clefs</td>
+ <td class="job_terms">
+ <input type="text" class="term_search" size="35"/>
+ <a href="javascript:toggleJobTermsTree({$i})">{icon name="table" title="Tous les mots-clefs"}</a>
+ <script type="text/javascript">
+ /* <![CDATA[ */
+ $(function() {ldelim}
+ {foreach from=$job.terms item=term}
+ addJobTerm("{$i}", "{$term.jtid}", "{$term.full_name|replace:'"':'\\"'}");
{/foreach}
- </select>
- </td>
- </tr>
- <tr class="pair {$sector}" style="display: none">
- <td id="{$jobid}_subSector">
- <input type="hidden" name="{$jobpref}[subSector]" value="{$job.subSector|default:0}" />
- </td>
- </tr>
- <tr class="pair {$sector}" style="display: none">
- <td id="{$jobid}_subSubSector">
- <input type="hidden" name="{$jobpref}[subSubSector]" value="{$job.subSubSector|default:0}" />
+ $('#job_{$i} .term_search').autocomplete(platal_baseurl + 'profile/jobterms',
+ {ldelim}
+ "formatItem" : displayJobTerm,
+ "extraParams" : {ldelim} "jobid" : "{$i}" {rdelim},
+ "width" : $('#job_{$i} .term_search').width()*2,
+ "onItemSelect" : selectJobTerm,
+ "matchSubset" : false
+ {rdelim});
+ {rdelim});
+ /* ]]> */
+ </script>
</td>
</tr>
- <tr class="pair {$sector}" style="display: none">
- <td id="{$jobid}_alternates">
+ <tr class="pair">
+ <td colspan="2" class="term_tree">
</td>
</tr>
<tr class="pair">