Commit 690698a1 by Félicie

email added

parent bc637211
Pipeline #2107 passed with stage
in 1 minute 34 seconds
...@@ -225,7 +225,9 @@ function delete_pair(childId) { ...@@ -225,7 +225,9 @@ function delete_pair(childId) {
function confirmDeletion(childId) { function confirmDeletion(childId) {
var modalContent = $('#confirmModal') var modalContent = $('#confirmModal')
modalContent.find("#parentName").text(parentName) modalContent.find("#parentName").text(parentName)
modalContent.find("#parentEmail").text(parentEmail)
modalContent.find("#childName").text(childName) modalContent.find("#childName").text(childName)
modalContent.find("#childEmail").text(childEmail)
modalContent = modalContent.html(); modalContent = modalContent.html();
openModal(modalContent, () => { openModal(modalContent, () => {
if (is_time_to('delete_pair')) { if (is_time_to('delete_pair')) {
...@@ -419,8 +421,11 @@ $(document).ready(function() { ...@@ -419,8 +421,11 @@ $(document).ready(function() {
contentType: "application/json; charset=utf-8", contentType: "application/json; charset=utf-8",
success: function(data) { success: function(data) {
parentName = data.member.parent_barcode_base + ' - ' + data.member.parent_name parentName = data.member.parent_barcode_base + ' - ' + data.member.parent_name
parentEmail = data.member.email
childName = data.member.barcode_base + ' - ' + data.member.name childName = data.member.barcode_base + ' - ' + data.member.name
childEmail = data.member.email
confirmDeletion(childId); confirmDeletion(childId);
console.log(data)
}, },
error: function(data) { error: function(data) {
err = {msg: "erreur serveur lors de la récupération des infos du membre", ctx: 'load_member_infos'}; err = {msg: "erreur serveur lors de la récupération des infos du membre", ctx: 'load_member_infos'};
......
...@@ -19,8 +19,13 @@ ...@@ -19,8 +19,13 @@
<div class="mconfirm"> <div class="mconfirm">
<h3>Le binôme est sur le point d'être désolidarisé</h3> <h3>Le binôme est sur le point d'être désolidarisé</h3>
<br /> <br />
<p>Êtes-vous sur de vouloir désolidariser <b><span id="parentName"></span></b> et <p>Êtes-vous sûr.e de vouloir désolidariser :</p>
<b><span id="childName"></span></b> <p>
<b><span id="parentName"></span></b> <br />
<i><span id="parentEmail"></span></i> <br />
et <br />
<b><span id="childName"></span></b> <br />
<i><span id="childEmail"></span></i> <br />
</p> </p>
<hr/> <hr/>
</div> </div>
......
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