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
1d174924
Commit
1d174924
authored
Aug 17, 2022
by
François C.
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add custom memberspace home for supercafoutch
parent
0d008517
Pipeline
#2345
passed with stage
in 1 minute 25 seconds
Changes
3
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
127 additions
and
1 deletions
+127
-1
views.py
members_space/views.py
+1
-1
config.md
outils/config.md
+5
-0
home.html
templates/members_space/supercafoutch/home.html
+121
-0
No files found.
members_space/views.py
View file @
1d174924
...
...
@@ -169,7 +169,7 @@ def home(request):
Consequently, the front-end url should be unknown from the server so the user is redirected to the index,
then the front-end index will call this endpoint to load the home page
"""
template
=
loader
.
get_template
(
'members_space/home.html'
)
template
=
loader
.
get_template
(
getattr
(
settings
,
'MEMBERS_SPACE_HOME_TEMPLATE'
,
'members_space/home.html'
)
)
context
=
{
'title'
:
'Espace Membres'
,
}
...
...
outils/config.md
View file @
1d174924
...
...
@@ -330,6 +330,11 @@
-
MEMBERS_SPACE_FAQ_TEMPLATE = None
If set to None, "FAQ menu" will not be shown. To use a custom content add a template and set it's relative path
-
MEMBERS_SPACE_HOME_TEMPLATE = 'members_space/supercafoutch/home.html'
If not set, 'members_space/home.html' (la Cagette)
-
MEMBERS_SPACE_SHOW_UNDERSTAND_MY_STATUS = False
By default, is True. If False, tile showing explanations is not shown
...
...
templates/members_space/supercafoutch/home.html
0 → 100644
View file @
1d174924
<div
id=
"home"
>
<div
class=
"page_title txtcenter"
>
<h1>
Espace Membre
</h1>
</div>
<div
class=
"tiles_container"
>
<div
class=
"tile high_tile"
id=
"home_tile_my_info"
>
<div
class=
"tile_title"
>
<i
class=
"fas fa-user tile_icon"
></i>
<span
class=
"member_info member_name"
></span>
</div>
<div
class=
"tile_content"
>
{#
<p><span
class=
"member_info member_name"
></span></p>
#}
<p
class=
"member_status_text_container"
>
Mon statut :
<span
class=
"member_info member_status"
></span></p>
<div
class=
"delay_date_stop_container"
>
( jusqu'au
<span
class=
"delay_date_stop"
></span>
)
</div>
<div
id=
"member_status_action"
>
<a
href=
"#"
target=
"_blank"
class=
"btn--warning unsuscribed_form_link"
>
J'accède au formulaire
</a>
<button
type=
"button"
class=
"btn--danger choose_makeups"
>
Je sélectionne mes rattrapages
</button>
<button
type=
"button"
class=
"btn--success remove_future_registration"
>
J'ai validé un service à deux, je peux supprimer une présence
</button>
</div>
<div
class=
"member_shift_name_area"
>
<span>
Mon créneau :
</span>
<span
class=
"member_shift_name member_info"
></span>
</div>
<div
class=
"member_coop_number_area"
>
<span>
Mon numéro de coop :
</span>
<span
class=
"member_coop_number member_info"
></span>
</div>
<div
class=
"member_associated_partner_area"
>
<span>
Je suis en binôme avec :
</span>
<span
class=
"member_associated_partner member_info"
></span>
</div>
<div
id=
"see_more_info"
>
<button
type=
"button"
,
class=
"btn btn--primary home_link_button"
id=
"see_more_info_link"
>
Accéder à mes infos et comprendre mon statut
</button>
</div>
</div>
</div>
<div
class=
"tile high_tile"
id=
"home_tile_my_services"
>
<div
class=
"tile_title"
>
<i
class=
"fas fa-clipboard tile_icon"
></i>
Mes Services
</div>
<div
class=
"tile_content"
>
<h3>
Services à venir
</h3>
<div
id=
"home_incoming_services"
>
<i
class=
"fas fa-spinner fa-spin fa-lg"
></i>
</div>
<div
id=
"go_to_shift_history_area"
>
<button
type=
"button"
,
class=
"btn btn--primary"
id=
"home_go_to_shift_history"
>
Accéder à mon historique
</button>
</div>
</div>
</div>
<div
class=
"tile small_tile"
id=
"home_tile_services_exchange"
>
<div
class=
"tile_title"
>
<i
class=
"fas fa-exchange-alt tile_icon"
></i>
Échange de services
</div>
<div
class=
"tile_content"
>
<div>
Un empêchement ? J'anticipe et déplace mes services jusqu'à 24h avant leur début !
</div>
<div
class=
"home_link_button_area"
>
<button
type=
"button"
class=
"btn--primary home_link_button"
id=
"go_to_shifts_calendar"
>
Accéder au calendrier d'échange de services
</button>
</div>
</div>
</div>
<div
class=
"tile small_tile"
id=
"home_tile_help"
>
<div
class=
"tile_title"
>
<i
class=
"fas fa-question-circle tile_icon"
></i>
J'ai une demande
</div>
<div
class=
"tile_content"
>
<div
class=
"home_link_button_area"
>
<a
href=
"javascript:void(0);"
class=
"btn--primary home_link_button"
id=
"go_to_forms"
>
Accéder à la FAQ
</a>
</div>
</div>
</div>
<div
class=
"tile small_tile"
id=
"home_tile_shop_info"
>
<div
class=
"tile_title"
>
<i
class=
"fas fa-newspaper tile_icon"
></i>
Informations magasins
</div>
<div
id=
"shop_info_content"
>
<div
class=
"shop_info_item shop_opening_hours"
>
<div
class=
"shop_info_item_content"
>
<div
class=
"opening_hours_title"
>
Horaires du magasin :
</div>
<div
class=
"opening_hours_content"
>
{{shop_opening_hours|safe}}
</div>
</div>
</div>
<div
class=
"shop_info_item shop_message"
>
<div
class=
"shop_info_item_content shop_message_content"
>
{{msg_accueil|safe}}
</div>
</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