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 {
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 {
flex: 1 0 90%;
min-height: 100px;
......
......@@ -4,6 +4,7 @@ from outils.for_view_imports import *
from django.urls import reverse
from outils.common import Verification
from outils.common import MConfig
from members.models import CagetteMember
from shifts.models import CagetteShift
from members_space.models import CagetteMembersSpace
......@@ -103,6 +104,7 @@ def index(request, exception=None):
if hasattr(settings, 'SHIFT_EXCHANGE_DAYS_TO_HIDE'):
days_to_hide = settings.SHIFT_EXCHANGE_DAYS_TO_HIDE
context['daysToHide'] = days_to_hide
else:
# may arrive when switching database without cleaning cookie
return redirect('/website/deconnect')
......@@ -114,6 +116,12 @@ def home(request):
context = {
'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))
def my_info(request):
......
......@@ -73,5 +73,17 @@
À venir...
</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>
\ 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