exporting courses.kml
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user