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