diff --git a/jarvis/followup/templates/injuries/details.html b/jarvis/followup/templates/injuries/details.html index 43dfc5d..a13003d 100644 --- a/jarvis/followup/templates/injuries/details.html +++ b/jarvis/followup/templates/injuries/details.html @@ -21,7 +21,7 @@
Bonjour,
-{gymnast} a ajouté état son esprit enregistré ({date}) : +
{gymnast} a ajouté son état de bien être pour le ({date.strftime('%d %B %Y')}) :
Excellente journée
Jarvis
""", ) @@ -1063,6 +1063,7 @@ def heightweight_create_or_update(request, heightweight_id=None, gymnast_id=None # notification receiver = [] + date = form.cleaned_data["date"] height = form.cleaned_data["height"] / 100 weight = form.cleaned_data["weight"] bmi = weight / (height * height) @@ -1076,12 +1077,18 @@ def heightweight_create_or_update(request, heightweight_id=None, gymnast_id=None send_mail( f"{gymnast} : Nouveau poids/taille enregistré", - f"Un nouveau poids/taille enregistré pour {gymnast} : {height}cm / {weight}kg ({bmi}).", + f"Un nouveau poids/taille enregistré pour {gymnast} ({date}) : {height}cm / {weight}kg (BMI: {bmi}).", settings.EMAIL_HOST_USER, receiver, fail_silently=False, html_message=f"""Bonjour,
-Un nouveau poids/taille enregistré pour {gymnast} : {height}cm / {weight}kg ({bmi}).
Un nouveau poids/taille enregistré pour {gymnast} pour le {date.strftime('%d %B %Y')} :
+Excellente journée
Jarvis
""", ) @@ -1299,7 +1306,7 @@ def plan_create_or_update(request, plan_id=None, gymnast_id=None, skill_id=None) receiver, fail_silently=False, html_message=f"""Bonjour,
-Nouvel objectif fixé pour {gymnast} : {educative} ({learning_step}) pour le {date} au plus tard.
+Nouvel objectif fixé pour {gymnast} : {educative} ({learning_step}) pour le {date.strftime('%d %B %Y')} au plus tard.
Excellente journée
Jarvis
""",