From ae1a3e902b1a90320d90d46ff068457db1fc5458 Mon Sep 17 00:00:00 2001 From: Gregory Trullemans Date: Tue, 14 Nov 2023 14:17:55 +0100 Subject: [PATCH] Update Note form --- jarvis/core/templates/dashboard/dashboard.html | 2 +- jarvis/followup/views.py | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/jarvis/core/templates/dashboard/dashboard.html b/jarvis/core/templates/dashboard/dashboard.html index 06011ed..a40e375 100644 --- a/jarvis/core/templates/dashboard/dashboard.html +++ b/jarvis/core/templates/dashboard/dashboard.html @@ -27,7 +27,7 @@

Hi {{ user.username }} !

-

Welcome to Jarvi v0.91 (last update : 31-10-2023)

+

Welcome to Jarvi v0.92 (last update : 16-11-2023)

This application is here to help coaches to manage the gymnasts (evolution, evaluation, routines, scores, …). This tool is not perfect so feel free to make improvement proposals, bug reports, … by sending me an email.

You can find the user manual here (in french).

diff --git a/jarvis/followup/views.py b/jarvis/followup/views.py index a9def67..0d87b7d 100644 --- a/jarvis/followup/views.py +++ b/jarvis/followup/views.py @@ -480,9 +480,9 @@ def note_create_or_update(request, note_id=None, gymnast_id=None): } else: note = None - data = { - "coach": coach.id, - } + today = pendulum.now().date() + season, week_number = from_date_to_week_number(today) + data = {"coach": coach.id, "title": "Note of the week {week_number} ({season})"} if gymnast_id is not None: gymnast = get_object_or_404(Gymnast, pk=gymnast_id) data["gymnast"] = gymnast_id