X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;ds=inline;f=templates%2Fprofile%2Fjobs.job.tpl;h=f350a6ad64279cb831517280e21c7651813c1621;hb=5b48ebf46ef939d701852d2117bbcf308036027c;hp=e7c816f901b8efe9f1162a0758a8c3b63006b53c;hpb=fb813fb52d5ab65ca9a5b92b5cb9089523380d79;p=platal.git
diff --git a/templates/profile/jobs.job.tpl b/templates/profile/jobs.job.tpl
index e7c816f..f350a6a 100644
--- a/templates/profile/jobs.job.tpl
+++ b/templates/profile/jobs.job.tpl
@@ -1,6 +1,6 @@
{**************************************************************************}
{* *}
-{* Copyright (C) 2003-2010 Polytechnique.org *}
+{* Copyright (C) 2003-2011 Polytechnique.org *}
{* http://opensource.polytechnique.org/ *}
{* *}
{* This program is free software; you can redistribute it and/or modify *}
@@ -20,11 +20,18 @@
{* *}
{**************************************************************************}
-{assign var=jobid value="job_"|cat:$i}
+
+
+{assign var=jobid value="jobs_"|cat:$i}
{assign var=jobpref value="jobs[`$i`]"}
{assign var=sector_text value="sector_text_"|cat:$i}
{assign var=sector value="sector_"|cat:$i}
{assign var=entreprise value="entreprise_"|cat:$i}
+{if !hasPerm('directory_private') && ($job.pub eq 'private') && !$new}
+{assign var=hiddenjob value=true}
+{else}
+{assign var=hiddenjob value=false}
+{/if}
@@ -34,9 +41,9 @@
- Restaurer l'entreprise n°{$i+1} :
+ Restaurer l'entreprise n°{$i+1} : {if $hiddenjob}(masquée){else} {/if}
@@ -45,131 +52,123 @@
- {include file="include/flags.radio.tpl" name="`$jobpref`[pub]" val=$job.pub}
+ {include file="include/flags.radio.tpl" name="`$jobpref`[pub]" val=$job.pub disabled=$hiddenjob
+ mainField='jobs' mainId=$i subField='w_address,w_email,w_phone' subId=-1}
Entreprise n°{$i+1} :
- {if $job.tmp_name}{$job.tmp_name} (en cours de validation) {else}
-
+ {/if}
+ {else}
+ {if t($job.tmp_name)}{$job.tmp_name} (en cours de validation) {else}
+
{/if}
-
+ {/if}
+
{icon name=cross title="Supprimer cet emploi"}
- {if !$job.tmp_name && !$job.name}
-
+ {if !t($job.tmp_name)}{if !t($job.name)}
+
- Si ton entreprise ne figure pas dans la liste,
+ Si l'entreprise ne figure pas dans la liste,
clique ici et complète les informations la concernant.
- {/if}
Acronyme
-
+
Page web
-
+
Email de contact
-
+
-
-
-
Adresse du siège
-
- {include file="geoloc/form.address.tpl" prefname="`$jobpref`[hq_address]"
- prefid="`$jobid`_address" address=$job.hq_address}
-
-
+ Adresse du siège
+
+
Téléphone
-
+
Fax
-
+
+ {/if}{/if}
-
- Ta place dans l'entreprise
-
-
- Secteur d'activité
-
-
- {icon name="table" title="Tous les secteurs"}
-
-
-
- Secteur d'activité
-
-
-
- {foreach from=$sectors item=item}
-
- {$item.label}
-
+
+ Place dans l'entreprise
+
+
+ Mots-clefs
+
+
+ {icon name="table" title="Tous les mots-clefs"}
+
-
-
-
+
+
-
-
-
-
-
-
-
-
-
-
+
Description
-
-
+
Page perso
-
-
+
Adresse
- {include file="include/flags.radio.tpl" name="`$jobpref`[w_address][pub]" val=$job.w_address.pub}
+ {include file="include/flags.radio.tpl" name="`$jobpref`[w_address][pub]" val=$job.w_address.pub
+ subField='w_address' mainField='jobs' mainId=$i subId=''}
{include file="geoloc/form.address.tpl" prefname="`$jobpref`[w_address]"
@@ -178,22 +177,34 @@
+ {if $hiddenjob}
+
+
+
+
+
+
+ {else}
{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 id=$i}
-
+ class="pair" divId="`$jobid`_w_email" i=$i error=$job.w_email_error prefix="w_" pub=$job.w_email_pub id=$i
+ subField='w_email' mainField='jobs' mainId=$i subId=''}
+ {/if}
+
{foreach from=$job.w_phone key=t item=phone}
- {include file="profile/phone.tpl" prefname="`$jobpref`[w_phone]" prefid="`$jobid`_w_phone" telid=$t tel=$phone}
+ {include file="profile/phone.tpl" prefname="`$jobpref`[w_phone]" prefid="`$jobid`_w_phone" telid=$t tel=$phone
+ subField='w_phone' mainField='jobs' mainId=$i}
{/foreach}
{if $job.w_phone|@count eq 0}
- {include file="profile/phone.tpl" prefname="`$jobpref`[w_phone]" prefid="`$jobid`_w_phone" telid=0 tel=0}
+ {include file="profile/phone.tpl" prefname="`$jobpref`[w_phone]" prefid="`$jobid`_w_phone" telid=0 tel=0
+ subField='w_phone' mainField='jobs' mainId=$i}
{/if}