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
1
Merge Requests
1
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
c55afbb8
Commit
c55afbb8
authored
Nov 19, 2021
by
Damien Moulard
Browse files
Options
Browse Files
Download
Plain Diff
fix merge conflict
parents
6c445deb
3408c38b
Pipeline
#1481
passed with stage
in 1 minute 33 seconds
Changes
15
Pipelines
1
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
15 changed files
with
352 additions
and
22 deletions
+352
-22
admin.py
members/admin.py
+103
-2
members-space-faq.css
members_space/static/css/members-space-faq.css
+95
-0
members-space-my-info.css
members_space/static/css/members-space-my-info.css
+17
-2
members-space.css
members_space/static/css/members-space.css
+18
-1
members-space-faq.js
members_space/static/js/members-space-faq.js
+41
-0
members-space-header.js
members_space/static/js/members-space-header.js
+7
-0
members-space-shifts-exchange.js
members_space/static/js/members-space-shifts-exchange.js
+1
-1
members-space.js
members_space/static/js/members-space.js
+10
-3
urls.py
members_space/urls.py
+1
-0
views.py
members_space/views.py
+24
-1
module_config.js
outils/static/js/module_config.js
+0
-1
views.py
shifts/views.py
+9
-4
faq.html
templates/members_space/faq.html
+0
-0
header.html
templates/members_space/header.html
+7
-4
index.html
templates/members_space/index.html
+19
-3
No files found.
members/admin.py
View file @
c55afbb8
...
...
@@ -44,13 +44,114 @@ default_msettings = {'msg_accueil': {'title': 'Message borne accueil',
'class'
:
'link'
,
'sort_order'
:
6
},
'request_form_link'
:
{
'title'
:
'Faire une demande au Bureau Des Membres'
,
'type'
:
'text'
,
'value'
:
''
,
'class'
:
'link'
,
'sort_order'
:
7
},
'late_service_form_link'
:
{
'title'
:
'Retard à mon service ou oubli validation'
,
'type'
:
'text'
,
'value'
:
''
,
'class'
:
'link'
,
'sort_order'
:
8
},
'change_template_form_link'
:
{
'title'
:
'Demande de changement de créneau'
,
'type'
:
'text'
,
'value'
:
''
,
'class'
:
'link'
,
'sort_order'
:
9
},
#TODO vérifier le nom d'un "binome"
'associated_subscribe_form_link'
:
{
'title'
:
'Demande de création de binôme'
,
'type'
:
'text'
,
'value'
:
''
,
'class'
:
'link'
,
'sort_order'
:
10
},
#TODO vérifier le nom d'un "binome"
'associated_unsubscribe_form_link'
:
{
'title'
:
'Se désolidariser de son binôme'
,
'type'
:
'text'
,
'value'
:
''
,
'class'
:
'link'
,
'sort_order'
:
11
},
'template_unsubscribe_form_link'
:
{
'title'
:
'Se désinscrire de son créneau'
,
'type'
:
'text'
,
'value'
:
''
,
'class'
:
'link'
,
'sort_order'
:
12
},
'change_email_form_link'
:
{
'title'
:
'Changer d
\'
adresse mail'
,
'type'
:
'text'
,
'value'
:
''
,
'class'
:
'link'
,
'sort_order'
:
13
},
'coop_unsubscribe_form_link'
:
{
'title'
:
'Demande de démission de la coopérative et/ou de remboursement de mes parts sociales'
,
'type'
:
'text'
,
'value'
:
''
,
'class'
:
'link'
,
'sort_order'
:
14
},
'sick_leave_form_link'
:
{
'title'
:
'Demande de congé maladie ou parental'
,
'type'
:
'text'
,
'value'
:
''
,
'class'
:
'link'
,
'sort_order'
:
15
},
'underage_subscribe_form_link'
:
{
'title'
:
'Demande de création d’un compte mineur rattaché'
,
'type'
:
'text'
,
'value'
:
''
,
'class'
:
'link'
,
'sort_order'
:
16
},
'helper_subscribe_form_link'
:
{
'title'
:
'Rejoindre la Brigade Solidaire'
,
'type'
:
'text'
,
'value'
:
''
,
'class'
:
'link'
,
'sort_order'
:
17
},
'helper_unsubscribe_form_link'
:
{
'title'
:
'Se désinscrire de la brigade solidaire'
,
'type'
:
'text'
,
'value'
:
''
,
'class'
:
'link'
,
'sort_order'
:
18
},
'covid_form_link'
:
{
'title'
:
'J
\'
ai le Covid-19 !'
,
'type'
:
'text'
,
'value'
:
''
,
'class'
:
'link'
,
'sort_order'
:
19
},
'covid_end_form_link'
:
{
'title'
:
'Fin d
\'
exemption: reprise de mes services'
,
'type'
:
'text'
,
'value'
:
''
,
'class'
:
'link'
,
'sort_order'
:
20
},
'member_cant_have_delay_form_link'
:
{
'title'
:
'Lien vers le formulaire pour les membres n
\'
ayant pas rattrapé leur service après 6 mois'
,
'type'
:
'text'
,
'value'
:
''
,
'class'
:
'link'
,
'sort_order'
:
7
'sort_order'
:
21
}
}
def
config
(
request
):
...
...
@@ -244,7 +345,7 @@ def get_makeups_members(request):
return
JsonResponse
({
'res'
:
res
})
def
update_members_makeups
(
request
):
"""
Met à jour
les rattrapages des membres passés dans la requête """
"""
Décrémente
les rattrapages des membres passés dans la requête """
res
=
{}
is_connected_user
=
CagetteUser
.
are_credentials_ok
(
request
)
if
is_connected_user
is
True
:
...
...
members_space/static/css/members-space-faq.css
0 → 100644
View file @
c55afbb8
#faqBDM
{
font-size
:
1.8rem
;
}
#faqBDM
.block
{
width
:
100%
;
}
.info_slots_shifts
{
margin
:
2rem
0
;
}
.grp_text
{
margin-top
:
25px
;
}
.param
{
margin-bottom
:
15px
;}
.param
label
{
font-weight
:
bold
;}
input
.link
{
min-width
:
50em
;}
.submit_button
{
margin-bottom
:
10px
;}
/* Style the buttons that are used to open and close the accordion panel */
.accordion
{
background-color
:
#eee
;
color
:
#444
;
cursor
:
pointer
;
padding
:
18px
;
width
:
100%
;
text-align
:
left
;
border
:
none
;
outline
:
none
;
transition
:
0.4s
;
}
/* Add a background color to the button if it is clicked on (add the .active class with JS), and when you move the mouse over it (hover) */
.active
,
.accordion
:hover
{
background-color
:
#ccc
;
}
/* Style the accordion panel. Note: hidden by default */
.panel
{
padding
:
0
18px
;
padding-bottom
:
10px
;
background-color
:
white
;
display
:
none
;
overflow
:
hidden
;
border-left
:
1px
solid
#E5E5E5
;
border-right
:
1px
solid
#E5E5E5
;
border-bottom
:
1px
solid
#E5E5E5
;
border-bottom-left-radius
:
15px
;
border-bottom-right-radius
:
15px
;
}
button
.accordion
::after
{
content
:
'\002B'
;
color
:
#777
;
font-weight
:
bold
;
float
:
right
;
margin-left
:
5px
;
}
button
.accordion.active
::after
{
content
:
"\2212"
;
}
.btn_faq
{
white-space
:
normal
;
border-radius
:
5px
;
margin-top
:
3px
;
padding-right
:
25px
;
display
:
flex
;
align-items
:
flex-end
;
}
.full_width
{
width
:
100%
;
}
.faq_link_button_area
{
margin-top
:
10px
;
height
:
100%
;
}
.faq_link_button
{
white-space
:
normal
;
border-radius
:
5px
;
}
.faq_link_button
:hover
{
color
:
#fff
;
text-decoration
:
none
;
}
.faq_intro_texts
{
margin-bottom
:
30px
;
}
\ No newline at end of file
members_space/static/css/members-space-my-info.css
View file @
c55afbb8
...
...
@@ -17,12 +17,28 @@
padding
:
1.5rem
0
;
}
@media
screen
and
(
min-width
:
351px
)
and
(
max-width
:
435px
)
{
.my_info_line
{
font-size
:
80%
;
padding
:
2vw
0
;
}
}
@media
screen
and
(
max-width
:
350px
)
{
.my_info_line
{
font-size
:
3.5vw
;
padding
:
2vw
0
;
}
}
.my_info_line_left
{
width
:
50%
;
text-align
:
right
;
padding-right
:
2rem
;
font-weight
:
bold
;
}
.my_info_line_right
{
width
:
50%
;
padding-left
:
2rem
;
...
...
@@ -83,4 +99,4 @@
#my_info
.member_shift_name_area
{
align-items
:
flex-start
;
}
}
\ No newline at end of file
}
members_space/static/css/members-space.css
View file @
c55afbb8
...
...
@@ -6,6 +6,12 @@ body {
margin
:
35px
0
30px
0
;
}
@media
screen
and
(
max-width
:
435px
)
{
.page_title
{
margin
:
4vw
0
3vw
0
;
}
}
/* -- Tiles */
.tiles_container
{
...
...
@@ -48,6 +54,7 @@ body {
font-size
:
2.4rem
;
padding
:
2rem
0
;
width
:
80%
;
word-break
:
break-all
;
}
.tile_content
{
...
...
@@ -150,6 +157,7 @@ body {
}
#member_status_action
{
display
:
flex
;
margin-bottom
:
20px
;
}
@media
screen
and
(
max-width
:
992px
)
{
...
...
@@ -167,13 +175,22 @@ body {
.unsuscribed_form_link
{
display
:
none
;
text-decoration
:
none
;
font-size
:
1.5rem
;
font-size
:
1.7rem
;
word-break
:
normal
;
}
.unsuscribed_form_link
:hover
{
text-decoration
:
none
;
}
@media
(
max-width
:
435px
)
{
.unsuscribed_form_link
{
font-size
:
90%
;
line-height
:
7vw
;
}
}
.member_status_up_to_date
,
.member_status_exempted
{
color
:
#5cb85c
;
...
...
members_space/static/js/members-space-faq.js
0 → 100644
View file @
c55afbb8
function
init_faq
()
{
$
(
"#unsuscribe_form_link_btn"
).
prop
(
"href"
,
unsuscribe_form_link
);
$
(
"#unsuscribe_form_link_btn2"
).
prop
(
"href"
,
unsuscribe_form_link
);
$
(
"#change_template_form_link_btn"
).
prop
(
"href"
,
change_template_form_link
);
$
(
"#template_unsubscribe_form_link_btn"
).
prop
(
"href"
,
template_unsubscribe_form_link
);
$
(
"#late_service_form_link_btn"
).
prop
(
"href"
,
late_service_form_link
);
$
(
"#sick_leave_form_link_btn"
).
prop
(
"href"
,
sick_leave_form_link
);
$
(
"#associated_subscribe_form_link_btn"
).
prop
(
"href"
,
associated_subscribe_form_link
);
$
(
"#associated_unsubscribe_form_link_btn"
).
prop
(
"href"
,
associated_unsubscribe_form_link
);
$
(
"#covid_form_link_btn"
).
prop
(
"href"
,
covid_form_link
);
$
(
"#covid_end_form_link_btn"
).
prop
(
"href"
,
covid_end_form_link
);
$
(
"#underage_subscribe_form_link_btn"
).
prop
(
"href"
,
underage_subscribe_form_link
);
$
(
"#change_email_form_link_btn"
).
prop
(
"href"
,
change_email_form_link
);
$
(
"#coop_unsubscribe_form_link_btn"
).
prop
(
"href"
,
coop_unsubscribe_form_link
);
$
(
"#helper_subscribe_form_link_btn"
).
prop
(
"href"
,
helper_subscribe_form_link
);
$
(
"#helper_unsubscribe_form_link_btn"
).
prop
(
"href"
,
helper_unsubscribe_form_link
);
$
(
"#request_form_link_btn2"
).
prop
(
"href"
,
request_form_link
);
$
(
"#request_form_link_btn"
).
prop
(
"href"
,
request_form_link
);
}
$
(
document
).
on
(
'click'
,
'.accordion'
,
function
()
{
/* Toggle between adding and removing the "active" class,
to highlight the button that controls the panel */
this
.
classList
.
toggle
(
"active"
);
/* Toggle between hiding and showing the active panel */
var
panel
=
this
.
nextElementSibling
;
if
(
panel
.
style
.
display
===
"block"
)
{
panel
.
style
.
display
=
"none"
;
}
else
{
panel
.
style
.
display
=
"block"
;
}
$
(
"#shift_exchange_btn"
).
on
(
"click"
,
()
=>
{
goto
(
'echange-de-services'
);
});
});
\ No newline at end of file
members_space/static/js/members-space-header.js
View file @
c55afbb8
...
...
@@ -36,6 +36,13 @@ $(document).ready(function() {
}
toggleHeader
();
});
$
(
'#nav_faq'
).
on
(
'click'
,
(
e
)
=>
{
e
.
preventDefault
();
if
(
current_location
!==
"faq"
)
{
goto
(
'faq'
);
}
toggleHeader
();
});
$
(
'#nav_shifts_exchange'
).
on
(
'click'
,
(
e
)
=>
{
e
.
preventDefault
();
if
(
current_location
!==
"shifts_exchange"
)
{
...
...
members_space/static/js/members-space-shifts-exchange.js
View file @
c55afbb8
...
...
@@ -136,7 +136,7 @@ function init_shifts_list() {
}
else
{
shift_line_template
.
find
(
".selectable_shift_line"
).
removeClass
(
"btn"
);
shift_line_template
.
find
(
".selectable_shift_line"
).
addClass
(
"btn--primary"
);
shift_line_template
.
find
(
".checkbox"
).
removeProp
(
"disabled"
);
shift_line_template
.
find
(
".checkbox"
).
prop
(
"disabled"
,
false
);
shift_line_template
.
find
(
".checkbox"
).
prop
(
"value"
,
shift
.
id
);
}
...
...
members_space/static/js/members-space.js
View file @
c55afbb8
...
...
@@ -55,7 +55,7 @@ function load_partner_shifts(partner_id) {
/* - Navigation */
/**
* @param {String} page home | mes-infos | mes-services | echange-de-services
* @param {String} page home | mes-infos | mes-services | echange-de-services
| faq
*/
function
goto
(
page
)
{
if
(
window
.
location
.
pathname
===
base_location
)
{
...
...
@@ -68,8 +68,8 @@ function goto(page) {
/**
* Define which html content to load from server depending on the window location
*
* WARNING: For the routing system to work,
*
* WARNING: For the routing system to work,
* public urls (those the users will see & navigate to) must be different than the server urls used to fetch resources
* (ex: public url: /members_space/mes-info ; server url: /members_space/my_info)
*/
...
...
@@ -88,6 +88,10 @@ function update_dom() {
current_location
=
"my_shifts"
;
$
(
"#main_content"
).
load
(
"/members_space/my_shifts"
,
update_content
);
$
(
"#nav_my_shifts"
).
addClass
(
"active"
);
}
else
if
(
window
.
location
.
pathname
===
base_location
+
"faq"
)
{
current_location
=
"faq"
;
$
(
"#main_content"
).
load
(
"/members_space/faqBDM"
,
update_content
);
$
(
"#nav_faq"
).
addClass
(
"active"
);
}
else
if
(
window
.
location
.
pathname
===
base_location
+
"echange-de-services"
)
{
current_location
=
"shifts_exchange"
;
$
(
"#main_content"
).
load
(
"/members_space/shifts_exchange"
,
update_content
);
...
...
@@ -112,6 +116,9 @@ function update_content() {
case
'my_shifts'
:
init_my_shifts
();
break
;
case
'faq'
:
init_faq
();
break
;
case
'shifts_exchange'
:
init_shifts_exchange
();
break
;
...
...
members_space/urls.py
View file @
c55afbb8
...
...
@@ -9,6 +9,7 @@ urlpatterns = [
url
(
r'^my_info$'
,
views
.
my_info
),
url
(
r'^my_shifts$'
,
views
.
my_shifts
),
url
(
r'^shifts_exchange$'
,
views
.
shifts_exchange
),
url
(
r'^faqBDM$'
,
views
.
faqBDM
),
url
(
r'^no_content$'
,
views
.
no_content
),
url
(
r'^get_shifts_history$'
,
views
.
get_shifts_history
),
url
(
'/*$'
,
views
.
index
),
# Urls unknown from the server will redirect to index
...
...
members_space/views.py
View file @
c55afbb8
...
...
@@ -130,7 +130,20 @@ def index(request, exception=None):
context
[
'abcd_calendar_link'
]
=
(
msettings
[
'abcd_calendar_link'
][
'value'
]
if
'abcd_calendar_link'
in
msettings
else
''
)
context
[
'request_form_link'
]
=
msettings
[
'request_form_link'
][
'value'
]
if
'request_form_link'
in
msettings
else
''
context
[
'late_service_form_link'
]
=
msettings
[
'late_service_form_link'
][
'value'
]
if
'late_service_form_link'
in
msettings
else
''
context
[
'change_template_form_link'
]
=
msettings
[
'change_template_form_link'
][
'value'
]
if
'change_template_form_link'
in
msettings
else
''
context
[
'associated_subscribe_form_link'
]
=
msettings
[
'associated_subscribe_form_link'
][
'value'
]
if
'associated_subscribe_form_link'
in
msettings
else
''
context
[
'associated_unsubscribe_form_link'
]
=
msettings
[
'associated_unsubscribe_form_link'
][
'value'
]
if
'associated_unsubscribe_form_link'
in
msettings
else
''
context
[
'template_unsubscribe_form_link'
]
=
msettings
[
'template_unsubscribe_form_link'
][
'value'
]
if
'template_unsubscribe_form_link'
in
msettings
else
''
context
[
'change_email_form_link'
]
=
msettings
[
'change_email_form_link'
][
'value'
]
if
'change_email_form_link'
in
msettings
else
''
context
[
'coop_unsubscribe_form_link'
]
=
msettings
[
'coop_unsubscribe_form_link'
][
'value'
]
if
'coop_unsubscribe_form_link'
in
msettings
else
''
context
[
'sick_leave_form_link'
]
=
msettings
[
'sick_leave_form_link'
][
'value'
]
if
'sick_leave_form_link'
in
msettings
else
''
context
[
'underage_subscribe_form_link'
]
=
msettings
[
'underage_subscribe_form_link'
][
'value'
]
if
'underage_subscribe_form_link'
in
msettings
else
''
context
[
'helper_subscribe_form_link'
]
=
msettings
[
'helper_subscribe_form_link'
][
'value'
]
if
'helper_subscribe_form_link'
in
msettings
else
''
context
[
'helper_unsubscribe_form_link'
]
=
msettings
[
'helper_unsubscribe_form_link'
][
'value'
]
if
'helper_unsubscribe_form_link'
in
msettings
else
''
context
[
'covid_form_link'
]
=
msettings
[
'covid_form_link'
][
'value'
]
if
'covid_form_link'
in
msettings
else
''
context
[
'covid_end_form_link'
]
=
msettings
[
'covid_end_form_link'
][
'value'
]
if
'covid_end_form_link'
in
msettings
else
''
else
:
# may arrive when switching database without cleaning cookie
return
redirect
(
'/website/deconnect'
)
...
...
@@ -180,6 +193,16 @@ def shifts_exchange(request):
}
return
HttpResponse
(
template
.
render
(
context
,
request
))
def
faqBDM
(
request
):
template
=
loader
.
get_template
(
'members_space/faq.html'
)
context
=
{
'title'
:
'foire aux questions'
,
}
msettings
=
MConfig
.
get_settings
(
'members'
)
return
HttpResponse
(
template
.
render
(
context
,
request
))
def
no_content
(
request
):
""" Endpoint the front-end will call to load the "No content" page. """
template
=
loader
.
get_template
(
'members_space/no_content.html'
)
...
...
outils/static/js/module_config.js
View file @
c55afbb8
...
...
@@ -133,7 +133,6 @@ function get_module_settings() {
})
if
(
added_elts
.
length
>
0
)
{
submit_btn
.
prependTo
(
main_content
);
submit_btn
.
clone
().
appendTo
(
main_content
);
}
submit_btn
.
click
(
save_module_settings
);
quill_containers
.
forEach
(
function
(
params
){
...
...
shifts/views.py
View file @
c55afbb8
...
...
@@ -119,15 +119,20 @@ def get_list_shift_calendar(request, partner_id):
event
[
"id"
]
=
value
[
'id'
]
smax
=
int
(
value
[
'seats_available'
])
+
int
(
value
[
'seats_reserved'
])
value
[
'address_id'
]
=
getattr
(
settings
,
'COMPANY_CODE'
,
''
)
title_prefix
=
'
-
'
if
len
(
value
[
'address_id'
])
==
2
and
','
in
value
[
'address_id'
][
1
]:
company_code
=
getattr
(
settings
,
'COMPANY_CODE'
,
''
)
title_prefix
=
''
if
company_code
!=
"lacagette"
and
len
(
value
[
'address_id'
])
==
2
and
','
in
value
[
'address_id'
][
1
]:
title_prefix
=
str
(
value
[
'address_id'
][
1
])
.
split
(
","
)[
1
]
+
" --"
elif
company_code
==
"lacagette"
:
title_prefix
=
" - "
event
[
"title"
]
=
title_prefix
+
str
(
value
[
'seats_reserved'
])
+
"/"
+
str
(
smax
)
event
[
"start"
]
=
dateIsoUTC
(
value
[
'date_begin_tz'
])
event
[
"end"
]
=
dateIsoUTC
(
value
[
'date_end_tz'
])
datetime_object
=
datetime
.
datetime
.
strptime
(
value
[
'date_end_tz'
],
"
%
Y-
%
m-
%
d
%
H:
%
M:
%
S"
)
-
datetime
.
timedelta
(
minutes
=
15
)
event
[
"end"
]
=
dateIsoUTC
(
datetime_object
.
strftime
(
"
%
Y-
%
m-
%
d
%
H:
%
M:
%
S"
))
if
len
(
l
)
>
0
:
if
use_new_members_space
is
True
:
...
...
templates/members_space/faq.html
0 → 100644
View file @
c55afbb8
This diff is collapsed.
Click to expand it.
templates/members_space/header.html
View file @
c55afbb8
...
...
@@ -6,10 +6,12 @@
{% block content %}
<div
class=
"topnav"
id=
"topnav"
>
<a
href=
"#"
class=
"nav_item active"
id=
"nav_home"
>
Espace Membre
</a>
<a
href=
"#"
class=
"nav_item"
id=
"nav_my_info"
>
Mes Infos
</a>
<a
href=
"#"
class=
"nav_item"
id=
"nav_my_shifts"
>
Mes Services
</a>
<a
href=
"#"
class=
"nav_item"
id=
"nav_shifts_exchange"
>
Échange de services
</a>
<a
href=
"javascript:void(0);"
class=
"nav_item active"
id=
"nav_home"
>
Espace Membre
</a>
<a
href=
"javascript:void(0);"
class=
"nav_item"
id=
"nav_my_info"
>
Mes Infos
</a>
<a
href=
"javascript:void(0);"
class=
"nav_item"
id=
"nav_my_shifts"
>
Mes Services
</a>
<a
href=
"javascript:void(0);"
class=
"nav_item"
id=
"nav_shifts_exchange"
>
Échange de services
</a>
<a
href=
"javascript:void(0);"
class=
"nav_item"
id=
"nav_faq"
>
Problèmes
&
Demandes
</a>
<a
href=
"javascript:void(0);"
target=
"_blank"
...
...
@@ -18,6 +20,7 @@
>
Calendrier ABCD
</a>
{# Disconnection button must have this id (logic in all_common.js) #}
<a
href=
"javascript:void(0);"
id=
"deconnect"
>
Déconnexion
</a>
<a
href=
"javascript:void(0);"
class=
"icon"
onclick=
"toggleHeader()"
>
...
...
templates/members_space/index.html
View file @
c55afbb8
...
...
@@ -4,9 +4,10 @@
{% block additionnal_css %}
<link
rel=
"stylesheet"
href=
"{% static 'css/datatables/jquery.dataTables.css' %}"
>
<link
rel=
"stylesheet"
href=
"{% static 'css/datatables/responsive.dataTables.min.css' %}"
>
<link
rel=
"stylesheet"
href=
"{% static 'fullcalendar-5.9.0/lib/main.min.css' %}"
>
</script>
<link
rel=
"stylesheet"
href=
"{% static 'fullcalendar-5.9.0/lib/main.min.css' %}"
>
<link
rel=
"stylesheet"
href=
"{% static "
css
/
members-space
.
css
"
%}?
v=
">
<link rel="
stylesheet
"
href=
"{% static "
css
/
members-space-my-shifts
.
css
"
%}?
v=
">
<link rel="
stylesheet
"
href=
"{% static "
css
/
members-space-faq
.
css
"
%}?
v=
">
<link rel="
stylesheet
"
href=
"{% static "
css
/
members-space-my-info
.
css
"
%}?
v=
">
<link rel="
stylesheet
"
href=
"{% static "
css
/
members-space-shifts-exchange
.
css
"
%}?
v=
">
{% endblock %}
...
...
@@ -56,9 +57,9 @@
<div
id=
"calendar_explaination_template"
>
<h4>
Légende du calendrier
</h4>
<a
class=
"example-event fc-daygrid-event fc-daygrid-block-event fc-h-event fc-event fc-event-start fc-event-end fc-event-future shift_booked"
><div
class=
"fc-event-main"
><div
class=
"fc-event-main-frame"
><div
class=
"fc-event-time"
>
06:00
</div><div
class=
"fc-event-title-container"
><div
class=
"fc-event-title fc-sticky"
>
- 9/12
</div></div></div></div></a>
<a
class=
"example-event fc-daygrid-event fc-daygrid-block-event fc-h-event fc-event fc-event-start fc-event-end fc-event-future shift_booked"
><div
class=
"fc-event-main"
><div
class=
"fc-event-main-frame"
><div
class=
"fc-event-time"
>
06:00
</div><div
class=
"fc-event-title-container"
><div
class=
"fc-event-title fc-sticky"
>
-
- 9/12
</div></div></div></div></a>
<p>
Un service colorié en noir : je suis déjà inscrit.e à ce service.
</p>
<a
class=
"example-event fc-daygrid-event fc-daygrid-block-event fc-h-event fc-event fc-event-start fc-event-end fc-event-future shift_less_alf"
><div
class=
"fc-event-main"
><div
class=
"fc-event-main-frame"
><div
class=
"fc-event-time"
>
10:45
</div><div
class=
"fc-event-title-container"
><div
class=
"fc-event-title fc-sticky"
>
- 3/12
</div></div></div></div></a>
<a
class=
"example-event fc-daygrid-event fc-daygrid-block-event fc-h-event fc-event fc-event-start fc-event-end fc-event-future shift_less_alf"
><div
class=
"fc-event-main"
><div
class=
"fc-event-main-frame"
><div
class=
"fc-event-time"
>
10:45
</div><div
class=
"fc-event-title-container"
><div
class=
"fc-event-title fc-sticky"
>
-
- 3/12
</div></div></div></div></a>
<p>
Un service colorié en bleu : je peux m'inscrire à ce service.
</p>
<p>
3/12
<i
class=
"arrow_explanation_numbers fas fa-arrow-right"
></i>
il y a déjà 3 places réservées à ce service sur 12 disponibles.
<b>
Plus le chiffre de gauche est petit, plus on a besoin de coopérateurs.rices à ce service !
</b></p>
...
...
@@ -76,6 +77,20 @@
var
app_env
=
'{{app_env}}'
;
var
forms_link
=
'{{forms_link}}'
;
var
unsuscribe_form_link
=
'{{unsuscribe_form_link}}'
;
var
request_form_link
=
'{{request_form_link}}'
;
var
late_service_form_link
=
'{{late_service_form_link}}'
;
var
change_template_form_link
=
'{{change_template_form_link}}'
;
var
associated_subscribe_form_link
=
'{{associated_subscribe_form_link}}'
;
var
associated_unsubscribe_form_link
=
'{{associated_unsubscribe_form_link}}'
;
var
template_unsubscribe_form_link
=
'{{template_unsubscribe_form_link}}'
;
var
change_email_form_link
=
'{{change_email_form_link}}'
;
var
coop_unsubscribe_form_link
=
'{{coop_unsubscribe_form_link}}'
;
var
sick_leave_form_link
=
'{{sick_leave_form_link}}'
;
var
underage_subscribe_form_link
=
'{{underage_subscribe_form_link}}'
;
var
helper_subscribe_form_link
=
'{{helper_subscribe_form_link}}'
;
var
helper_unsubscribe_form_link
=
'{{helper_unsubscribe_form_link}}'
;
var
covid_form_link
=
'{{covid_form_link}}'
;
var
covid_end_form_link
=
'{{covid_end_form_link}}'
;
var
member_cant_have_delay_form_link
=
'{{member_cant_have_delay_form_link}}'
;
var
abcd_calendar_link
=
"{{abcd_calendar_link}}"
var
days_to_hide
=
"{{daysToHide}}"
...
...
@@ -108,6 +123,7 @@
<script src="
{%
static
"
js
/
members-space-home
.
js
"
%}?
v=
"></script>
<script src="
{%
static
"
js
/
members-space-my-info
.
js
"
%}?
v=
"></script>
<script src="
{%
static
"
js
/
members-space-my-shifts
.
js
"
%}?
v=
"></script>
<script src="
{%
static
"
js
/
members-space-faq
.
js
"
%}?
v=
"></script>
<script src="
{%
static
"
js
/
members-space-shifts-exchange
.
js
"
%}?
v=
"></script>
<script src="
{%
static
"
js
/
members-space
.
js
"
%}?
v=
"></script>
{% endblock %}
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