Private
Public Access
1
0

workout histo & workout delete - urls.py 225

This commit is contained in:
Sander Roosendaal
2018-10-08 18:35:18 +02:00
parent 94ec66b27d
commit 0a1c60565c
6 changed files with 117 additions and 73 deletions

View File

@@ -1,51 +1,41 @@
{% extends "base.html" %}
{% extends "newbase.html" %}
{% load staticfiles %}
{% load rowerfilters %}
{% block title %}Change Workout {% endblock %}
{% block content %}
<div id="workouts" class="grid_6 alpha">
{% if form.errors %}
<p style="color: red;">
Please correct the error{{ form.errors|pluralize }} below.
</p>
{% endif %}
<h1>Confirm Workout Delete</h1>
This will delete the following workout and all linked graph images:
<table width=100%>
<tr>
{% block main %}
<h1>Delete {{ workout }}?</h1>
<ul class="main-content">
<li class="grid_2">
<p>
This will delete the following workout and all related data (charts, comments):
</p>
<table width=100%>
<tr>
<th>Name:</th><td>{{ workout.name }}</td>
</tr><tr>
<th>Date:</th><td>{{ workout.date }}</td>
</tr><tr>
</tr><tr>
<th>Time:</th><td>{{ workout.starttime }}</td>
</tr><tr>
</tr><tr>
<th>Distance:</th><td>{{ workout.distance }}m</td>
</tr><tr>
</tr><tr>
<th>Duration:</th><td>{{ workout.duration |durationprint:"%H:%M:%S.%f" }}</td>
</tr>
</table>
<div class="grid_2 alpha">
<p>
<a class="button green small" href="/rowers/list-workouts/">Cancel</a>
</div>
<div class="grid_2">
<p>
<a class="button red small" href="/rowers/workout/{{ workout.id }}/delete">Delete</a>
</p>
</div>
</div>
<div id="images" class="grid_6 omega">
<p>
&nbsp;
</b>
</div>
</tr>
</table>
</li>
<li class="grid_2">
<form action="" method="post">
{% csrf_token %}
<input class="button red" type="submit" value="Confirm">
</form>
</li>
</ul>
{% endblock %}
{% endblock %}
{% block sidebar %}
{% include 'menu_workout.html' %}
{% endblock %}