46 lines
996 B
HTML
46 lines
996 B
HTML
{% extends "newbase.html" %}
|
|
{% load static %}
|
|
{% load rowerfilters %}
|
|
|
|
{% block title %}Workout Data{% endblock %}
|
|
|
|
{% block main %}
|
|
<h1>Workout Data for {{ workout.name }}</h1>
|
|
|
|
<ul class="main-content">
|
|
<li class="grid_4">
|
|
<p>
|
|
<form method="post" enctype="multipart/form-data">
|
|
{{ form.as_table }}
|
|
{% csrf_token %}
|
|
<input type="submit" value="Submit">
|
|
</form>
|
|
</p>
|
|
</li>
|
|
<li class="maxheight grid_4">
|
|
<table width=100% class="listtable shortpadded">
|
|
<th>
|
|
{% for i in cols %}
|
|
<td><strong>{{i}}</strong> <a href="/rowers/workout/{{ workout.id|encode }}/{{i}}/erase/">erase</a></td>
|
|
{% endfor %}
|
|
</th>
|
|
{% for row in data.values.tolist %}
|
|
<tr>
|
|
<td>
|
|
{{ forloop.counter0 }}
|
|
</td>
|
|
{% for value in row %}
|
|
<td>{{ value }}</td>
|
|
{% endfor %}
|
|
</tr>
|
|
{% endfor %}
|
|
</table>
|
|
</li>
|
|
</ul>
|
|
|
|
{% endblock %}
|
|
|
|
{% block sidebar %}
|
|
{% include 'menu_workout.html' %}
|
|
{% endblock %}
|