Private
Public Access
1
0

first version analyses collection

This commit is contained in:
Sander Roosendaal
2022-10-07 13:23:15 +02:00
parent ee2d2120a4
commit cf7d6c7c79
10 changed files with 136 additions and 6 deletions

View File

@@ -0,0 +1,55 @@
{% extends "newbase.html" %}
{% load static %}
{% load rowerfilters %}
{% block title %}Rowsandall - Analysis {% endblock %}
{% block main %}
<h1>In-Stroke Analysis for {{ rower.user.first_name }} {{ rower.user.last_name }}</h1>
<ul class="main-content">
{% if analyses %}
{% for analysis in analyses %}
<li class="rounder" id="analysis_{{ analysis.id }}">
<h2>{{ analysis.name }}</h2>
<a class="small" href="/rowers/analyses/{{ analysis.id }}/delete/"
title="Delete">
<i class="fas fa-trash-alt fa-fw"></i>
</a>
<hr>
<p>
{{ analysis.notes }}
</p>
<p>
Workout: {{ analysis.workout }}
</p>
<p>
{{ analysis.spm_min }} - {{ analysis.spm_max }} SPM,
{{ analysis.start_second|secondstotimestring }} - {{ analysis.end_second|secondstotimestring }}
<p>
<p id="date">
<span id="date">
{{ analysis.date }}
</span>
</p>
</li>
{% endfor %}
{% else %}
<li class="grid_4">
<p>You have not saved any analyses for {{ rower.user.first_name }}</p>
</li>
{% endif %}
</ul>
{% endblock %}
{% block scripts %}
{% endblock %}
{% block sidebar %}
{% include 'menu_analytics.html' %}
{% endblock %}