Update Note form
This commit is contained in:
parent
d154d99016
commit
ae1a3e902b
|
@ -27,7 +27,7 @@
|
|||
<h4 class=""><i class="text-primary fal fa-laugh-wink"></i> Hi {{ user.username }} !</h4>
|
||||
</div>
|
||||
<div class="card-body text-justify pt-0">
|
||||
<p>Welcome to Jarvi v0.91 <span class="text-muted">(last update : 31-10-2023)</span></p>
|
||||
<p>Welcome to Jarvi v0.92 <span class="text-muted">(last update : 16-11-2023)</span></p>
|
||||
<p>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 <a href="mailto:gregory@flyingacrobaticstrampoline.be">email</a>.</p>
|
||||
<p>You can find the user manual <a href="{% static "files/Manuel_Utilisateur.pdf" %}" download>here (in french)</a>.</p>
|
||||
</div>
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue