Commit c86826f8 by Félicie

email added

parent 1e561340
Pipeline #2112 passed with stage
in 1 minute 27 seconds
......@@ -236,7 +236,9 @@ 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')) {
......@@ -438,8 +440,10 @@ $(document).ready(function() {
traditional: true,
contentType: "application/json; charset=utf-8",
success: function(data) {
parentName = data.member.parent_barcode_base + ' - ' + data.member.parent_name;
childName = data.member.barcode_base + ' - ' + data.member.name;
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);
},
error: function(data) {
......
......@@ -18,15 +18,23 @@
<div id="confirmModal">
<h3>Le binôme est sur le point d'être désolidarisé</h3>
<br />
Êtes-vous sûr.e de vouloir désolidariser :
<div>
Êtes-vous sur de vouloir désolidariser
<div class="attached-members">
<div class="member">
<div class="name"><strong><span id="parentName"></span></strong> (titulaire)</div>
<div class="name">
<strong><span id="parentName"></span></strong> (titulaire)<br />
<i><span id="parentEmail"></span></i>
</div>
<div><input type="checkbox" name="parent_gone" class="after_unattached_state" /></div>
</div>
avec
<div class="member">
<div class="name"><strong><span id="childName"></span></strong></div>
<div class="name">
<strong><span id="childName"></span></strong><br />
<i><span id="childEmail"></span></i>
</div>
<div><input type="checkbox" name="child_gone" class="after_unattached_state" /></div>
</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