Private
Public Access
1
0

adding plan and target edit

This commit is contained in:
Sander Roosendaal
2018-09-07 19:32:04 +02:00
parent 4c8e81d0e7
commit 54cc552a99
5 changed files with 123 additions and 3 deletions

View File

@@ -34,6 +34,8 @@
<td> {{ target.date }}</td>
<td> {{ target.name }}</td>
<td> {{ target.notes }}</td>
<td> <a href="/rowers/edittarget/{{ target.id }}">Edit</a>
<td> <a href="/rowers/deletetarget/{{ target.id }}">Delete</a>
</tr>
{% endfor %}
</tbody>
@@ -82,6 +84,8 @@
<td> {{ plan.startdate }} </td>
<td> {{ plan.enddate }}</td>
<td> {{ plan.name }}</td>
<td> <a href="/rowers/editplan/{{ plan.id }}">Edit</a>
<td> <a href="/rowers/deleteplan/{{ plan.id }}">Delete</a>
</tr>
{% endfor %}
</tbody>

View File

@@ -0,0 +1,32 @@
{% extends "base.html" %}
{% load staticfiles %}
{% load rowerfilters %}
{% block title %}Rowsandall Training Plans{% endblock %}
{% block scripts %}
{% endblock %}
{% block content %}
<style>
#mypointer {
cursor: pointer;
}
</style>
<div class="grid_12">
<form action="" method="post">
{% csrf_token %}
<table>
{{ form.as_table }}
</table>
<div class="grid_1 prefix_2 suffix_9 alpha">
<input class="button green" type="submit" value="Save">
</div>
</form>
</div>
{% endblock %}