{% extends "base.html" %}

{% 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="application/json" 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 %}
