Commit d3bee25b by François

Inclusion messages borne et info horaire ouvertures

parent b2d342e9
Pipeline #1328 failed with stage
in 1 minute 24 seconds
...@@ -24,6 +24,14 @@ body { ...@@ -24,6 +24,14 @@ body {
box-shadow: 2px 2px 3px rgba(10,10,10,.1),0 0 0 1px rgba(10,10,10,.1); box-shadow: 2px 2px 3px rgba(10,10,10,.1),0 0 0 1px rgba(10,10,10,.1);
} }
.subtile {
}
.subtile.two {
max-width: 45%;
}
.full_width_tile { .full_width_tile {
flex: 1 0 90%; flex: 1 0 90%;
min-height: 100px; min-height: 100px;
......
...@@ -4,6 +4,7 @@ from outils.for_view_imports import * ...@@ -4,6 +4,7 @@ from outils.for_view_imports import *
from django.urls import reverse from django.urls import reverse
from outils.common import Verification from outils.common import Verification
from outils.common import MConfig
from members.models import CagetteMember from members.models import CagetteMember
from shifts.models import CagetteShift from shifts.models import CagetteShift
from members_space.models import CagetteMembersSpace from members_space.models import CagetteMembersSpace
...@@ -103,6 +104,7 @@ def index(request, exception=None): ...@@ -103,6 +104,7 @@ def index(request, exception=None):
if hasattr(settings, 'SHIFT_EXCHANGE_DAYS_TO_HIDE'): if hasattr(settings, 'SHIFT_EXCHANGE_DAYS_TO_HIDE'):
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
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')
...@@ -114,6 +116,12 @@ def home(request): ...@@ -114,6 +116,12 @@ def home(request):
context = { context = {
'title': 'Espace Membres', 'title': 'Espace Membres',
} }
# Get messages to display
msettings = MConfig.get_settings('members')
if 'msg_accueil' in msettings:
context['msg_accueil'] = msettings['msg_accueil']['value']
if 'shop_opening_hours' in msettings:
context['shop_opening_hours'] = msettings['shop_opening_hours']['value']
return HttpResponse(template.render(context, request)) return HttpResponse(template.render(context, request))
def my_info(request): def my_info(request):
......
...@@ -73,5 +73,17 @@ ...@@ -73,5 +73,17 @@
À venir... À venir...
</div> </div>
</div> </div>
<div class="tile" id="home_tile_message">
<div class="tile_title">
<i class="fas fa-newspaper tile_icon"></i>
Informations magasins
</div>
<div class="subtile">
{{msg_accueil|safe}}
</div>
<div class="subtile">
{{shop_opening_hours|safe}}
</div>
</div>
</div> </div>
</div> </div>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment