diff --git a/jarvis/followup/views.py b/jarvis/followup/views.py index fc0bcb2..d940412 100644 --- a/jarvis/followup/views.py +++ b/jarvis/followup/views.py @@ -99,6 +99,25 @@ twitterwidget .NaturalImage-image { """ +MAIL_FOOTER = """
+

Excellente journée

+

Jarvis

+

Trampoline Trainer Help

+ + + + + + + +
+ + + Flying Acrobatics Trampoline Club
+ Rue René Francq, 7
+ 1428 Lillois-Witterzée +
""" + @login_required @require_http_methods(["GET"]) @@ -558,8 +577,7 @@ def note_create_or_update(request, note_id=None, gymnast_id=None): fail_silently=False, html_message=f"""

Bonjour,

Une nouvelle note vous a été envoyée. Vous pouvez la consulter en cliquant ici.

-

Excellente journée

-

Jarvis

""", + {MAIL_FOOTER}""", ) return HttpResponseRedirect( reverse("gymnast_details_tab", args=(new_note.gymnast.id, "event")) @@ -633,8 +651,8 @@ def chrono_create_or_update(request, chrono_id=None, gymnast_id=None): receiver, fail_silently=False, html_message=f"""

Bonjour,

-

Nouveau chrono pour {gymnast} : {SCORE_TYPE_CHOICE[score_type][1]} {CHRONO_TYPE_CHOICE[chrono_type][1]} - {score}.


-

Excellente journée

Jarvis

""", +

Nouveau chrono pour {gymnast} : {SCORE_TYPE_CHOICE[score_type][1]} {CHRONO_TYPE_CHOICE[chrono_type][1]} - {score}.

+ {MAIL_FOOTER}""", ) return HttpResponseRedirect( @@ -721,8 +739,8 @@ def learnedskill_create_or_update(request, gymnast_id=None): receiver, fail_silently=False, html_message=f"""

Bonjour,

-

{gymnast} a appris {skill} ({learning_step}).


-

Excellente journée

Jarvis

""", +

{gymnast} a appris {skill} ({learning_step}).

+ {MAIL_FOOTER}""", ) return HttpResponseRedirect( @@ -785,8 +803,8 @@ def score_create_or_update(request, score_id=None, gymnast_id=None): receiver, fail_silently=False, html_message=f"""

Bonjour,

-

Un nouveau score a été enregistré pour {gymnast} ({event}) : {routine_type} - {total}.


-

Excellente journée

Jarvis

""", +

Un nouveau score a été enregistré pour {gymnast} ({event}) : {routine_type} - {total}.

+ {MAIL_FOOTER}""", ) if form.cleaned_data["add_to_chrono"]: @@ -923,14 +941,12 @@ def injury_create_or_update(request, injury_id=None, gymnast_id=None): html_message=f"""

Bonjour,

Un nouvelle blessure enregistrée pour {gymnast} pour le {date.strftime('%d %B %Y')}:

-
-

Excellente journée

-

Jarvis

""", + {MAIL_FOOTER}""", ) return HttpResponseRedirect(reverse("injury_details", args=(injury.pk,))) @@ -1038,24 +1054,8 @@ def wellbeing_create_or_update(
  • Fatigue: {fatigue}
  • Muscle soreness: {muscle_soreness}
  • -
    -

    Excellente journée

    -

    Jarvis

    -

    Trampoline Trainer Help

    - - - - - - - -
    - - - Flying Acrobatics Trampoline Club
    - Rue René Francq, 7
    - 1428 Lillois-Witterzée -
    """, + {MAIL_FOOTER} + """, ) return HttpResponseRedirect( @@ -1161,9 +1161,7 @@ def heightweight_create_or_update(request, heightweight_id=None, gymnast_id=None
  • Weight: {weight} kg
  • BMI: {bmi}
  • -
    -

    Excellente journée

    -

    Jarvis

    """, + {MAIL_FOOTER}""", ) return HttpResponseRedirect( @@ -1302,9 +1300,8 @@ def routinedone_create_or_update(request, routinedone_id=None, gymnast_id=None): receiver, fail_silently=False, html_message=f"""

    Bonjour,

    -

    Nouvelle série comptabilisée pour {gymnast}.


    -

    Excellente journée

    -

    Jarvis

    """, +

    Nouvelle série comptabilisée pour {gymnast}.

    + {MAIL_FOOTER}""", ) return HttpResponseRedirect( @@ -1380,9 +1377,7 @@ def plan_create_or_update(request, plan_id=None, gymnast_id=None, skill_id=None) fail_silently=False, html_message=f"""

    Bonjour,

    Nouvel objectif fixé pour {gymnast} : {educative} ({learning_step}) pour le {date.strftime('%d %B %Y')} au plus tard.

    -
    -

    Excellente journée

    -

    Jarvis

    """, + {MAIL_FOOTER}""", ) return HttpResponseRedirect( @@ -1511,24 +1506,7 @@ def intensity_create_or_update(request, intensity_id=None, gymnast_id=None):
  • Diff/passe: {diff_by_passe:.2f}
  • Diff/skill: {diff_by_skill:.2f}
  • -

    Excellente journée

    -
    -

    Jarvis

    -

    Trampoline Trainer Help

    - - - - - - - -
    - - - Flying Acrobatics Trampoline Club
    - Rue René Francq, 7
    - 1428 Lillois-Witterzée -
    """, + {MAIL_FOOTER}""", ) return HttpResponseRedirect( @@ -1598,9 +1576,8 @@ def season_information_create_or_update( receiver, fail_silently=False, html_message=f"""

    Bonjour,

    -

    Une nouvelle information de saison enregistrée pour {gymnast}.


    -

    Excellente journée

    -

    Jarvis

    """, +

    Une nouvelle information de saison enregistrée pour {gymnast}.

    + {MAIL_FOOTER}""", ) return HttpResponseRedirect(