Private
Public Access
1
0

Strokedata post working (somehow)

This commit is contained in:
Sander Roosendaal
2016-11-26 21:32:37 +01:00
parent 0facd70ac1
commit 2b8527074e
4 changed files with 122 additions and 61 deletions

View File

@@ -0,0 +1,25 @@
{% extends "base.html" %}
{% block title %}Change Rower {% endblock %}
{% block content %}
{% if form.errors %}
<p style="color: red;">
Please correct the error{{ form.errors|pluralize }} below.
</p>
{% endif %}
<div class="grid_12 alpha">
<h1>Stroke Data for workout {{ id }}</h1>
<form enctype="multipart/form-data" action="/rowers/api/workouts/{{ id }}/strokedata" method="post">
<table>
{{ form.as_table }}
</table>
{% csrf_token %}
<div class="grid_2 prefix_2 suffix_2">
<input class="button green" type="submit" value="POST">
</form>
</div>
</div>
{% endblock %}