Private
Public Access
1
0

exporting courses.kml

This commit is contained in:
2024-02-28 15:36:12 +01:00
parent af1adf132e
commit 25bfcb17fd
6 changed files with 165 additions and 71 deletions

View File

@@ -23,30 +23,36 @@
<li class="grid_3">
{% if courses %}
<p>
<table width="100%" class="listtable shortpadded">
<thead>
<tr>
<th> Country</th>
<th> Name</th>
<th> Distance</th>
</tr>
</thead>
<tbody>
{% for course in courses %}
<tr>
<td> {{ course.country }} </td>
<td>
<a href="/rowers/courses/{{ course.id }}/">{{ course.name }}</a>
</td>
<td>
{{ course.distance }} m
</td>
</tr>
{% endfor %}
</tbody>
</table>
<form enctype="multipart/form-data" method="post">
{% csrf_token %}
<input name="courses" type="submit" value="Download selected courses">
<table width="100%" class="listtable shortpadded">
<thead>
<tr>
<th> Download</th>
<th> Country</th>
<th> Name</th>
<th> Distance</th>
</tr>
</thead>
<tbody>
{% for course in courses %}
<tr>
<td> <input type="checkbox" value={{ course.id }} name="courseid"> </td>
<td> {{ course.country }} </td>
<td>
<a href="/rowers/courses/{{ course.id }}/">{{ course.name }}</a>
</td>
<td>
{{ course.distance }} m
</td>
</tr>
{% endfor %}
</tbody>
</table>
</form>
</p>
{% else %}
<p> No courses found </p>