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
3
Merge Requests
3
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
7be71958
Commit
7be71958
authored
3 years ago
by
Damien Moulard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
access to ABCD calendar
parent
601455ba
5 merge requests
!103
WIP: Dev cooperatic
,
!87
Integration Evolution bdm
,
!104
merge dev_cooperatic into dev_principale
,
!106
Dev principale
,
!84
Ticket 1738
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
28 additions
and
4 deletions
+28
-4
.gitignore
.gitignore
+2
-0
admin.py
members/admin.py
+5
-0
members-space-header.js
members_space/static/js/members-space-header.js
+6
-0
members-space-shifts-exchange.js
members_space/static/js/members-space-shifts-exchange.js
+1
-1
views.py
members_space/views.py
+4
-1
header.html
templates/members_space/header.html
+9
-2
index.html
templates/members_space/index.html
+1
-0
No files found.
.gitignore
View file @
7be71958
...
@@ -17,3 +17,4 @@ db.sqlite3
...
@@ -17,3 +17,4 @@ db.sqlite3
shop/shop_admin_settings.json
shop/shop_admin_settings.json
shop/errors.log
shop/errors.log
.idea
.idea
members/settings.json
\ No newline at end of file
This diff is collapsed.
Click to expand it.
members/admin.py
View file @
7be71958
...
@@ -19,6 +19,11 @@ default_msettings = {'msg_accueil': {'title': 'Message borne accueil',
...
@@ -19,6 +19,11 @@ default_msettings = {'msg_accueil': {'title': 'Message borne accueil',
'title'
:
'Horaires ouverture magasin'
,
'title'
:
'Horaires ouverture magasin'
,
'type'
:
'textarea'
,
'type'
:
'textarea'
,
'value'
:
''
'value'
:
''
},
'abcd_calendar_link'
:
{
'title'
:
'Lien vers le calendrier ABCD'
,
'type'
:
'text'
,
'value'
:
''
}
}
}
}
...
...
This diff is collapsed.
Click to expand it.
members_space/static/js/members-space-header.js
View file @
7be71958
...
@@ -18,7 +18,9 @@ $(document).ready(function() {
...
@@ -18,7 +18,9 @@ $(document).ready(function() {
if
(
current_location
!==
"home"
)
{
if
(
current_location
!==
"home"
)
{
goto
(
'home'
);
goto
(
'home'
);
}
}
if
(
document
.
getElementById
(
"topnav"
).
className
!==
"topnav"
)
{
toggleHeader
();
toggleHeader
();
}
});
});
$
(
'#nav_my_info'
).
on
(
'click'
,
(
e
)
=>
{
$
(
'#nav_my_info'
).
on
(
'click'
,
(
e
)
=>
{
e
.
preventDefault
();
e
.
preventDefault
();
...
@@ -41,4 +43,8 @@ $(document).ready(function() {
...
@@ -41,4 +43,8 @@ $(document).ready(function() {
}
}
toggleHeader
();
toggleHeader
();
});
});
$
(
'#nav_calendar'
).
prop
(
"href"
,
abcd_calendar_link
);
$
(
'#nav_calendar'
).
on
(
'click'
,
()
=>
{
toggleHeader
();
});
});
});
This diff is collapsed.
Click to expand it.
members_space/static/js/members-space-shifts-exchange.js
View file @
7be71958
...
@@ -213,7 +213,7 @@ function init_calendar_page() {
...
@@ -213,7 +213,7 @@ function init_calendar_page() {
default_initial_view
=
'listWeek'
;
default_initial_view
=
'listWeek'
;
header_toolbar
=
{
header_toolbar
=
{
left
:
'title'
,
left
:
'title'
,
center
:
'
dayGridMonth,listWeek,timeGridDay
'
,
center
:
''
,
right
:
'prev,next today'
right
:
'prev,next today'
};
};
}
else
{
}
else
{
...
...
This diff is collapsed.
Click to expand it.
members_space/views.py
View file @
7be71958
...
@@ -91,7 +91,6 @@ def index(request, exception=None):
...
@@ -91,7 +91,6 @@ def index(request, exception=None):
context
[
'partnerData'
]
=
partnerData
context
[
'partnerData'
]
=
partnerData
# TODO test with partner who's not attached
if
partnerData
[
"parent_id"
]
is
not
False
:
if
partnerData
[
"parent_id"
]
is
not
False
:
partnerData
[
"parent_name"
]
=
partnerData
[
"parent_id"
][
1
]
partnerData
[
"parent_name"
]
=
partnerData
[
"parent_id"
][
1
]
partnerData
[
"parent_id"
]
=
partnerData
[
"parent_id"
][
0
]
partnerData
[
"parent_id"
]
=
partnerData
[
"parent_id"
][
0
]
...
@@ -105,6 +104,10 @@ def index(request, exception=None):
...
@@ -105,6 +104,10 @@ def index(request, exception=None):
days_to_hide
=
settings
.
SHIFT_EXCHANGE_DAYS_TO_HIDE
days_to_hide
=
settings
.
SHIFT_EXCHANGE_DAYS_TO_HIDE
context
[
'daysToHide'
]
=
days_to_hide
context
[
'daysToHide'
]
=
days_to_hide
msettings
=
MConfig
.
get_settings
(
'members'
)
if
'abcd_calendar_link'
in
msettings
:
context
[
'abcd_calendar_link'
]
=
msettings
[
'abcd_calendar_link'
][
'value'
]
else
:
else
:
# may arrive when switching database without cleaning cookie
# may arrive when switching database without cleaning cookie
return
redirect
(
'/website/deconnect'
)
return
redirect
(
'/website/deconnect'
)
...
...
This diff is collapsed.
Click to expand it.
templates/members_space/header.html
View file @
7be71958
...
@@ -10,9 +10,16 @@
...
@@ -10,9 +10,16 @@
<a
href=
"#"
class=
"nav_item"
id=
"nav_my_info"
>
Mes Infos
</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_my_shifts"
>
Mes Services
</a>
<a
href=
"#"
class=
"nav_item"
id=
"nav_shifts_exchange"
>
Échange de services
</a>
<a
href=
"#"
class=
"nav_item"
id=
"nav_shifts_exchange"
>
Échange de services
</a>
<a
href=
"#"
class=
"nav_item"
id=
"nav_calendar"
>
Calendrier ABCD
</a>
<a
href=
"javascript:void(0);"
target=
"_blank"
class=
"nav_item"
id=
"nav_calendar"
>
Calendrier ABCD
</a>
{# Disconnection button must have this id (logic in all_common.js) #}
{# Disconnection button must have this id (logic in all_common.js) #}
<a
href=
"
#
"
id=
"deconnect"
>
Déconnexion
</a>
<a
href=
"
javascript:void(0);
"
id=
"deconnect"
>
Déconnexion
</a>
<a
href=
"javascript:void(0);"
class=
"icon"
onclick=
"toggleHeader()"
>
<a
href=
"javascript:void(0);"
class=
"icon"
onclick=
"toggleHeader()"
>
<i
class=
"fa fa-bars"
></i>
<i
class=
"fa fa-bars"
></i>
</a>
</a>
...
...
This diff is collapsed.
Click to expand it.
templates/members_space/index.html
View file @
7be71958
...
@@ -90,6 +90,7 @@
...
@@ -90,6 +90,7 @@
"parent_name"
:
"{{partnerData.parent_name}}"
,
"parent_name"
:
"{{partnerData.parent_name}}"
,
}
}
var
days_to_hide
=
"{{daysToHide}}"
var
days_to_hide
=
"{{daysToHide}}"
var
abcd_calendar_link
=
"{{abcd_calendar_link}}"
</script>
</script>
<script
src=
"{% static "
js
/
all_common
.
js
"
%}?
v=
"></script>
<script
src=
"{% static "
js
/
all_common
.
js
"
%}?
v=
"></script>
<script src="
{%
static
"
js
/
members-space-home
.
js
"
%}?
v=
"></script>
<script src="
{%
static
"
js
/
members-space-home
.
js
"
%}?
v=
"></script>
...
...
This diff is collapsed.
Click to expand it.
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