{% extends "base.html" %}
{% load staticfiles %}
{% load rowerfilters %}

{% block title %}Submit Race Result{% endblock %}

{% block meta %}
<script type='text/javascript'
        src='https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js'>
</script>
<script type='text/javascript'
        src='https://ajax.aspnetcdn.com/ajax/jquery.validate/1.14.0/jquery.validate.min.js'>
</script>
<script>
</script>
{% endblock %}


{% block content %}
<div class="grid_12 alpha">
  <div class="grid_6 alpha">
    <h1>Submit Your Result for {{ race.name }}</h1>
  </div>

</div>

<form id="race_submit_form" 
      method="post">
<div class="grid_12 alpha">
    <p>Select one of the following workouts that you rowed within the race window</p>
    <table width="100%">
      <tr>
        {% for field in w_form.hidden_fields %}
        {{ field }}
        {% endfor %}
        {% for field in w_form.visible_fields %}
        <td>
          {{ field.label }}
          {{ field }}
        </td>
      {% endfor %}
      </tr>
    </table>
</div>
<div class="grid_2 prefix_2 suffix_8">
  {% csrf_token %}
  <input class="button green" type="submit" value="Submit">
</div>


</form>
{% endblock %}

{% block scripts %}
{% endblock %}
