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
c86826f8
Commit
c86826f8
authored
Apr 14, 2022
by
Félicie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
email added
parent
1e561340
Pipeline
#2112
passed with stage
in 1 minute 27 seconds
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
5 deletions
+17
-5
manage_attached.js
members/static/js/admin/manage_attached.js
+6
-2
manage_attached_delete_pair.html
templates/members/admin/manage_attached_delete_pair.html
+11
-3
No files found.
members/static/js/admin/manage_attached.js
View file @
c86826f8
...
@@ -236,7 +236,9 @@ function confirmDeletion(childId) {
...
@@ -236,7 +236,9 @@ 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'
))
{
...
@@ -438,8 +440,10 @@ $(document).ready(function() {
...
@@ -438,8 +440,10 @@ $(document).ready(function() {
traditional
:
true
,
traditional
:
true
,
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
childName
=
data
.
member
.
barcode_base
+
' - '
+
data
.
member
.
name
;
parentEmail
=
data
.
member
.
email
childName
=
data
.
member
.
barcode_base
+
' - '
+
data
.
member
.
name
childEmail
=
data
.
member
.
email
confirmDeletion
(
childId
);
confirmDeletion
(
childId
);
},
},
error
:
function
(
data
)
{
error
:
function
(
data
)
{
...
...
templates/members/admin/manage_attached_delete_pair.html
View file @
c86826f8
...
@@ -18,15 +18,23 @@
...
@@ -18,15 +18,23 @@
<div
id=
"confirmModal"
>
<div
id=
"confirmModal"
>
<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
/>
Êtes-vous sûr.e de vouloir désolidariser :
<div>
<div>
Êtes-vous sur de vouloir désolidariser
<div
class=
"attached-members"
>
<div
class=
"attached-members"
>
<div
class=
"member"
>
<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><input
type=
"checkbox"
name=
"parent_gone"
class=
"after_unattached_state"
/></div>
</div>
</div>
avec
<div
class=
"member"
>
<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><input
type=
"checkbox"
name=
"child_gone"
class=
"after_unattached_state"
/></div>
</div>
</div>
</div>
</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