Commit 242aa689 authored by Roland Denis's avatar Roland Denis
Browse files

Changing input field opacity for job of type CDI

parent 0bf08078
Pipeline #4735 passed with stages
in 43 seconds
......@@ -94,7 +94,7 @@
Lieu <br>
<input type="text" name="location" value="">
</p>
<p>
<p id="duration_field">
Durée <br>
<input type="text" name="duration" value="">
</p>
......@@ -138,7 +138,9 @@
});
function update_duration_availability() {
document.getElementsByName("duration")[0].disabled = (document.getElementsByName("job_type")[0].value == 'cdi');
var is_cdi = document.getElementsByName("job_type")[0].value == 'cdi';
document.getElementsByName("duration")[0].disabled = is_cdi;
document.getElementById("duration_field").style.opacity = is_cdi ? '0.5' : 'initial';
}
update_duration_availability();
......
Supports Markdown
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