adding
This commit is contained in:
81
boatmovers/templates/boatmovers_compare.html
Normal file
81
boatmovers/templates/boatmovers_compare.html
Normal file
@@ -0,0 +1,81 @@
|
||||
{% 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 %}
|
||||
Reference in New Issue
Block a user