Private
Public Access
1
0

template library

This commit is contained in:
Sander Roosendaal
2021-03-05 08:57:37 +01:00
parent 8112f8322a
commit b107ea3a50
5 changed files with 128 additions and 1 deletions

View File

@@ -0,0 +1,67 @@
{% extends "newbase.html" %}
{% load staticfiles %}
{% load rowerfilters %}
{% block title %}Planned Sessions{% endblock %}
{% block main %}
<h1>Planned Session Library</h1>
<ul class="main-content">
<li class="grid_4">
{% if templates %}
<p>
Click on session name to view, edit to change the session.
</p>
<table width="90%" class="listtable shortpadded">
<thead>
<tr>
<th align="left">Name</th>
<th align="left">Type</th>
<th align="left">Mode</th>
<th align="left">Edit</th>
<th align="left">
</tr>
</thead>
<tbody>
{% for ps in templates %}
<tr>
<td>
{% if ps.name != '' %}
<a class="small"
href="/rowers/sessions/{{ ps.id }}/clone/user/{{ rower.user.id }}">{{ ps.name }}</a>
{% else %}
<a class="small"
href="/rowers/sessions/{{ ps.id }}/clone/user/{{ rower.user.id }}">Unnamed Session</a>
{% endif %}
</td>
<td> {{ ps.get_sessiontype_display }} </td>
<td> {{ ps.get_sessionmode_display }} </td>
<td>
<a class="small"
href="/rowers/sessions/{{ ps.id }}/templateedit/user/{{ rower.user.id }}">
<i class="fas fa-pencil-alt fa-fw"></i>
</a>
</td>
<td> {{ ps.sessionvalue }} </td>
<td> {{ ps.sessionunit }} </td>
</tr>
{% endfor %}
</tbody>
</table>
{% else %}
You have no sessions in your Library yet.
{% endif %}
</li>
</ul>
{% endblock %}
{% block sidebar %}
{% include 'menu_plan.html' %}
{% endblock %}