Private
Public Access
1
0

first version of check box strava improt

This commit is contained in:
Sander Roosendaal
2021-08-25 18:20:15 +02:00
parent b0ce799a88
commit a41672f380
3 changed files with 11 additions and 4 deletions

View File

@@ -21,7 +21,7 @@
<form enctype="multipart/form-data" method="post">
{% csrf_token %}
<input name='workouts' type="submit" value="Import selected workouts">
<a href="/rowers/workouts/stravaimport/?selectallnew=true">Select All New</a>
<a href="/rowers/workout/stravaimport/?selectallnew=true">Select All New</a>
<table width="70%" class="listtable">
<thead>
<tr>
@@ -38,7 +38,11 @@
{% for workout in workouts %}
<tr>
<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:'name' }}</td>
<td>{{ workout|lookup:'starttime' }}</td>