adding date filter to NK import
This commit is contained in:
@@ -6,17 +6,28 @@
|
||||
|
||||
{% block main %}
|
||||
<h1>Available on NK Logbook</h1>
|
||||
{% if workouts %}
|
||||
<ul class="main-content">
|
||||
{% if workouts %}
|
||||
<li>
|
||||
<a href="/rowers/workout/nkimport/all/" class="blue button">Import all NEW</a>
|
||||
<a href="/rowers/workout/nkimport/all/{{ startdate }}/{{ enddate }}" class="blue button">Import all NEW</a>
|
||||
</li>
|
||||
<li class="grid_3">
|
||||
<p>This imports all workouts that have not been imported to rowsandall.com.
|
||||
The action may take a longer time to process, so please be patient. Click on Import in the list below to import an individual workout.
|
||||
</p>
|
||||
</li>
|
||||
{% endif %}
|
||||
<li class="grid_2">
|
||||
<form enctype="multipart/form-data" method="post">
|
||||
<table>
|
||||
{{ dateform.as_table }}
|
||||
</table>
|
||||
{% csrf_token %}
|
||||
<input name='daterange' type="submit" value="Select Dates">
|
||||
</form>
|
||||
</li>
|
||||
|
||||
{% if workouts %}
|
||||
<li class="grid_4">
|
||||
<table width="70%" class="listtable">
|
||||
<thead>
|
||||
@@ -45,12 +56,15 @@
|
||||
</tbody>
|
||||
</table>
|
||||
</li>
|
||||
</ul>
|
||||
{% else %}
|
||||
<p>
|
||||
No workouts found
|
||||
</p>
|
||||
{% else %}
|
||||
<li class="grid_4">
|
||||
<p>
|
||||
No workouts found
|
||||
</p>
|
||||
</li>
|
||||
{% endif %}
|
||||
</ul>
|
||||
|
||||
{% endblock %}
|
||||
|
||||
{% block sidebar %}
|
||||
|
||||
Reference in New Issue
Block a user