Jarvis/jarvis/followup/templates/injuries/details.html

43 lines
1.8 KiB
HTML
Raw Normal View History

2023-04-25 17:06:14 +02:00
{% extends "base.html" %}
{% block content %}
<div class="row justify-content-center">
<div class="col-12 col-sm-8 col-md-6">
<div class="card">
<div class="card-header">
2023-11-14 12:24:52 +01:00
<h4 class="mb-0"><a href="{% url 'gymnast_details_tab' injury.gymnast.id 'physiological' %}">{{ injury.gymnast }}</a> injuried on {{ injury.date | date:"j N Y" }}</h4>
2023-04-25 17:06:14 +02:00
</div>
<div class="card-body pb-0">
2024-01-31 09:21:09 +01:00
{{ form.injury_type }} {{ injury.get_mechanism_display }} at {{ injury.get_location_display }} ({{ injury.get_body_side_display }}) {% if injury.skill %} injuried on {{ injury.skill.notation }} {% endif %}<br />
2023-07-06 23:37:07 +02:00
{% if injury.nb_week_off %}
2024-01-31 09:21:09 +01:00
Gymnast is {{ injury.nb_week_off }} week{% if injury.nb_week_off > 1 %}s{% endif %} off.<br />
2023-04-25 17:06:14 +02:00
{% endif %}
2023-11-14 12:00:46 +01:00
{% if injury.to_markdown %}
2023-11-14 12:06:08 +01:00
<br />
{{ injury.to_markdown | safe }}
2023-11-14 12:00:46 +01:00
{% endif %}
</div>
2023-04-25 17:06:14 +02:00
<div class="card-footer row">
<div class="col-6">
2024-04-09 19:32:01 +02:00
<a href="{% url 'injury_list' %}">
<button type="submit" value="add" class="btn btn-icon btn-warning ">
2023-04-25 17:06:14 +02:00
<i class="tim-icons icon-double-left"></i>
</button>
</a>
</div>
<div class="col-6 col-1 ml-auto text-right">
<a href="{% url 'injury_update' injury.id %}">
<button type="submit" value="update" class="btn btn-icon btn-warning">
<i class="tim-icons icon-pencil"></i>
</button>
</a>
</div>
2023-04-25 17:06:14 +02:00
</div>
2023-04-25 17:06:14 +02:00
</div>
</div>
</div>
{% endblock %}