Private
Public Access
1
0

old goals will automatically be deactivated

This commit is contained in:
Sander Roosendaal
2019-09-22 10:52:56 +02:00
parent 4fb961642d
commit c52ef7896b
2 changed files with 62 additions and 0 deletions

View File

@@ -35,6 +35,51 @@
{% endfor %}
</tbody>
</table>
{% if old_targets %}
<p>Old Targets</p>
<table width="100%" class="listtable shortpadded">
<thead>
<tr>
<th>Target Date</th>
<th>Name</th>
<th>Notes</th>
</tr>
</thead>
<tbody>
{% for target in old_targets %}
<tr>
<td> {{ target.date }}</td>
<td> {{ target.name }}</td>
<td> {{ target.notes|linebreaks }}</td>
<td> <a href="/rowers/edittarget/{{ target.id }}">Edit</a>
<td> <a href="/rowers/deletetarget/{{ target.id }}">Delete</a>
</tr>
{% endfor %}
</tbody>
</table>
{% endif %}
{% elif old_targets %}
<p>Old Targets</p>
<table width="100%" class="listtable shortpadded">
<thead>
<tr>
<th>Target Date</th>
<th>Name</th>
<th>Notes</th>
</tr>
</thead>
<tbody>
{% for target in old_targets %}
<tr>
<td> {{ target.date }}</td>
<td> {{ target.name }}</td>
<td> {{ target.notes|linebreaks }}</td>
<td> <a href="/rowers/edittarget/{{ target.id }}">Edit</a>
<td> <a href="/rowers/deletetarget/{{ target.id }}">Delete</a>
</tr>
{% endfor %}
</tbody>
</table>
{% else %}
No training targets found
{% endif %}