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

{% block title %}Edit Virtual Race{% endblock %}

{% block content %}

<div class="grid_12 alpha">
  
    <h1>Edit Race {{ race.name }}</h1>


  <div class="grid_8 alpha">
    <form enctype="multipart/form-data" action="{{ formloc }}" method="post">
      {% if form.errors %}
      <p style="color: red;">
        Please correct the error{{ form.errors|pluralize }} below.
      </p>
      {% endif %}
      
      <table>
        {{ form.as_table }}
      </table>
      {% csrf_token %}
      <div id="formbutton" class="grid_1 prefix_4 suffix_1">
        <input class="button green" type="submit" value="Save">
      </div>
  </form>
  </div>
  <div class="grid_4 omega">
    <p>
      <ul>
        <li>All times are local times in the race course time zone</li>
        <li>Adding a contact phone number and email is not mandatory, but we
          strongly recommend it.</li>
        <li>If your event has a registration closure deadline, participants
          have to enter (and can withdraw) before the registration closure time.</li>
        <li>Participants can submit results until the evaluation closure time.</li>
      </ul>
    </p>
  </div>
</div>


{% endblock %}

{% block scripts %}
{% endblock %}
