Update injury details

This commit is contained in:
Gregory Trullemans 2023-11-14 12:20:31 +01:00
parent d991952af8
commit 6d0b047ca1
1 changed files with 2 additions and 3 deletions

View File

@ -6,11 +6,10 @@
<div class="col-12 col-sm-8 col-md-6">
<div class="card">
<div class="card-header">
<h4 class="mb-0">Injury on {{ injury.date | date:"j N Y" }}</h4>
<h4 class="mb-0"><a href="{% url 'gymnast_details' injury.gymnast.id %}">{{ injury.gymnast }}</a> injuried on {{ injury.date | date:"j N Y" }}</h4>
</div>
<div class="card-body">
<a href="{% url 'gymnast_details' injury.gymnast.id %}">{{ injury.gymnast }}</a>{% if injury.skill %} injuried on <i>{{ injury.skill.notation }}</i>{% endif %}<br />
{{ form.injury_type }} {{ injury.get_mechanism_display }} on {{ injury.get_location_display }} ({{ injury.get_body_side_display }})<br />
{{ form.injury_type }} {{ injury.get_mechanism_display }} at {{ injury.get_location_display }} ({{ injury.get_body_side_display }}) {% if injury.skill %} injuried on <i>{{ injury.skill.notation }}</i>{% endif %}<br />
{% if injury.nb_week_off %}
Gymnast {{ injury.nb_week_off }} week(s) off.<br />
{% endif %}