Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
third-party
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
2
Merge Requests
2
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
cooperatic-foodcoops
third-party
Commits
690698a1
Commit
690698a1
authored
Apr 14, 2022
by
Félicie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
email added
parent
bc637211
Pipeline
#2107
passed with stage
in 1 minute 34 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
2 deletions
+12
-2
manage_attached.js
members/static/js/admin/manage_attached.js
+5
-0
manage_attached_delete_pair.html
templates/members/admin/manage_attached_delete_pair.html
+7
-2
No files found.
members/static/js/admin/manage_attached.js
View file @
690698a1
...
...
@@ -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'
};
...
...
templates/members/admin/manage_attached_delete_pair.html
View file @
690698a1
...
...
@@ -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>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment