Private
Public Access
1
0
Files
rowsandall/rowers/templates/rojabo_list_import.html
2022-04-28 11:54:40 +02:00

60 lines
1.6 KiB
HTML

{% extends "newbase.html" %}
{% load static %}
{% load rowerfilters %}
{% block title %}sessions{% endblock %}
{% block main %}
<h1>Available on Rojabo</h1>
{% if sessions %}
<ul class="main-content">
<li class="grid_4">
<form enctype="multipart/form-data" method="post">
{% csrf_token %}
<input name='sessions' type="submit" value="Import selected sessions">
<a href="/rowers/session/rojaboimport/?selectallnew=true">Select All New</a>
<table width="70%" class="listtable">
<thead>
<tr>
<th> Import </th>
<th> Session</th>
<th> SPM</th>
<th> Points</th>
<th> Planned Date </th>
<th> New </th>
</tr>
</thead>
<tbody>
{% for session in sessions %}
<tr>
<td>
{% if session|lookuplong:'new' == 'NEW' and checknew == 'true' %}
<input checked type="checkbox" value={{ session|lookuplong:'id' }} name="sessionid">
{% else %}
<input type="checkbox" value={{ session|lookuplong:'id' }} name="sessionid">
{% endif %}
</td>
<td>{{ session|lookuplong:'name' }}</td>
<td>{{ session|lookuplong:'spm' }}</td>
<td>{{ session|lookuplong:'points' }}</td>
<td>{{ session|lookuplong:'date' }} </td>
<td>{{ session|lookuplong:'new' }} </td>
</tr>
{% endfor %}
</tbody>
</table>
</form>
</li>
</ul>
{% else %}
<p>
No sessions found
</p>
{% endif %}
{% endblock %}
{% block sidebar %}
{% include 'menu_plan.html' %}
{% endblock %}