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
79faad6c
Commit
79faad6c
authored
Dec 14, 2021
by
Thibault Grandjean
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add explanation for "rattratape"
parent
38643bd9
Pipeline
#1639
failed with stage
in 1 minute 31 seconds
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
2 deletions
+9
-2
members.js
members/static/js/members.js
+7
-2
index.html
templates/members/index.html
+2
-0
No files found.
members/static/js/members.js
View file @
79faad6c
...
...
@@ -62,6 +62,7 @@ var html_elts = {
real_capture
:
$
(
'#real_capture'
),
multi_results
:
$
(
'#multi_results_preview'
),
cooperative_state
:
$
(
'#cooperative_state'
),
status_explanation
:
$
(
'#status_explanation'
),
next_shifts
:
$
(
'#next_shifts'
)
};
...
...
@@ -91,8 +92,12 @@ function fill_member_slide(member) {
}
html_elts
.
image_medium
.
html
(
'<img src="'
+
img_src
+
'" width="128" />'
);
html_elts
.
cooperative_state
.
html
(
member
.
cooperative_state
);
if
(
member
.
cooperative_state
==
'Désinscrit(e)'
||
member
.
cooperative_state
==
'Rattrapage'
)
coop_info
.
addClass
(
'b_red'
);
else
if
(
member
.
cooperative_state
==
'En alerte'
||
member
.
cooperative_state
==
'Délai accordé'
)
coop_info
.
addClass
(
'b_orange'
);
if
(
member
.
cooperative_state
==
'Rattrapage'
)
{
var
explanation
=
"Tu as dû manquer un service! Pour pouvoir faire tes courses aujourd'hui, tu dois d'abord sélectionner un rattrapage sur ton espace membre."
html_elts
.
status_explanation
.
html
(
explanation
)
};
if
(
member
.
cooperative_state
==
'Désinscrit(e)'
)
coop_info
.
addClass
(
'b_red'
);
else
if
(
member
.
cooperative_state
==
'En alerte'
||
member
.
cooperative_state
==
'Délai accordé'
||
member
.
cooperative_state
==
'Rattrapage'
)
coop_info
.
addClass
(
'b_orange'
);
if
(
member
.
shifts
.
length
>
0
)
{
html_elts
.
next_shifts
.
append
(
'Prochains services : '
);
...
...
templates/members/index.html
View file @
79faad6c
...
...
@@ -107,6 +107,8 @@
</div>
<div
id=
"cooperative_state"
>
</div>
<div
id=
"status_explanation"
>
</div>
<div
id=
"next_shifts"
>
</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