Update injury détails
This commit is contained in:
parent
b9a4cc2de1
commit
f0fe07aee5
|
@ -10,13 +10,16 @@
|
||||||
</div>
|
</div>
|
||||||
<div class="card-body">
|
<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 />
|
<a href="{% url 'gymnast_details' injury.gymnast.id %}">{{ injury.gymnast }}</a>{% if injury.skill %} injuried on <i>{{ injury.skill.notation }}</i>{% endif %}<br />
|
||||||
{{ injury.get_mechanism_display }} on {{ injury.get_location_display }} ({{ injury.get_body_side_display }})<br />
|
{{ form.injury_type }} {{ injury.get_mechanism_display }} on {{ injury.get_location_display }} ({{ injury.get_body_side_display }})<br />
|
||||||
{% if injury.nb_week_off %}
|
{% if injury.nb_week_off %}
|
||||||
Gymnast {{ injury.nb_week_off }} week(s) off.<br />
|
Gymnast {{ injury.nb_week_off }} week(s) off.<br />
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<br />
|
<br />
|
||||||
|
|
||||||
|
{% if injury.to_markdown %}
|
||||||
|
<h5>Details</h5>
|
||||||
{{ injury.to_markdown | safe }}
|
{{ injury.to_markdown | safe }}
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
<div class="card-footer pl-0 pb-0">
|
<div class="card-footer pl-0 pb-0">
|
||||||
<a href="{% url 'injuries_list' %}">
|
<a href="{% url 'injuries_list' %}">
|
||||||
|
|
|
@ -222,7 +222,7 @@
|
||||||
{% for score in intensity_list %}
|
{% for score in intensity_list %}
|
||||||
{
|
{
|
||||||
x: '{{ score.date | date:"d-m-Y" }}',
|
x: '{{ score.date | date:"d-m-Y" }}',
|
||||||
y: '{{ score.mean_difficulty_by_passe }}'
|
y: '{{ score.mean_difficulty_by_passe_in_unit }}'
|
||||||
},
|
},
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
];
|
];
|
||||||
|
|
Loading…
Reference in New Issue