Commit bab2de87 by François C.

Merge branch 'ticket_1591' into 'evolution_bdm'

ticket 1591 Add the date of the end of exemption

See merge request !80
parents dcee510a c925ab95
Pipeline #1537 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