Update injury and chrono email
This commit is contained in:
parent
79b5985d21
commit
e5970da66d
|
@ -599,7 +599,7 @@ def chrono_create_or_update(request, chrono_id=None, gymnast_id=None):
|
||||||
receiver,
|
receiver,
|
||||||
fail_silently=False,
|
fail_silently=False,
|
||||||
html_message=f"""<p>Bonjour,</p>
|
html_message=f"""<p>Bonjour,</p>
|
||||||
<p>Nouveau chrono pour {gymnast} : {CHRONO_TYPE_CHOICE[chrono_type]} - {score} ({SCORE_TYPE_CHOICE[score_type]}).</p><br />
|
<p>Nouveau chrono pour {gymnast} : {SCORE_TYPE_CHOICE[score_type][1]} {CHRONO_TYPE_CHOICE[chrono_type][1]} - {score}.</p><br />
|
||||||
<p>Excellente journée</p><p>Jarvis</p>""",
|
<p>Excellente journée</p><p>Jarvis</p>""",
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -889,10 +889,10 @@ def injury_create_or_update(request, injury_id=None, gymnast_id=None):
|
||||||
html_message=f"""<p>Bonjour,</p>
|
html_message=f"""<p>Bonjour,</p>
|
||||||
<p>Un nouvelle blessure enregistrée pour {gymnast} pour le {date.strftime('%d %B %Y')}:</p>
|
<p>Un nouvelle blessure enregistrée pour {gymnast} pour le {date.strftime('%d %B %Y')}:</p>
|
||||||
<ul>
|
<ul>
|
||||||
<li>{INJURY_LOCATION_CHOICE[mechanism]},</li>
|
<li>{INJURY_LOCATION_CHOICE[mechanism][1]},</li>
|
||||||
<li>{INJURY_BODY_SIDE_CHOICE[injury_type]},</li>
|
<li>{INJURY_BODY_SIDE_CHOICE[injury_type][1]},</li>
|
||||||
<li>{INJURY_MECHANISM_CHOICE[location]},</li>
|
<li>{INJURY_MECHANISM_CHOICE[location][1]},</li>
|
||||||
<li>{INJURY_TYPE_CHOICE[body_side]},</li>
|
<li>{INJURY_TYPE_CHOICE[body_side][1]},</li>
|
||||||
</ul>
|
</ul>
|
||||||
<br />
|
<br />
|
||||||
<p>Excellente journée</p>
|
<p>Excellente journée</p>
|
||||||
|
|
Loading…
Reference in New Issue