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
7ded1428
Commit
7ded1428
authored
Sep 10, 2021
by
Damien Moulard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
display delay end date
parent
33e5c6d2
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
22 additions
and
0 deletions
+22
-0
members-space.css
members_space/static/css/members-space.css
+10
-0
members-space-home.js
members_space/static/js/members-space-home.js
+9
-0
home.html
templates/members_space/home.html
+3
-0
No files found.
members_space/static/css/members-space.css
View file @
7ded1428
...
...
@@ -102,6 +102,8 @@ body {
}
#home_choose_makeups
{
display
:
none
;
font-size
:
1.8rem
;
;
}
.member_status_up_to_date
,
...
...
@@ -129,4 +131,11 @@ body {
flex-direction
:
column
;
align-items
:
center
;
}
}
#home_delay_date_stop_container
{
color
:
#f0ad4e
;
margin-top
:
-1rem
;
margin-bottom
:
1rem
;
display
:
none
;
}
\ No newline at end of file
members_space/static/js/members-space-home.js
View file @
7ded1428
...
...
@@ -75,11 +75,20 @@ function init_my_shifts_tile() {
function
init_my_info_tile
()
{
$
(
"#home_choose_makeups"
).
off
();
// Status related
$
(
"#home_tile_my_info #home_member_status"
)
.
text
(
possible_cooperative_state
[
partner_data
.
cooperative_state
])
.
addClass
(
"member_status_"
+
partner_data
.
cooperative_state
);
if
(
partner_data
.
cooperative_state
===
'delay'
&&
partner_data
.
date_delay_stop
!==
'False'
)
{
const
d
=
new
Date
(
Date
.
parse
(
partner_data
.
date_delay_stop
));
const
f_date_delay_stop
=
d
.
getDate
()
+
'/'
+
(
"0"
+
(
d
.
getMonth
()
+
1
)).
slice
(
-
2
)
+
'/'
+
d
.
getFullYear
();
$
(
"#home_delay_date_stop"
).
text
(
f_date_delay_stop
);
$
(
"#home_delay_date_stop_container"
).
show
();
}
if
(
partner_data
.
makeups_to_do
>
0
)
{
$
(
"#home_choose_makeups"
).
show
();
...
...
templates/members_space/home.html
View file @
7ded1428
...
...
@@ -10,6 +10,9 @@
</div>
<div
class=
"tile_content"
>
<p>
Mon statut :
<span
id=
"home_member_status"
class=
"home_member_info"
></span></p>
<div
id=
"home_delay_date_stop_container"
>
( jusqu'au
<span
id=
"home_delay_date_stop"
></span>
)
</div>
<div
id=
"home_member_status_extra_info_area"
>
<button
type=
"button"
class=
"btn--danger"
id=
"home_choose_makeups"
>
Je sélectionne mes rattrapages
...
...
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