96 lines
2.7 KiB
HTML
96 lines
2.7 KiB
HTML
{% extends "newbase.html" %}
|
|
{% load static %}
|
|
{% load rowerfilters %}
|
|
|
|
{% block title %}Workouts{% endblock %}
|
|
|
|
{% block main %}
|
|
<h1>Available on {{ integration }}</h1>
|
|
|
|
<ul class="main-content">
|
|
<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 %}
|
|
{% if integration == 'C2 Logbook' %}
|
|
<li class="grid_2">
|
|
<a href="/rowers/workout/c2import/all/{{ page }}">Import all NEW</a>
|
|
<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>
|
|
<li class="grid_2">
|
|
<p>
|
|
<span>
|
|
{% if page > 1 %}
|
|
<a title="Previous" href="/rowers/workout/c2import/{{ page|add:-1 }}">
|
|
<i class="fas fa-arrow-alt-left"></i>
|
|
</a>
|
|
{% endif %}
|
|
<a title="Next" href="/rowers/workout/c2import/{{ page|add:1 }}">
|
|
<i class="fas fa-arrow-alt-right"></i>
|
|
</a>
|
|
</span>
|
|
</p>
|
|
</li>
|
|
{% endif %}
|
|
<li class="grid_4">
|
|
<form enctype="multipart/form-data" method="post">
|
|
{% csrf_token %}
|
|
<input name='workouts' type="submit" value="Import selected workouts">
|
|
<a href="?selectallnew=true">Select All New</a>
|
|
<table width="70%" class="listtable">
|
|
<thead>
|
|
<tr>
|
|
<th> Import </th>
|
|
<th> Date/Time </th>
|
|
<th> Duration </th>
|
|
<th> Total Distance</th>
|
|
<th> Type</th>
|
|
<th> Source</th>
|
|
<th> Name</th>
|
|
<th> New</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{% 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:'starttime' }}</td>
|
|
<td>{{ workout|lookup:'duration' }}</td>
|
|
<td>{{ workout|lookup:'distance' }}</td>
|
|
<td>{{ workout|lookup:'rowtype' }}</td>
|
|
<td>{{ workout|lookup:'source' }}</td>
|
|
<td>{{ workout|lookup:'name' }}</td>
|
|
<td>
|
|
{{ workout|lookup:'new' }}
|
|
</td>
|
|
</tr>
|
|
|
|
{% endfor %}
|
|
</tbody>
|
|
</table>
|
|
</form>
|
|
</li>
|
|
{% else %}
|
|
<p> No workouts found </p>
|
|
{% endif %}
|
|
</ul>
|
|
{% endblock %}
|
|
|
|
{% block sidebar %}
|
|
{% include 'menu_workouts.html' %}
|
|
{% endblock %}
|