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

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

{% block main %}

<h1>Edit Challenge {{ race.name }}</h1>

<ul class="main-content">
  <li class="grid_2">
    <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 %}
      <p>
        <table>
          {{ form.as_table }}
        </table>
      </p>
      <p>
        {% csrf_token %}
        <input class="button green" type="submit" value="Save">
      </p>
  </form>
  </li>
  <li class="grid_2 omega">
    <p>
      <ul>
        <li>All times are local times in the challenge 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>
  </li>
</ul>


{% endblock %}

{% block scripts %}
{% endblock %}


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