Update template
This commit is contained in:
parent
f38e0934db
commit
5e47ae48e9
|
@ -70,27 +70,33 @@
|
|||
<h4>Injuries</h4>
|
||||
</div>
|
||||
<div class="card-body pt-0 pb-0">
|
||||
{% if injury_list %}
|
||||
{% if injuries_list %}
|
||||
<table class="table tablesorter table-striped table-condensed" id="injury_table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th style="width: 3%"></th>
|
||||
<th class="header text-center" style="width: 10%">Date</th>
|
||||
<th class="header text-left" style="width: 50%">Skill</th>
|
||||
<th class="header text-left" style="width: 40%"># Week Off</th>
|
||||
<th class="header text-left" style="width: 10%">Mechanism</th>
|
||||
<th class="header text-left" style="width: 25%">Location</th>
|
||||
<th class="header text-left" style="width: 10%">Side</th>
|
||||
<th class="header text-left" style="width: 15%">Skill</th>
|
||||
<th class="header text-center" style="width: 10%"># Week Off</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{% for accident in injury_list %}
|
||||
{% for injury in injuries_list %}
|
||||
<tr>
|
||||
<td class="text-left">
|
||||
<a href="{% url 'injury_update' accident.id %}">
|
||||
<a href="{% url 'injury_update' injury.id %}">
|
||||
<span class="tim-icons icon-pencil text-warning"></span>
|
||||
</a>
|
||||
</td>
|
||||
<td class="text-center"><a href="{% url 'injury_details' accident.id %}">{{ accident.date | date:"d-m-Y" }}</a></td>
|
||||
<td class="text-left">{% if accident.skill %}<a href="{% url 'skill_details' accident.skill.id %}">{{ accident.skill }}</a>{% else %}-{% endif %}</td>
|
||||
<td class="text-left">{{ accident.nb_week_off }}</td>
|
||||
<td class="text-center"><a href="{% url 'injury_details' injury.id %}">{{ injury.date | date:"d-m-Y" }}</a></td>
|
||||
<td class="text-left">{{ injury.get_mechanism_display }}</td>
|
||||
<td class="text-left">{{ injury.location }}</td>
|
||||
<td class="text-left">{{ injury.get_body_side_display }}</td>
|
||||
<td class="text-left">{% if injury.skill %}<a href="{% url 'skill_details' injury.skill.id %}">{{ injury.skill.notation }}</a>{% else %}-{% endif %}</td>
|
||||
<td class="text-center">{{ injury.nb_week_off }}</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
|
|
Loading…
Reference in New Issue