Private
Public Access
1
0
Files
rowsandall/boatmovers/templates/boatmovers_compare.html
2023-09-20 22:34:41 +02:00

82 lines
1.1 KiB
HTML

{% extends "boatmovers_base.html" %}
{% block main %}
<form action="" method="post">{% csrf_token %}
{{ form.as_table }}
<input type="submit" value="Compare" />
</form>
<table width="100%" class="listtable shortpadded">
<thead>
<tr>
<th>
#
</th>
<th>
Name
</th>
<th>
Club
</th>
<th>
Gender
</th>
<th>
Rank 1
</th>
<th>
Rank 2
</th>
<th>
Positions Climbed
</th>
<th>
Score 1
</th>
<th>
Score 2
</th>
<th>
Score Increase
</th>
</tr>
</thead>
<tbody>
{% for index, row in df.iterrows %}
<tr>
<td>
{{ forloop.counter }}
</td>
<td>
{{ row.Name }}
</td>
<td>
{{ row.club }}
</td>
<td>
{{ row.gender }}
</td>
<td>
{{ row.Rank1 }}
</td>
<td>
{{ row.Rank2 }}
</td>
<td>
{{ row.PositionsClimbed }}
</td>
<td>
{{ row.Score1|floatformat:2 }}
</td>
<td>
{{ row.Score2|floatformat:2 }}
</td>
<td>
{{ row.ScoreIncrease|floatformat:2 }}
</td>
</tr>
{% endfor %}
</tbody>
</table>
{% endblock %}