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

{% block title %}Register for a Virtual Race{% 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 main %}
<h1>Register for {{ race.name }}</h1>



<form id="race_register_form"
      method="post">
  <div class="grid_12 alpha">
    <p>If you are participating in a single, we will take the age and weight
      value from your user settings. For other boat types, please fill out
      crew weight class and average age.
    </p>

    <p>
      You will register as a crew with the gender of your user settings. If
      your user settings have gender "not specified", you will be registered
      as a Male crew. Check the "Mixed gender" check box to register as a
      mixed gender crew (except for 1x where this check box does nothing).
    </p>
    {% if race.coursestandards %}
    <p>This race uses standard times and limits the race groups to those where
      standard times exist. The "Group" form choice will overrule other selections you
      make in the form (boat type, weight, etc) and your entry will be rejected
      if the age and gender doesn't match.
    </p>
    <p>
      You can check the valid race groups and standard times <a target="_" href="/rowers/standards/{{ race.coursestandards.id }}/">here</a>.
      </p>
    {% endif %}
  <div class="grid_6 alpha">
    <table width="100%">
      {{ form.as_table }}
    </table>
  </div>
</div>
  {% csrf_token %}
  <input class="button green" type="submit" value="Submit">


</form>
{% endblock %}

{% block scripts %}
{% endblock %}

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