{% extends "newbase.html" %}

{% block main %}
{% if form.errors %}
<p style="color: red;">
  Please correct the error{{ form.errors|pluralize }} below.
</p>
{% endif %}
<h1>Stroke Data for workout</h1>

<form enctype="application/json" action="/rowers/api/workouts/{{ id }}/strokedata/" method="post">
  <table>
    {{ form.as_table }}
  </table>
  {% csrf_token %}
  <input class="button green" type="submit" value="POST">
</form>

{% endblock %}

{% block sidebar %}
{% include 'menu_workout.html' %}
{% endblock %}
