Private
Public Access
1
0

create plannedsession view v1.0

This commit is contained in:
Sander Roosendaal
2018-02-05 21:36:11 +01:00
parent cdf18058b9
commit ba334554eb
5 changed files with 127 additions and 37 deletions

View File

@@ -7,9 +7,9 @@
<div class="grid_12 alpha">
{% include "planningbuttons.html" %}
<h1>Create a new Planned Session</h1>
</div>
<div id="left" class="grid_6 alpha">
<h1>Create a new Planned Session</h1>
<form enctype="multipart/form-data" action="{{ formloc }}" method="post">
{% if form.errors %}
<p style="color: red;">
@@ -26,7 +26,48 @@
</div>
</div>
<div id="right" class="grid_6 omega">
<p>Not yet defined</p>
<h1>Plan</h1>
<p>
Click on session name to view
</p>
<table class="listtable shortpadded">
<thead>
<tr>
<th>After</th>
<th>Before</th>
<th>Name</th>
<th>Value</th>
<th>&nbsp;</th>
<th>Edit</th>
<th>Delete</th>
</tr>
</thead>
<tbody>
{% for ps in plannedsessions %}
<tr>
<td> {{ ps.startdate|date:"Y-m-d" }} </td>
<td> {{ ps.enddate|date:"Y-m-d" }} </td>
<td>
{% if ps.name != '' %}
<a class="small"
href="/rowers/sessions/{{ ps.id }}">{{ ps.name }}</a>
{% else %}
<a class="small"
href="/rowers/sessions/{{ ps.id }}">Unnamed Session</a>
{% endif %}
</td>
<td> {{ ps.sessionvalue }} </td>
<td> {{ ps.sessionunit }} </td>
<td>
<a class="small" href="/rowers/sessions/{{ ps.id }}/edit">Edit</a>
</td>
<td>
<a class="small" href="/rowers/sessions/{{ ps.id }}/deleteconfirm">Delete</a>
</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>