Commit 333de5bd authored by Roland Denis's avatar Roland Denis
Browse files

Adding "Concours" job offer type

parent c1b29f1f
Pipeline #6058 passed with stages
in 49 seconds
...@@ -97,7 +97,8 @@ JOBOFFER_TYPE = { ...@@ -97,7 +97,8 @@ JOBOFFER_TYPE = {
'cdd': 'CDD', 'cdd': 'CDD',
'postdoc': 'Post-doctorat', 'postdoc': 'Post-doctorat',
'these': 'Thèse', 'these': 'Thèse',
'stage': 'Stage' 'stage': 'Stage',
'concours': 'Concours',
} }
PELICAN_JOB_OFFER_PATH = 'content/job_offers' PELICAN_JOB_OFFER_PATH = 'content/job_offers'
......
...@@ -149,6 +149,7 @@ JOB_OFFER_TAGS = { ...@@ -149,6 +149,7 @@ JOB_OFFER_TAGS = {
'postdoc': 'Post-doc', 'postdoc': 'Post-doc',
'these': 'Thèse', 'these': 'Thèse',
'stage': 'Stage', 'stage': 'Stage',
'concours': 'Concours',
} }
# We don't need authors pages # We don't need authors pages
......
...@@ -34,7 +34,7 @@ ...@@ -34,7 +34,7 @@
<span>{{ article.job_employer }}</span> <span>{{ article.job_employer }}</span>
</div> </div>
{% endif %} {% endif %}
{% if article.job_duration and article.job_type != 'CDI' %} {% if article.job_duration and article.job_type != 'CDI' and article.job_type != 'Concours' %}
<div class="col-md-4"> <div class="col-md-4">
<img src="{{ SITEURL }}/theme/img/calendrier_full.png" alt="Durée du contrat"/><br/> <img src="{{ SITEURL }}/theme/img/calendrier_full.png" alt="Durée du contrat"/><br/>
<span>{{ article.job_duration }}</span> <span>{{ article.job_duration }}</span>
......
...@@ -138,7 +138,8 @@ ...@@ -138,7 +138,8 @@
}); });
function update_duration_availability() { function update_duration_availability() {
var is_cdi = document.getElementsByName("job_type")[0].value == 'cdi'; var job_type = document.getElementsByName("job_type")[0].value;
var is_cdi = job_type == 'cdi' || job_type == 'concours';
document.getElementsByName("duration")[0].disabled = is_cdi; document.getElementsByName("duration")[0].disabled = is_cdi;
document.getElementById("duration_field").style.opacity = is_cdi ? '0.5' : 'initial'; document.getElementById("duration_field").style.opacity = is_cdi ? '0.5' : 'initial';
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment