Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions backend/core/routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ def send_confirmation_email(reservation):
"resa_confirmed_mail.html",
reservation=stringify(reservation),
event=stringify(reservation.event),
event_info=stringify(reservation.event.info),
portal_link=get_portal_link(reservation),
),
)
Expand Down
4 changes: 4 additions & 0 deletions backend/core/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,8 @@ def send_email(subject, recipients, html):
def _get_property_names(model_object):
from sqlalchemy.ext.hybrid import hybrid_property

if not model_object:
return []
return [
p
for p in dir(model_object)
Expand All @@ -73,6 +75,8 @@ def _get_property_names(model_object):


def _get_orm_attribute_names(model_object):
if not model_object:
return []
return [a for a in model_object.__dict__.keys() if not a.startswith("_")]


Expand Down
8 changes: 8 additions & 0 deletions backend/templates/resa_confirmed_mail.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,14 @@ <h1>Votre réservation a été confirmée !</h1>
<p>Nous avons le plaisir de vous confirmer votre réservation de {{ reservation.nb_participants }} places pour
l'événement {{ event.name }} le {{ event.begin_date|format_date }}.</p>

<p>RDV {{ event.start_time|format_time }} à : {{ event.meeting_point }}</p>

{% if event_info.info_rdv %}
<b>Informations supplémentaires</b>

<p>{{ event_info.info_rdv }}</p>
{%endif %}

<p><a href="{{ portal_link }}">Vous pouvez à tout moment consulter la liste de vos réservations en suivant
ce lien.</a></p>

Expand Down