Private
Public Access
1
0

not really importing the steps correctly

This commit is contained in:
2024-12-15 17:04:17 +01:00
parent b34a415961
commit 8c5dd6bb91
3 changed files with 42 additions and 35 deletions

View File

@@ -6,7 +6,7 @@
{% block main %}
<h1>Sessions on Intervals.icu</h1>
{% if folders %}
{% if sessions %}
<ul class="main-content">
<li class="grid_4">
<form enctype="multipart/form-data" method="post">
@@ -16,7 +16,6 @@
<thead>
<tr>
<th>Import</th>
<th>Plan</th>
<th>Date</th>
<th>Description</th>
<th>Type</th>
@@ -24,20 +23,17 @@
</tr>
</thead>
<tbody>
{% for folder in folders %}
{% for session in folder.children %}
{% for session in sessions %}
<tr>
<td>
<input type="checkbox" name="session" value="{{ session.id }}">
</td>
<td>{{ folder.name }}</td>
<td>{{ session.date }}</td>
<td>{{ session.start_date_local }}</td>
<td>{{ session.description }}</td>
<td>{{ session.type }}</td>
<td>{{ session.icu_training_load }}</td>
</tr>
{% endfor %}
{% endfor %}
</tbody>
</table>
</form>