Commit c925ab95 by Thibault Grandjean

Add the date of the end of exemption

parent 061ab819
Pipeline #1528 passed with stage
in 1 minute 28 seconds
...@@ -188,6 +188,12 @@ function init_my_info_data() { ...@@ -188,6 +188,12 @@ function init_my_info_data() {
$(this).removeClass('active'); $(this).removeClass('active');
}); });
}); });
} else if (partner_data.cooperative_state === 'exempted') {
const d = new Date(Date.parse(partner_data.leave_stop_date));
const f_date_delay_stop = d.getDate()+'/'+("0" + (d.getMonth() + 1)).slice(-2)+'/'+d.getFullYear();
$(".delay_date_stop").text(f_date_delay_stop);
$(".delay_date_stop_container").show();
} }
if ( if (
......
...@@ -117,6 +117,7 @@ ...@@ -117,6 +117,7 @@
"associated_partner_id" : "{{partnerData.associated_partner_id}}", "associated_partner_id" : "{{partnerData.associated_partner_id}}",
"associated_partner_name" : "{{partnerData.associated_partner_name}}", "associated_partner_name" : "{{partnerData.associated_partner_name}}",
"verif_token" : "{{partnerData.verif_token}}", "verif_token" : "{{partnerData.verif_token}}",
"leave_stop_date": "{{partnerData.leave_stop_date}}"
} }
</script> </script>
<script src="{% static "js/all_common.js" %}?v="></script> <script src="{% static "js/all_common.js" %}?v="></script>
......
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