Private
Public Access
1
0

c2 import list

This commit is contained in:
Sander Roosendaal
2021-10-31 16:01:23 +01:00
parent 70e85d6665
commit a12fcfdd85
5 changed files with 58 additions and 14 deletions

View File

@@ -30,6 +30,10 @@
</p>
</li>
<li class="grid_4">
<form enctype="multipart/form-data" method="post">
{% csrf_token %}
<input name='workouts' type="submit" value="Import selected workouts">
<a href="/rowers/workout/c2list/?selectallnew=true">Select All New</a>
<table width="70%" class="listtable">
<thead>
<tr>
@@ -47,7 +51,12 @@
{% for workout in workouts %}
<tr>
<td>
<a href="/rowers/workout/c2import/{{ workout|lookup:'id' }}/async/">Import</a></td>
{% if workout|lookup:'new' == 'NEW' and checknew == 'true' %}
<input checked type="checkbox" value={{ workout|lookup:'id' }} name="workoutid">
{% else %}
<input type="checkbox" value={{ workout|lookup:'id' }} name="workoutid">
{% endif %}
</td>
<td>{{ workout|lookup:'starttime' }}</td>
<td>{{ workout|lookup:'duration' }}</td>
<td>{{ workout|lookup:'distance' }}</td>
@@ -62,6 +71,7 @@
{% endfor %}
</tbody>
</table>
</form>
</li>
{% else %}
<p> No workouts found </p>